summaryrefslogtreecommitdiff
path: root/src/runcon.c
diff options
context:
space:
mode:
authorOndřej Vašík <ovasik@redhat.com>2009-10-05 09:20:48 +0200
committerJim Meyering <meyering@redhat.com>2009-10-06 10:10:51 +0200
commit3a97d664b9f639fddb5a245775f47d27bfbb56c9 (patch)
tree032b3fddc63fa728cbc176ab2fdba66b87244f4b /src/runcon.c
parentaddb62da9264f6277968bdb04a647f68b955eba7 (diff)
downloadcoreutils-3a97d664b9f639fddb5a245775f47d27bfbb56c9.tar.xz
chcon: exit immediately if SELinux is disabled
This change happens to avoid an abort in chcon when SELinux is disabled while operating on a file with an "unlabeled" context from back in 2006. However, that same abort can still be triggered by the same file when running chcon with SELinux enabled. This bug in chcon will be fixed in a subsequent commit via a getfilecon wrapper. See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/18378/focus=18384 for how to correct your disk attributes to avoid triggering this bug. * src/chcon.c (main): Exit immediately if SELinux is disabled. Reported in http://bugzilla.redhat.com/527142 by Yanko Kaneti. * src/runcon.c (main): Do not hardcode program name in error message. * THANKS: Update.
Diffstat (limited to 'src/runcon.c')
-rw-r--r--src/runcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runcon.c b/src/runcon.c
index e0019da2a..f87eada6a 100644
--- a/src/runcon.c
+++ b/src/runcon.c
@@ -195,7 +195,7 @@ main (int argc, char **argv)
if (is_selinux_enabled () != 1)
error (EXIT_FAILURE, 0,
- _("runcon may be used only on a SELinux kernel"));
+ _("%s may be used only on a SELinux kernel"), program_name);
if (context)
{