mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-03-25 04:26:37 +00:00
kernel.if: Allow listing /proc/sys/net/unix
The kernel_read_unix_sysctls() and kernel_rw_unix_sysctls() currenly don't allow listing the /proc/sys/net/unix directory, contrary to the other sysctl interfaces.
This commit is contained in:
parent
1113e38307
commit
8d8c849428
@ -1758,7 +1758,7 @@ interface(`kernel_read_unix_sysctls',`
|
||||
|
||||
read_files_pattern($1, { proc_t sysctl_t sysctl_net_t }, sysctl_net_unix_t)
|
||||
|
||||
list_dirs_pattern($1, { proc_t sysctl_t }, sysctl_net_t)
|
||||
list_dirs_pattern($1, { proc_t sysctl_t }, { sysctl_net_t sysctl_net_unix_t })
|
||||
')
|
||||
|
||||
########################################
|
||||
@ -1780,7 +1780,7 @@ interface(`kernel_rw_unix_sysctls',`
|
||||
|
||||
rw_files_pattern($1, { proc_t sysctl_t sysctl_net_t }, sysctl_net_unix_t)
|
||||
|
||||
list_dirs_pattern($1, { proc_t sysctl_t }, sysctl_net_t)
|
||||
list_dirs_pattern($1, { proc_t sysctl_t }, { sysctl_net_t sysctl_net_unix_t })
|
||||
')
|
||||
|
||||
########################################
|
||||
|
Loading…
Reference in New Issue
Block a user