diff options
author | 2020-10-09 12:15:31 +0300 | |
---|---|---|
committer | 2021-02-19 09:38:54 +0200 | |
commit | 80b73e75d82ec618625c5278828bb5b9b32d3114 (patch) | |
tree | ba062f63d9c343a47898b089d20d28cf24ca9f44 /test/chroot/unchroot-as-root.exp | |
parent | refresh capabilities (#3945) (diff) | |
download | firejail-80b73e75d82ec618625c5278828bb5b9b32d3114.tar.gz firejail-80b73e75d82ec618625c5278828bb5b9b32d3114.tar.zst firejail-80b73e75d82ec618625c5278828bb5b9b32d3114.zip |
Fix symlinks that go though /proc/self
When constructing sandbox fs, /etc/mtab which is symlink to
/proc/self/mounts gets resolved as /proc/PID/mounts. Where
PID is not the pid of the process that is going to get
executed in the firejail -> the result is broken/unaccessible
symlink from the application point of view.
Use /proc/self/xxx type symlink target if it resolves similarly
as the /proc/PID/xxx type would at the time of mapping.
Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
Diffstat (limited to 'test/chroot/unchroot-as-root.exp')
0 files changed, 0 insertions, 0 deletions