Commit 9f27604
committed
Userland: Prevent a BuggieBox container from being exposed to /sys
/sys has lots of interesting information that an ordinary program in a
container session shouldn't really care about, such as possible major
and minor numbers of potentially exposed device files, etc.
It seems like we don't really need /sys at the moment, so there's no
harmful impact by this change.
The risk of keeping /sys is probably low anyway, because, for example,
a jailed process can't open most device files, even if it "sees" them
in /sys.
However, as another line of defense, let's just not mount /sys in such
environment, if possible.1 parent bed531a commit 9f27604
File tree
1 file changed
+0
-10
lines changed1 file changed
+0
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 121 | | |
132 | 122 | | |
133 | 123 | | |
0 commit comments