From: Paul Eggert Date: Mon, 23 Nov 2020 09:48:15 +0000 (-0800) Subject: install: suppress "Operation not supported" false alarms X-Git-Tag: v9.0~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d12f5da6d489975d79c177f42fedaefa3df0f985;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/src/install.c b/src/install.c index eb6e403e79..dce29dbe1f 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;