Comment 3 for bug 1758449

Revision history for this message
Georges (georgeskesseler) wrote :

I did the HOMEDIRS thing, still not working

$ cat /etc/apparmor.d/tunables/home.d/my-homes
# set to parent directory of your user's directories. Eg, if user's dir is /foo/bar/USER,
# set this to /foo/bar/
@{HOMEDIRS}+=/data/home/

$ sudo service apparmor reload
$ skype
2018/03/24 14:01:56.276095 cmd_run.go:343: WARNING: XAUTHORITY environment value is not a clean path: "/data/home/georges/.Xauthority"
cannot create user data directory: /data/home/georges/snap/skype/23: Permission denied

$ sudo tail -2 /var/log/syslog
Mar 24 14:00:13 breeze anacron[30046]: Normal exit (0 jobs run)
Mar 24 14:01:56 breeze kernel: [6636053.148494] audit: type=1400 audit(1521896516.286:6903): apparmor="DENIED" operation="open" profile="/snap/core/4206/usr/lib/snapd/snap-confine" name="/data/" pid=30123 comm="snap-confine" requested_mask="r" denied_mask="r" fsuid=1001 ouid=0

I would like to add /data/home to /etc/apparmor.d/snap.core.4206.usr.lib.snapd.snap-confine but it's uncomprehensible to me.