devices: add interface for IOCTL on input devices

Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
Kenton Groombridge 2020-12-27 20:08:43 -05:00
parent 037ac427f8
commit 03713214e2
No known key found for this signature in database
GPG Key ID: 16DD27345D9905A7
1 changed files with 18 additions and 0 deletions

View File

@ -2187,6 +2187,24 @@ interface(`dev_manage_input_dev',`
manage_chr_files_pattern($1, device_t, event_device_t)
')
########################################
## <summary>
## IOCTL the input event devices (/dev/input).
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`dev_ioctl_input_dev',`
gen_require(`
type event_device_t;
')
allow $1 event_device_t:chr_file ioctl;
')
########################################
## <summary>
## Read and write ipmi devices (/dev/ipmi*).