devices: Change dev_rw_uhid() to use a policy pattern.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
Chris PeBenito 2024-06-05 15:26:56 -04:00
parent 1cbe455a5e
commit 2102055d4d
1 changed files with 2 additions and 2 deletions

View File

@ -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)
')
########################################