bubblewrap: reopen proc_fd from inside namespace - #769
Conversation
30c45a6 to
e0fae30
Compare
Reopen the /proc file descriptor from inside the namespace to avoid AppArmor complaining about the path being disconnected. Signed-off-by: Duncan Overbruck <mail@duncano.de>
e0fae30 to
cc580a9
Compare
|
FYI, it is not an issue in |
|
Thanks, do you think there is no benefit in "fixing" as opposed to just always use If not adding the |
|
The thing is, to my knowledge, it won't be the only path created before the ns, it is only the first one that breaks the program with your profile. Btw; where is your profile for flatpak? Just always use |
|
The profile that caused my issues was the flatpak profile shipped with apparmor. It's not actually supposed to be used, but a bug in the void linux init scripts caused all the unconfined profiles to be forced into complain mode. I guess there could be more disconnected paths if bwrap is invoked with other/more flags/options, but just this change made it work at least for this case. |
AppArmor in complain or enforce mode will not allow the use of fds that are "disconnected" from the namespace root. Disconnected as far as I understand means that its from a separate mount namespace and it won't be able to reconstruct a full path string to match against rules.
This results in apparmor disallowing
openatcalls wit hEACCESS: