Verified the usage of root's data dirs when running via sudo:

fgimenez@innsmouth:~$ apt-cache policy snapd
snapd:
  Installed: 2.15.2ubuntu1
  Candidate: 2.15.2ubuntu1
  Version table:
 *** 2.15.2ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     2.14.2~16.04 500
        500 http://es.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages
     2.0.2 500
        500 http://es.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
fgimenez@innsmouth:~$ rm -rf $HOME/snap
fgimenez@innsmouth:~$ sudo /snap/bin/test-snapd-tools.env | grep SNAP_
SNAP_COMMON=/var/snap/test-snapd-tools/common
SNAP_LIBRARY_PATH=/var/lib/snapd/lib/gl:
SNAP_USER_DATA=/root/snap/test-snapd-tools/3
SNAP_REVISION=3
SNAP_VERSION=1.0
SNAP_DATA=/var/snap/test-snapd-tools/3
SNAP_ARCH=amd64
SNAP_USER_COMMON=/root/snap/test-snapd-tools/common
SNAP_REEXEC=
SNAP_NAME=test-snapd-tools
fgimenez@innsmouth:~$ ls $HOME/snap
ls: cannot access '/home/fgimenez/snap': No such file or directory
fgimenez@innsmouth:~$ sudo stat -c '%U' /root/snap
root

There are also passing automated tests about this feature, this is the
test [1] and these are the results [2] (search for "tests/main
/regression-home-snap-root-owned").

[1] 
https://github.com/mvo5/snappy/blob/7a4bead6970dd76d8cffdf67266833785b2eb1c3/tests/main/regression-home-snap-root-owned/task.yaml
[2] https://travis-ci.org/snapcore/snapd/jobs/161619736

** Tags removed: verification-needed
** Tags added: verification-done

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

Title:
  [SRU] 2.15.2

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

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

Reply via email to