Xsession/Wayland error logs, file_inherit and disconnected path
I noticed that when apps are started in Xsession environment, they redirect error output to the following file:
owner @{HOME}/.xsession-errors w,
This is basically true when you start Xsession via startx
or some older Display Managers.
Also if some modern DM is used, like SDDM
, the error messages are redirected to the following places, depending whether it's X or Wayland session:
owner @{HOME}/.local/share/sddm/{xorg,wayland}-session.log w,
If writing to the files is denied, apps executed will get an error concerning Failed name lookup - disconnected path
with the name="apparmor/.null
. Since this is the case of all apps run in the Xsession and Wayland, wouldn't be better to add the rules to the X
and wayland
abstracions respectively?