Skip to contentSkip to conversation

namespace.c: Allow some unprivileged proc mounts when not fully visible

RFC PATCH Alexey Dobriyan 1 participant 1 message Apr 4, 2018

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

Instead, it introduces new options in proc to disable some proc entries (TBD).

No, no, no, no.

Blacklists are bad, mmkay.

The reason is that quite dangerous new /proc entries get added (think /proc/kpageflags) and suddenly they are enabled inside container.

Quoted 1 line

The granularity does not need to be per proc entry.

I think it does. Grouping always becomes either too fine or too coarse.

Quoted 1 line

Granularity can be improved later if use cases exist.

Granularity can not be tightened as it may break existing users. So new granularity options are going to be invented until finally it is per file.

Quoted 9 lines
	"maskedPaths": [
		"/proc/kcore",
		"/proc/latency_stats",
		"/proc/timer_list",
		"/proc/timer_stats",
		"/proc/sched_debug",
		"/sys/firmware",
		"/proc/scsi"
	],

Just say no to drugs.

Quoted 1 line

/proc/kcore

As a side note:
/proc/kcore should be more or less safe because it is under CAP_SYS_RAWIO.