[systemd-commits] src/shared

Lennart Poettering lennart at kemper.freedesktop.org
Mon Oct 15 16:58:55 PDT 2012


 src/shared/label.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 080ffcb4a124bd77054a3909bbd5f14d62f79b62
Author: Daniel J Walsh <dwalsh at redhat.com>
Date:   Thu Oct 11 17:08:47 2012 -0400

    selinux: selabel_lookup_raw can return ENOENT and be a non failure mode.

diff --git a/src/shared/label.c b/src/shared/label.c
index 2062fc3..d353da5 100644
--- a/src/shared/label.c
+++ b/src/shared/label.c
@@ -186,7 +186,7 @@ int label_context_set(const char *path, mode_t mode) {
                 return 0;
 
         r = selabel_lookup_raw(label_hnd, &filecon, path, mode);
-        if (r < 0)
+        if (r < 0 && errno != ENOENT)
                 r = -errno;
         else if (r == 0) {
                 r = setfscreatecon(filecon);



More information about the systemd-commits mailing list