non-obvious behaviour of path reconstruction with multiple choices after pivot_root and bind-mounts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
The snap-confine program uses pivot_root and a some number of bind mounts to construct a mount namespace that looks, roughly, like this:
/snap/core/1234/ <- mounted squashfs over loopback device (bind mounted from below)
/var/lib/
/var/lib/
If a program is opened using open(2) with O_PATH from /snap/core/
This is also discussed in the pull request to snapd, where it was originally discovered:
https:/
summary: |
- non-obvious behavior of path reconstruction with multiple choices after - pivot_root with + non-obvious behaviour of path reconstruction with multiple choices after + pivot_root and bind-mounts |