1
0
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:
Alasdair Kergon 2004-04-16 12:24:46 +00:00
parent a218a29c49
commit 121c5c060b
4 changed files with 10 additions and 2 deletions

View File

@ -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
=============================
Install a default lvm.conf into /etc/lvm if there isn't one already.

View File

@ -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.

View File

@ -31,7 +31,7 @@ int set_selinux_context(const char *path)
return 0;
}
if (lsetfilecon(path, scontext) < 0) {
if ((lsetfilecon(path, scontext) < 0) && (errno != ENOTSUP)) {
log_sys_error("lsetfilecon", path);
free(scontext);
return 0;

View 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;