Skip to content

Commit

Permalink
#3106-1, include @mount in @default insted of all the syscalls
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty-snake committed Sep 1, 2020
1 parent ef4f58a commit 6d95214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
7 changes: 3 additions & 4 deletions etc/templates/syscalls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Definition of groups
@clock=adjtimex,clock_adjtime,clock_settime,settimeofday,stime
@cpu-emulation=modify_ldt,subpage_prot,switch_endian,vm86,vm86old
@debug=lookup_dcookie,perf_event_open,process_vm_writev,rtas,s390_runtime_instr,sys_debug_setcontext
@default=@clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@swap,open_by_handle_at,name_to_handle_at,ioprio_set,ni_syscall,syslog,fanotify_init,kcmp,add_key,request_key,mbind,migrate_pages,move_pages,keyctl,io_setup,io_destroy,io_getevents,io_submit,io_cancel,remap_file_pages,set_mempolicyvmsplice,umount,userfaultfd,acct,bpf,chroot,mount,nfsservctl,pivot_root,setdomainname,sethostname,umount2,vhangup
@default=@clock,@cpu-emulation,@debug,@module,@mount,@obsolete,@raw-io,@reboot,@swap,open_by_handle_at,name_to_handle_at,ioprio_set,ni_syscall,syslog,fanotify_init,kcmp,add_key,request_key,mbind,migrate_pages,move_pages,keyctl,io_setup,io_destroy,io_getevents,io_submit,io_cancel,remap_file_pages,set_mempolicyvmsplice,userfaultfd,acct,bpf,nfsservctl,setdomainname,sethostname,vhangup
@default-nodebuggers=@default,ptrace,personality,process_vm_readv
@default-keep=execve,prctl
@file-system=access,chdir,chmod,close,creat,faccessat,fallocate,fchdir,fchmod,fchmodat,fcntl,fcntl64,fgetxattr,flistxattr,fremovexattr,fsetxattr,fstat,fstat64,fstatat64,fstatfs,fstatfs64,ftruncate,ftruncate64,futimesat,getcwd,getdents,getdents64,getxattr,inotify_add_watch,inotify_init,inotify_init1,inotify_rm_watch,lgetxattr,link,linkat,listxattr,llistxattr,lremovexattr,lsetxattr,lstat,lstat64,mkdir,mkdirat,mknod,mknodat,mmap,mmap2,munmap,newfstatat,oldfstat,oldlstat,oldstat,open,openat,readlink,readlinkat,removexattr,rename,renameat,renameat2,rmdir,setxattr,stat,stat64,statfs,statfs64,statx,symlink,symlinkat,truncate,truncate64,unlink,unlinkat,utime,utimensat,utimes
Expand Down Expand Up @@ -62,15 +62,14 @@ Inheritance of groups

+---------------+
| @default-keep |
| @mount |
+---------------+

+----------------+ +---------+ +--------+ +--------------+
| @cpu-emulation | | @clock | | @chown | | @aio |
| @debug | | @module | +--------+ | @basic-io |
| @obsolete | | @raw-io | : : | @file-system |
+----------------+ | @reboot | : : | @io-event |
: | @swap | : : | @ipc |
| @mount | | @reboot | : : | @io-event |
+----------------+ | @swap | : : | @ipc |
: +---------+ : : | @keyring |
: : : : : | @memlock |
: ..............: : : : | @network-io |
Expand Down
16 changes: 1 addition & 15 deletions src/lib/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ static const SyscallGroupList sysgroups[] = {
"@cpu-emulation,"
"@debug,"
"@module,"
"@mount,"
"@obsolete,"
"@raw-io,"
"@reboot,"
Expand Down Expand Up @@ -297,9 +298,6 @@ static const SyscallGroupList sysgroups[] = {
#ifdef SYS_vmsplice
"vmsplice,"
#endif
#ifdef SYS_umount
"umount,"
#endif
#ifdef SYS_userfaultfd
"userfaultfd,"
#endif
Expand All @@ -309,27 +307,15 @@ static const SyscallGroupList sysgroups[] = {
#ifdef SYS_bpf
"bpf,"
#endif
#ifdef SYS_chroot
"chroot,"
#endif
#ifdef SYS_mount
"mount,"
#endif
#ifdef SYS_nfsservctl
"nfsservctl,"
#endif
#ifdef SYS_pivot_root
"pivot_root,"
#endif
#ifdef SYS_setdomainname
"setdomainname,"
#endif
#ifdef SYS_sethostname
"sethostname,"
#endif
#ifdef SYS_umount2
"umount2,"
#endif
#ifdef SYS_vhangup
"vhangup"
#endif
Expand Down

0 comments on commit 6d95214

Please sign in to comment.