diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2025-06-10 17:06:43 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-06-11 16:24:50 +0200 |
commit | 0293c6f4a316baa561a9b43388906707f8cf7e81 (patch) | |
tree | 61b63669a62c98436cfd644e38bd67e0aa5c4670 | |
parent | 98da8a94693f5c138188acd83dc352f197a64817 (diff) | |
download | passt-0293c6f4a316baa561a9b43388906707f8cf7e81.tar passt-0293c6f4a316baa561a9b43388906707f8cf7e81.tar.gz passt-0293c6f4a316baa561a9b43388906707f8cf7e81.tar.bz2 passt-0293c6f4a316baa561a9b43388906707f8cf7e81.tar.lz passt-0293c6f4a316baa561a9b43388906707f8cf7e81.tar.xz passt-0293c6f4a316baa561a9b43388906707f8cf7e81.tar.zst passt-0293c6f4a316baa561a9b43388906707f8cf7e81.zip |
fedora: Hide restorecon(8) errors in post-transaction scriptletHEAD2025_06_11.0293c6fmaster
Commit e01932353869 ("fedora: Separately restore context for /run/user
in %posttrans selinux") added a call to restorecon for /run/user in
the passt-selinux post-transaction scriptlet, and we can't give a path
that's more specific than that, but it often contains FUSE mountpoints
that are not accessible as root, resulting in warnings as the package
is installed.
Hide the errors, a failure in relabeling wouldn't be really
problematic in any case.
Link: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f454466bb6
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2371159
Fixes: e01932353869 ("fedora: Separately restore context for /run/user in %posttrans selinux")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Tested-by: Max Chernoff <git@maxchernoff.ca>
-rw-r--r-- | contrib/fedora/passt.spec | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec index e52f50f..663289f 100644 --- a/contrib/fedora/passt.spec +++ b/contrib/fedora/passt.spec @@ -107,8 +107,13 @@ fi # (see selabel_file(5)) in order to restore only the file contexts which # actually changed. However, as file_contexts doesn't support %{USERID} # substitutions, this will not work for specific file contexts that pasta needs -# to have under /run/user. Restore those explicitly. -restorecon -R /run/user +# to have under /run/user. +# +# Restore those explicitly, hiding errors from restorecon(8): we can't pass a +# path that's more specific than this, but at the same time /run/user often +# contains FUSE mountpoints that can't be accessed as root, leading to +# "Permission denied" messages, but not failures. +restorecon -R /run/user 2>/dev/null %files %license LICENSES/{GPL-2.0-or-later.txt,BSD-3-Clause.txt} |