Skip to content

masking /proc/cmdline might result in "VFS: Mount too revealing" logged by kernel #738

@learnwayback

Description

@learnwayback

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions