Blame src/include/k5-label.h

rpm-build 8f6511
#ifndef _KRB5_LABEL_H
rpm-build 8f6511
#define _KRB5_LABEL_H
rpm-build 8f6511
rpm-build 8f6511
#ifdef THREEPARAMOPEN
rpm-build 8f6511
#undef THREEPARAMOPEN
rpm-build 8f6511
#endif
rpm-build 8f6511
#ifdef WRITABLEFOPEN
rpm-build 8f6511
#undef WRITABLEFOPEN
rpm-build 8f6511
#endif
rpm-build 8f6511
rpm-build 8f6511
/* Wrapper functions which help us create files and directories with the right
rpm-build 8f6511
 * context labels. */
rpm-build 8f6511
#ifdef USE_SELINUX
rpm-build 8f6511
#include <sys/types.h>
rpm-build 8f6511
#include <sys/stat.h>
rpm-build 8f6511
#include <fcntl.h>
rpm-build 8f6511
#include <stdio.h>
rpm-build 8f6511
#include <unistd.h>
rpm-build 8f6511
FILE *krb5int_labeled_fopen(const char *path, const char *mode);
rpm-build 8f6511
int krb5int_labeled_creat(const char *path, mode_t mode);
rpm-build 8f6511
int krb5int_labeled_open(const char *path, int flags, ...);
rpm-build 8f6511
int krb5int_labeled_mkdir(const char *path, mode_t mode);
rpm-build 8f6511
int krb5int_labeled_mknod(const char *path, mode_t mode, dev_t device);
rpm-build 8f6511
#define THREEPARAMOPEN(x,y,z) krb5int_labeled_open(x,y,z)
rpm-build 8f6511
#define WRITABLEFOPEN(x,y) krb5int_labeled_fopen(x,y)
rpm-build 8f6511
void *krb5int_push_fscreatecon_for(const char *pathname);
rpm-build 8f6511
void krb5int_pop_fscreatecon(void *previous);
rpm-build 8f6511
#else
rpm-build 8f6511
#define WRITABLEFOPEN(x,y) fopen(x,y)
rpm-build 8f6511
#define THREEPARAMOPEN(x,y,z) open(x,y,z)
rpm-build 8f6511
#endif
rpm-build 8f6511
#endif