Just use flags=(attach_disconnected):

   /some/app flags=(attach_disconnected) {

I have one question though. Why does the system (or just AppArmor) think that
the file is "var/lib/..." and not "/var/lib/..."?
No idea, apparmor rookie here. But I can say that this the profile is applied to a docker container, like this:

docker run ... --security-opt apparmor=myprofile my-machine

maybe it has something to do.

One of my apps behaves
differently depending on how the X-server is started. When I use just the
"startx" command issued via TTY, the attach_disconnected is needed. But when I
start the X-server using some DM, like for instance SDDM, the app works fine
without the flag. So why is that?
Maybe something is launched inside a terminal but another no? Just guessing. When is a terminal allocated and
under which conditions?





-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to