From 2102055d4d9f0db0dc0380650c6c6a42be8153ba Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Wed, 5 Jun 2024 15:26:56 -0400 Subject: [PATCH] devices: Change dev_rw_uhid() to use a policy pattern. Signed-off-by: Chris PeBenito --- policy/modules/kernel/devices.if | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if index e401bd77b..aaa5807bb 100644 --- a/policy/modules/kernel/devices.if +++ b/policy/modules/kernel/devices.if @@ -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) ') ########################################