mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-11 18:02:13 +02:00
install: suppress "Operation not supported" false alarms
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user