config-linux: add maskedDirPaths#582
Conversation
maskedDirPaths is used to mask directories rather than files.
For example, the /sys/firmware directory should be masked because it can contain some sensitive files:
- /sys/firmware/acpi/tables/{SLIC,MSDM}: Windows license information:
- /sys/firmware/ibft/target0/chap-secret: iSCSI CHAP secret
Signed-off-by: Akihiro Suda <[email protected]>
|
Alternative idea is to make sure |
|
IMO we should just make |
|
Note that we need consideration for non-existent paths if we support directories in For compatibility, we should just bind mount WDYT? |
|
@AkihiroSuda I'm not sure. IMO these are implementation quirks -- what matters is that the path is not accessible (you could implement it purely with apparmor and IMO it would be "valid"). |
|
We already mask dirs with |
maskedDirPaths is used to mask directories rather than files.
For example, the /sys/firmware directory should be masked because it can contain some sensitive files (moby/moby#26618):
IMO the issue should be fixed but no need to get this PR in v1.0
runc PR: opencontainers/runc#1068
Signed-off-by: Akihiro Suda [email protected]