Skip to content

Commit

Permalink
devices: Change dev_rw_uhid() to use a policy pattern.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris PeBenito <[email protected]>
  • Loading branch information
pebenito committed Jun 5, 2024
1 parent 1cbe455 commit 2102055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions policy/modules/kernel/devices.if
Original file line number Diff line number Diff line change
Expand Up @@ -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)
')

########################################
Expand Down

0 comments on commit 2102055

Please sign in to comment.