]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/mount-util.h
core: open /proc/self/mountinfo early to allow mounts over /proc (#5985)
authorTimothée Ravier <tim@siosm.fr>
Fri, 19 May 2017 12:38:40 +0000 (14:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 May 2017 12:38:40 +0000 (14:38 +0200)
commitac9de0b3794aed5010d050791dff3b7748918fec
tree54c50a0d5e7421651abbd5e24772c6efcd365749
parent215a2db41972230e1df7733d29727247685d58dc
core: open /proc/self/mountinfo early to allow mounts over /proc (#5985)

Enable masking the /proc folder using the 'InaccessiblePaths' unit
option.

This also slightly simplify mounts setup as the bind_remount_recursive
function will only open /proc/self/mountinfo once.

This is based on the suggestion at:
https://lists.freedesktop.org/archives/systemd-devel/2017-April/038634.html
src/basic/mount-util.c
src/basic/mount-util.h
src/core/namespace.c