Permalink
Browse files

Only use chcon for SELinux context changes.

  • Loading branch information...
megastep committed Apr 21, 2012
1 parent 76d53dd commit 94dca2e2e063f04650773935cc1654405ad95be8
Showing with 2 additions and 1 deletion.
  1. +2 −1 copy.c
View
3 copy.c
@@ -392,7 +392,8 @@ ssize_t copy_file(install_info *info, const char *cdrom, const char *path, const
}
#ifdef __linux
if ( se_context && have_selinux ) {
-# ifdef HAVE_SELINUX_SELINUX_H
+//# ifdef HAVE_SELINUX_SELINUX_H
+#if 0 // Using chcon directly seems more reliable
/* Use the selinux library */
context_t cont = context_new(se_context);
if ( cont ) {

0 comments on commit 94dca2e

Please sign in to comment.