Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interfaces: disable "mknod |N" in the default seccomp template again #3397

Merged
merged 1 commit into from May 31, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 9 additions & 6 deletions interfaces/seccomp/template.go
Expand Up @@ -209,14 +209,17 @@ mlockall
mmap
mmap2

# FIXME: commented out because of:
# https://forum.snapcraft.io/t/snapd-2-25-blocked-because-of-possible-revert-race-condition
#
# Allow mknod for regular files, pipes and sockets (and not block or char
# devices)
mknod - |S_IFREG -
mknodat - - |S_IFREG -
mknod - |S_IFIFO -
mknodat - - |S_IFIFO -
mknod - |S_IFSOCK -
mknodat - - |S_IFSOCK -
#mknod - |S_IFREG -
#mknodat - - |S_IFREG -
#mknod - |S_IFIFO -
#mknodat - - |S_IFIFO -
#mknod - |S_IFSOCK -
#mknodat - - |S_IFSOCK -

modify_ldt
mprotect
Expand Down