Browse code

Add /proc/keys to masked paths

This leaks information about keyrings on the host. Keyrings are
not namespaced.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>

Justin Cormack authored on 2018/02/22 01:23:34
Showing 1 changed files
... ...
@@ -115,6 +115,7 @@ func DefaultLinuxSpec() specs.Spec {
115 115
 	s.Linux = &specs.Linux{
116 116
 		MaskedPaths: []string{
117 117
 			"/proc/kcore",
118
+			"/proc/keys",
118 119
 			"/proc/latency_stats",
119 120
 			"/proc/timer_list",
120 121
 			"/proc/timer_stats",