mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Ignore error setting selinux file context if fs doesn't support it.
This commit is contained in:
parent
a218a29c49
commit
121c5c060b
@ -1,3 +1,7 @@
|
|||||||
|
Version 2.00.13 - 64 Apr 2004
|
||||||
|
=============================
|
||||||
|
Ignore error setting selinux file context if fs doesn't support it.
|
||||||
|
|
||||||
Version 2.00.12 - 14 Apr 2004
|
Version 2.00.12 - 14 Apr 2004
|
||||||
=============================
|
=============================
|
||||||
Install a default lvm.conf into /etc/lvm if there isn't one already.
|
Install a default lvm.conf into /etc/lvm if there isn't one already.
|
||||||
|
@ -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
|
Version 1.00.15 - 7 Apr 2004
|
||||||
============================
|
============================
|
||||||
Fix status overflow check in kernel patches.
|
Fix status overflow check in kernel patches.
|
||||||
|
@ -31,7 +31,7 @@ int set_selinux_context(const char *path)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lsetfilecon(path, scontext) < 0) {
|
if ((lsetfilecon(path, scontext) < 0) && (errno != ENOTSUP)) {
|
||||||
log_sys_error("lsetfilecon", path);
|
log_sys_error("lsetfilecon", path);
|
||||||
free(scontext);
|
free(scontext);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -215,7 +215,7 @@ static int _set_selinux_context(const char *path)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lsetfilecon(path, scontext) < 0) {
|
if ((lsetfilecon(path, scontext) < 0) && (errno != ENOTSUP)) {
|
||||||
log_error("%s: lsetfilecon failed: %s", path, strerror(errno));
|
log_error("%s: lsetfilecon failed: %s", path, strerror(errno));
|
||||||
free(scontext);
|
free(scontext);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user