Skip to content

Commit

Permalink
Only use chcon for SELinux context changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
megastep committed Apr 21, 2012
1 parent 76d53dd commit 94dca2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 94dca2e

Please sign in to comment.