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

Allow mounting FUSE filesystems without CAP_SYS_ADMIN or AppArmor/SecComp custom profiles #41880

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion profiles/apparmor/template.go
Expand Up @@ -40,7 +40,8 @@ profile {{.Name}} flags=(attach_disconnected,mediate_deleted) {
deny @{PROC}/sysrq-trigger rwklx,
deny @{PROC}/kcore rwklx,

deny mount,
mount fstype=fuse,
mount fstype=fuse.*,

deny /sys/[^f]*/** wklx,
deny /sys/f[^s]*/** wklx,
Expand Down
10 changes: 5 additions & 5 deletions profiles/seccomp/default.json
Expand Up @@ -207,6 +207,7 @@
"mlockall",
"mmap",
"mmap2",
"mount",
"mprotect",
"mq_getsetattr",
"mq_notify",
Expand Down Expand Up @@ -376,9 +377,12 @@
"truncate64",
"ugetrlimit",
"umask",
"umount",
"umount2",
"uname",
"unlink",
"unlinkat",
"unshare",
"utime",
"utimensat",
"utimensat_time64",
Expand Down Expand Up @@ -591,17 +595,13 @@
"clone",
"fanotify_init",
"lookup_dcookie",
"mount",
"name_to_handle_at",
"perf_event_open",
"quotactl",
"setdomainname",
"sethostname",
"setns",
"syslog",
"umount",
"umount2",
"unshare"
"syslog"
],
"action": "SCMP_ACT_ALLOW",
"args": [],
Expand Down
8 changes: 4 additions & 4 deletions profiles/seccomp/default_linux.go
Expand Up @@ -200,6 +200,7 @@ func DefaultProfile() *Seccomp {
"mlockall",
"mmap",
"mmap2",
"mount",
"mprotect",
"mq_getsetattr",
"mq_notify",
Expand Down Expand Up @@ -369,9 +370,12 @@ func DefaultProfile() *Seccomp {
"truncate64",
"ugetrlimit",
"umask",
"umount",
"umount2",
"uname",
"unlink",
"unlinkat",
"unshare",
"utime",
"utimensat",
"utimensat_time64",
Expand Down Expand Up @@ -522,17 +526,13 @@ func DefaultProfile() *Seccomp {
"clone",
"fanotify_init",
"lookup_dcookie",
"mount",
"name_to_handle_at",
"perf_event_open",
"quotactl",
"setdomainname",
"sethostname",
"setns",
"syslog",
"umount",
"umount2",
"unshare",
},
Action: specs.ActAllow,
Args: []*specs.LinuxSeccompArg{},
Expand Down