When trying to mask paths like:
--proc /proc
--dev-bind /dev/null /proc/cmdline
--remount-ro /proc/cmdline
--proc /proc
--ro-bind /dev/null /proc/cmdline
--proc /proc
--ro-bind-data 3 /proc/cmdline
(with exec 3</dev/null)
--proc /proc
--ro-bind /path/empty_file /proc/cmdline
It works but results in dmesg spam of
VFS: Mount too revealing
which suggests something went wrong somewhere?
My goal is to mask sensitive locations such as in: https://github.com/moby/moby/blob/master/daemon/pkg/oci/defaults.go