---
src/shared/selinux-util.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c
index 1eddd17..bb27328 100644
--- a/src/shared/selinux-util.c
+++ b/src/shared/selinux-util.c
@@ -128,6 +128,9 @@ int mac_selinux_fix(const char *path, bool ignore_enoent,
bool ignore_erofs) {
assert(path);
+ if (!mac_selinux_use())
+ return 0;
+
/* if mac_selinux_init() wasn't called before we are a NOOP */
if (!label_hnd)
return 0;
--
2.1.2
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel