add device_node:{ chr_file blk_file } getattr;
This commit is contained in:
parent
4d8ddf9a4f
commit
c3dff2e0a2
@ -74,6 +74,20 @@ type device_t;
|
||||
class dir { getattr read search };
|
||||
')
|
||||
|
||||
########################################
|
||||
#
|
||||
# devices_get_generic_block_device_attributes(domain)
|
||||
#
|
||||
define(`devices_get_generic_block_device_attributes',`
|
||||
requires_block_template(`$0'_depend)
|
||||
allow $1 device_t:dir { getattr search read };
|
||||
allow $1 device_t:blk_file getattr;
|
||||
')
|
||||
|
||||
define(`devices_get_generic_block_device_attributes_depend',`
|
||||
type device_t;
|
||||
class blk_file getattr;
|
||||
')
|
||||
|
||||
########################################
|
||||
#
|
||||
@ -89,6 +103,21 @@ type device_t;
|
||||
class blk_file getattr;
|
||||
')
|
||||
|
||||
########################################
|
||||
#
|
||||
# devices_get_generic_character_device_attributes(domain)
|
||||
#
|
||||
define(`devices_get_generic_character_device_attributes',`
|
||||
requires_block_template(`$0'_depend)
|
||||
allow $1 device_t:dir { getattr search read };
|
||||
allow $1 device_t:chr_file getattr;
|
||||
')
|
||||
|
||||
define(`devices_get_generic_character_device_attributes_depend',`
|
||||
type device_t;
|
||||
class chr_file getattr;
|
||||
')
|
||||
|
||||
########################################
|
||||
#
|
||||
# devices_ignore_get_generic_character_device_attributes(domain)
|
||||
|
Loading…
Reference in New Issue
Block a user