Declare a cachfiles device node type
Used by kernel to communicate with user space (cachefilesd) Label the character file accordingly Create a dev_rw_cachefiles_dev() for cachefilesd Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
This commit is contained in:
parent
8bd7b0e1b9
commit
f8075ac60f
|
@ -17,6 +17,7 @@
|
|||
/dev/autofs.* -c gen_context(system_u:object_r:autofs_device_t,s0)
|
||||
/dev/beep -c gen_context(system_u:object_r:sound_device_t,s0)
|
||||
/dev/btrfs-control -c gen_context(system_u:object_r:lvm_control_t,s0)
|
||||
/dev/cachefiles -c gen_context(system_u:object_r:cachefiles_dev_t,s0)
|
||||
/dev/controlD64 -c gen_context(system_u:object_r:xserver_misc_device_t,s0)
|
||||
/dev/crash -c gen_context(system_u:object_r:crash_device_t,mls_systemhigh)
|
||||
/dev/dahdi/.* -c gen_context(system_u:object_r:sound_device_t,s0)
|
||||
|
|
|
@ -1558,6 +1558,25 @@ interface(`dev_relabel_autofs_dev',`
|
|||
allow $1 autofs_device_t:chr_file relabel_chr_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read and write cachefiles character
|
||||
## device nodes.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`dev_rw_cachefiles',`
|
||||
gen_require(`
|
||||
type device_t, cachefiles_dev_t;
|
||||
')
|
||||
|
||||
rw_chr_files_pattern($1, device_t, cachefiles_dev_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read and write the PCMCIA card manager device.
|
||||
|
|
|
@ -43,6 +43,9 @@ type cardmgr_dev_t;
|
|||
dev_node(cardmgr_dev_t)
|
||||
files_tmp_file(cardmgr_dev_t)
|
||||
|
||||
type cachefiles_dev_t;
|
||||
dev_node(cachefiles_dev_t)
|
||||
|
||||
#
|
||||
# clock_device_t is the type of
|
||||
# /dev/rtc.
|
||||
|
|
Loading…
Reference in New Issue