mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-03-11 07:40:18 +00:00
devices/storage: quote arguments to tunable_policy
Match the overall style and please sepolgen-ifgen Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
a3811f4eb4
commit
dcb01ec4cc
@ -2802,7 +2802,7 @@ interface(`dev_read_raw_memory_cond',`
|
||||
')
|
||||
|
||||
typeattribute $1 memory_raw_read;
|
||||
tunable_policy($2, `
|
||||
tunable_policy(`$2', `
|
||||
read_chr_files_pattern($1, device_t, memory_device_t)
|
||||
allow $1 self:capability sys_rawio;
|
||||
')
|
||||
@ -2880,7 +2880,7 @@ interface(`dev_write_raw_memory_cond',`
|
||||
')
|
||||
|
||||
typeattribute $1 memory_raw_write;
|
||||
tunable_policy($2, `
|
||||
tunable_policy(`$2', `
|
||||
write_chr_files_pattern($1, device_t, memory_device_t)
|
||||
allow $1 self:capability sys_rawio;
|
||||
')
|
||||
@ -2956,7 +2956,7 @@ interface(`dev_wx_raw_memory_cond',`
|
||||
|
||||
typeattribute $1 memory_raw_write;
|
||||
dev_write_raw_memory_cond($1, $2)
|
||||
tunable_policy($2, `
|
||||
tunable_policy(`$2', `
|
||||
allow $1 memory_device_t:chr_file { map execute };
|
||||
')
|
||||
')
|
||||
|
@ -130,7 +130,7 @@ interface(`storage_raw_read_fixed_disk_cond',`
|
||||
')
|
||||
|
||||
typeattribute $1 fixed_disk_raw_read;
|
||||
tunable_policy($2, `
|
||||
tunable_policy(`$2', `
|
||||
dev_list_all_dev_nodes($1)
|
||||
allow $1 fixed_disk_device_t:blk_file read_blk_file_perms;
|
||||
allow $1 fixed_disk_device_t:chr_file read_chr_file_perms;
|
||||
|
Loading…
Reference in New Issue
Block a user