From 995166d33c8c20b86f9db8cc5068758befd129cc Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 17 Sep 2007 20:46:21 +0000 Subject: [PATCH] - undef functions that we override before redefining them; ultimately this will have to be completely reworked to not use preprocessor magic because it's gotten way uglier than originally planned --- krb5-1.6.1-selinux-label.patch | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/krb5-1.6.1-selinux-label.patch b/krb5-1.6.1-selinux-label.patch index 0b05476..cc377c1 100644 --- a/krb5-1.6.1-selinux-label.patch +++ b/krb5-1.6.1-selinux-label.patch @@ -291,7 +291,7 @@ the libkrb5support library depends on libselinux. --- krb5-1.6.1/src/include/k5-label.h 2007-08-25 03:19:00.000000000 -0400 +++ krb5-1.6.1/src/include/k5-label.h 2007-08-25 03:00:02.000000000 -0400 -@@ -0,0 +1,24 @@ +@@ -0,0 +1,39 @@ +#ifndef _KRB5_LABEL_H +#define _KRB5_LABEL_H +/* Wrapper functions which help us create files and directories with the right @@ -308,10 +308,25 @@ the libkrb5support library depends on libselinux. +int krb5int_labeled_mkdir(const char *path, mode_t mode); +int krb5int_labeled_mknod(const char *path, mode_t mode, dev_t device); +#ifndef USE_SELINUX_UNWRAPPED ++#ifdef fopen ++#undef fopen ++#endif +#define fopen krb5int_labeled_fopen ++#ifdef open ++#undef open ++#endif +#define open krb5int_labeled_open ++#ifdef creat ++#undef creat ++#endif +#define creat krb5int_labeled_creat ++#ifdef mkdir ++#undef mkdir ++#endif +#define mkdir krb5int_labeled_mkdir ++#ifdef mknod ++#undef mknod ++#endif +#define mknod krb5int_labeled_mknod +#endif +#endif