I’m having troubles running bwrap applications with my user confined to sysadm_u, i can’t run the default Gnome image viewer nor flatpaks:
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: Can't bind mount /oldroot/boot on /newroot/boot: Unable to remount destination "/newroot/boot" with correct flags: Permission denied
error: Failed to sync with dbus proxy
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: unmount old root: Permission denied
error: Failed to sync with dbus proxy
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: loopback: Failed RTM_NEWADDR: Permission denied
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: loopback: Failed RTM_NEWADDR: Permission denied
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: loopback: Failed RTM_NEWADDR: Permission denied
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: loopback: Failed RTM_NEWADDR: Permission denied
user@fedora:~$
I tried to make this profile using audit2allow:
module my-bwrap 1.0;
require {
type sysadm_t;
type configfs_t;
type nsfs_t;
type fs_t;
class filesystem { remount unmount };
}
#============= sysadm_t ==============
#!!!! This avc is allowed in the current policy
allow sysadm_t configfs_t:filesystem remount;
#!!!! This avc is allowed in the current policy
allow sysadm_t fs_t:filesystem { remount unmount };
allow sysadm_t nsfs_t:filesystem remount;
But now instead of:
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: Can't bind mount /oldroot/boot on /newroot/boot: Unable to remount destination "/newroot/boot" with correct flags: Permission denied
error: Failed to sync with dbus proxy
user@fedora:~$ flatpak run com.github.tchx84.Flatseal
bwrap: unmount old root: Permission denied
error: Failed to sync with dbus proxy
I get this while trying to run Flatseal:
bwrap: loopback: Failed RTM_NEWADDR: Permission denied
But I can run Bottles flatpak without this error and I can run any flatpak inside a toolbox without even applying that semodule. What can I do to fix this?


