*** This bug is a duplicate of bug 1656340 ***
    https://bugs.launchpad.net/bugs/1656340

This is the denial:

apparmor="DENIED" operation="mkdir" profile="snap.notepadqq.notepadqq"
name="/run/user/0/" pid=3127 comm="mkdir" requested_mask="c"
denied_mask="c" fsuid=0 ouid=0

The problem is that /run/user/0 does not exist because this directory is
supposed to be created by the session manager, not the snap. Because
this is being run under sudo, it implies that the session is non-root so
/run/user/0 wasn't ever created by anything.

This is an old issue:
* https://bugs.launchpad.net/snappy/+bug/1656340
* https://forum.snapcraft.io/t/wayland-dconf-and-xdg-runtime-dir/186
* https://github.com/snapcore/snapd/pull/4365#discussion_r155843451

As such, this is a duplicate of bug #1656340. Zygmunt, can you look at
the other bug and see my comments?

** This bug has been marked a duplicate of bug 1656340
   XDG_RUNTIME_DIR is not created on app startup

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751634

Title:
  Unable to launch program (installed as snap) as root

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1751634/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to