mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-02-24 00:16:57 +00:00
Add interfaces to read/write /proc/sys/vm/overcommit_memory
This commit is contained in:
parent
6b1b2e3965
commit
4340b9f8a4
@ -3323,3 +3323,43 @@ interface(`kernel_unconfined',`
|
||||
typeattribute $1 kern_unconfined;
|
||||
kernel_load_module($1)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read virtual memory overcommit sysctl.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <rolecap/>
|
||||
#
|
||||
interface(`kernel_read_vm_overcommit_sysctl',`
|
||||
gen_require(`
|
||||
type sysctl_vm_overcommit_t;
|
||||
')
|
||||
|
||||
kernel_search_vm_sysctl($1)
|
||||
allow $1 sysctl_vm_overcommit_t:file read_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read and write virtual memory overcommit sysctl.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <rolecap/>
|
||||
#
|
||||
interface(`kernel_rw_vm_overcommit_sysctl',`
|
||||
gen_require(`
|
||||
type sysctl_vm_overcommit_t;
|
||||
')
|
||||
|
||||
kernel_search_vm_sysctl($1)
|
||||
allow $1 sysctl_vm_overcommit_t:file rw_file_perms;
|
||||
')
|
||||
|
Loading…
Reference in New Issue
Block a user