[PATCH] fedora: Hide restorecon(8) errors in post-transaction scriptlet
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
Hi Stefano, On Tue, 2025-06-10 at 17:11 +0200, Stefano Brivio wrote:
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.
I've tested installing an RPM built with both "fedora: Hide restorecon" and "fedora: Add container-selinux" applied, and can confirm that both are working as expected. Thanks, -- Max
participants (2)
-
Max Chernoff
-
Stefano Brivio