devices: Change dev_rw_uhid() to use a policy pattern.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
1cbe455a5e
commit
2102055d4d
|
@ -4864,10 +4864,10 @@ interface(`dev_rw_tpm',`
|
|||
#
|
||||
interface(`dev_rw_uhid',`
|
||||
gen_require(`
|
||||
type uhid_device_t;
|
||||
type device_t, uhid_device_t;
|
||||
')
|
||||
|
||||
allow $1 uhid_device_t:chr_file rw_chr_file_perms;
|
||||
rw_chr_files_pattern($1, device_t, uhid_device_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
|
|
Loading…
Reference in New Issue