summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@fedoraproject.org>2007-09-17 20:46:21 +0000
committerNalin Dahyabhai <nalin@fedoraproject.org>2007-09-17 20:46:21 +0000
commit995166d33c8c20b86f9db8cc5068758befd129cc (patch)
treee32217e17a0364b48e3896756ba3ac3be24733d3
parent2688de92f1d6ee6691da4b0da0eaa17edf330c59 (diff)
- 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
-rw-r--r--krb5-1.6.1-selinux-label.patch17
1 files changed, 16 insertions, 1 deletions
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