On 11/23/20 1:15 AM, Kamil Dudka wrote:
...: context lookup failed: Operation not supported
Thanks, I think I see the problem. I installed the attached to try to fix it.
From e3a96eb14e8834f046d8370db80dfdc561ef5550 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Mon, 23 Nov 2020 01:48:15 -0800
Subject: [PATCH] install: suppress "Operation not supported" false alarms
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
At least, I *think* they are false alarms. An SELinux expert eye
would be welcome.
* src/install.c (setdefaultfilecon): If selabel_lookup fails
due to either ENOTSUP or ENODATA, don’t diagnose the issue.
Problem reported by Kamil Dudka in:
https://lists.gnu.org/r/coreutils/2020-11/msg00050.html
---
src/install.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/install.c b/src/install.c
index eb6e403e7..dce29dbe1 100644
--- a/src/install.c
+++ b/src/install.c
@@ -339,7 +339,7 @@ setdefaultfilecon (char const *file)
return;
if (selabel_lookup (hnd, &scontext, file, st.st_mode) != 0)
{
- if (errno != ENOENT)
+ if (errno != ENOENT && ! ignorable_ctx_err (errno))
error (0, errno, _("warning: %s: context lookup failed"),
quotef (file));
return;
--
2.27.0