~/snap directory should be o0700
Bug #1910298 reported by
James Troup
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Invalid
|
High
|
Sergio Schvezov | ||
snapd |
Fix Released
|
Medium
|
Miguel Pires |
Bug Description
IMO, .cache, .config (and probably .local) directories created under ~/snap/ should be o0700 as they are in ~/
ATM, that doesn't appear to be the case, e.g.
https:/
https:/
CVE References
summary: |
- .cache directories in ~/snap/ should be o0700 + .cache and .config directories in ~/snap/ should be o0700 |
description: | updated |
Changed in snapd: | |
assignee: | nobody → Ian Johnson (anonymouse67) |
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Sergio Schvezov (sergiusens) |
Changed in snapd: | |
assignee: | Ian Johnson (anonymouse67) → Miguel Pires (miguelpires1) |
importance: | High → Medium |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2.54 |
Changed in snapcraft: | |
status: | Triaged → Won't Fix |
status: | Won't Fix → Invalid |
To post a comment you must log in.
I think this is because https:/ /github. com/ubuntu/ snapcraft- desktop- helpers/ blob/master/ common/ init#L19. Note that ensure_dir_exists is used by including scripts to create the cache dir, but the function doesn't set the permissions.