From: Alasdair Kergon Date: Fri, 16 Apr 2004 12:24:46 +0000 (+0000) Subject: Ignore error setting selinux file context if fs doesn't support it. X-Git-Tag: v1_00_16~1 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=337e5af89e689d47b878f55d8735ed39053542f1;p=dm.git Ignore error setting selinux file context if fs doesn't support it. --- diff --git a/WHATS_NEW b/WHATS_NEW index f1885a6..258f7fc 100644 --- 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. diff --git a/lib/libdm-common.c b/lib/libdm-common.c index 86afb07..b7454dc 100644 --- a/lib/libdm-common.c +++ b/lib/libdm-common.c @@ -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;