]> sourceware.org Git - dm.git/commitdiff
o print the context along with the path when setting selinux context
authorAJ Lewis <alewis@redhat.com>
Fri, 10 Jun 2005 21:30:21 +0000 (21:30 +0000)
committerAJ Lewis <alewis@redhat.com>
Fri, 10 Jun 2005 21:30:21 +0000 (21:30 +0000)
lib/libdm-common.c

index 42f8d03d6d9bb1ccc4aac63ff2c603626cc58972..7f50fa25535f4e5d8e9d8cf8a9fe1673b439baf5 100644 (file)
@@ -204,7 +204,6 @@ int set_selinux_context(const char *path)
 {
        security_context_t scontext;
 
-       log_debug("Setting SELinux context for %s", path);
        if (is_selinux_enabled() <= 0)
                return 1;
 
@@ -213,6 +212,8 @@ int set_selinux_context(const char *path)
                return 0;
        }
 
+       log_debug("Setting SELinux context for %s to %s", path, scontext);
+
        if ((lsetfilecon(path, scontext) < 0) && (errno != ENOTSUP)) {
                log_error("%s: lsetfilecon failed: %s", path, strerror(errno));
                free(scontext);
This page took 0.026219 seconds and 5 git commands to generate.