Wrong permission on resources when on SNAPCRAFT_CONTAINER_BUILDS=1

Bug #1719996 reported by Aleix Pol
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Cris Dywan

Bug Description

Snapcraft will create a bunch of directories with root privileges. The only way for me to clean them up is by becoming root, making it impossible to develop on a system if she's not an admin.

Furthermore, it requires typing "sudo rm -rf ...." which could go wrong on many levels.

apol@oliver:~/devel/snaps/kdeconnect-plasma (master)$ ls -l
drwxr-xr-x 3 root root 4096 set 27 20:50 snap
drwxr-xr-x 2 root root 4096 set 27 20:50 prime
drwxr-xr-x 7 root root 4096 set 27 20:55 stage
drwxr-xr-x 6 root root 4096 set 27 21:06 parts
...

Cris Dywan (kalikiana)
Changed in snapcraft:
assignee: nobody → Christian Dywan (kalikiana)
Revision history for this message
Cris Dywan (kalikiana) wrote :

For context: this was running "sudo SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft" which changes the value of os.getuid() in Python.

https://github.com/snapcore/snapcraft/pull/1588

Changed in snapcraft:
status: New → In Progress
Changed in snapcraft:
importance: Undecided → Medium
milestone: none → 2.35
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.