diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-23 01:48:15 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-23 01:48:45 -0800 |
commit | d12f5da6d489975d79c177f42fedaefa3df0f985 (patch) | |
tree | 2202e83e38482337a1d460cfe60e8e26cee43106 | |
parent | b8a543fe024e79d4a927210b6700979129636054 (diff) |
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
-rw-r--r-- | src/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |