mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
set_selinux_context() return code fix
This commit is contained in:
parent
8bad033938
commit
2f7b799f89
@ -208,7 +208,7 @@ static int _set_selinux_context(const char *path)
|
|||||||
|
|
||||||
log_debug("Setting SELinux context for %s", path);
|
log_debug("Setting SELinux context for %s", path);
|
||||||
if (is_selinux_enabled() <= 0)
|
if (is_selinux_enabled() <= 0)
|
||||||
return 0;
|
return 1;
|
||||||
|
|
||||||
if (matchpathcon(path, 0, &scontext) < 0) {
|
if (matchpathcon(path, 0, &scontext) < 0) {
|
||||||
log_error("%s: matchpathcon failed: %s", path, strerror(errno));
|
log_error("%s: matchpathcon failed: %s", path, strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user