Blame src/include/k5-label.h

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