We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dbded8 commit 427fb64Copy full SHA for 427fb64
src/seccomp/policy/DefaultPolicy.cc
@@ -188,6 +188,14 @@ void DefaultPolicy::addFileSystemAccessRules(bool readOnly) {
188
"openat",
189
action::ActionAllow(),
190
(filter::SyscallArg(2) & (O_RDWR | O_WRONLY)) == 0));
191
+ rules_.emplace_back(SeccompRule(
192
+ "open",
193
+ action::ActionErrno(EROFS),
194
+ (filter::SyscallArg(1) & (O_RDONLY | O_PATH)) == 0));
195
196
+ "openat",
197
198
+ (filter::SyscallArg(2) & (O_RDONLY | O_PATH)) == 0));
199
200
for (const auto& syscall: {
201
"unlink",
0 commit comments