]> sourceware.org Git - dm.git/commitdiff
Ignore error setting selinux file context if fs doesn't support it.
authorAlasdair Kergon <agk@redhat.com>
Fri, 16 Apr 2004 12:24:46 +0000 (12:24 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 16 Apr 2004 12:24:46 +0000 (12:24 +0000)
WHATS_NEW
lib/libdm-common.c

index f1885a67583e93124b5b51aca934ef8a6c6d366c..258f7fc4ec7fa68d451218e6f23adbc24f638857 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,3 +1,7 @@
+Version 1.00.16 - 16 Apr 2004
+=============================
+  Ignore error setting selinux file context if fs doesn't support it.
+
 Version 1.00.15 - 7 Apr 2004
 ============================
   Fix status overflow check in kernel patches.
index 86afb0743b8a828dba57ace7266e3dbe821bedfe..b7454dc3cd3cff62a772b11c297eb6db40998d45 100644 (file)
@@ -215,7 +215,7 @@ static int _set_selinux_context(const char *path)
                return 0;
        }
 
-       if (lsetfilecon(path, scontext) < 0) {
+       if ((lsetfilecon(path, scontext) < 0) && (errno != ENOTSUP)) {
                log_error("%s: lsetfilecon failed: %s", path, strerror(errno));
                free(scontext);
                return 0;
This page took 0.025602 seconds and 5 git commands to generate.