Can you provide the output of:
- mount |grep selinux
- dpkg -l |grep -e selinux -e policy -e linux-image

I think the problem is the same as discussed in the forum: 
https://forum.snapcraft.io/t/selinux-warning-when-running-lxc/11100 
The kernel package from kernel-ppa (linux-image-unsigned-5.0.9-050009-generic) 
seems to default to SELinux as default security backend, as set up in the 
config:

CONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_SMACK is not set
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
# CONFIG_DEFAULT_SECURITY_APPARMOR is not set
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_DEFAULT_SECURITY="selinux"

Just installing this kernel package does not pull in any of the
userspace SELinux bits. Also, Ubuntu uses AppArmor, so none of the
relevant packages are installed by default. There is no tools and no
policy installed.

Snapd is SELinux aware. Once it detects the host is using SELinux, it
will attempt to use it, bu setting up proper context of snap user files,
snap mounts and snap services started by systemd. However, since the
system is only partially set up, things will fail.

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

Title:
  Every snap gives "create user data directory" after upgrade to 19.04

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to