Wrong permission on resources when on SNAPCRAFT_CONTAINER_BUILDS=1
Bug #1719996 reported by
Aleix Pol
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:
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
...
Changed in snapcraft: | |
assignee: | nobody → Christian Dywan (kalikiana) |
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.
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