devices: add interface for IOCTL on input devices
Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
parent
037ac427f8
commit
03713214e2
|
@ -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*).
|
||||
|
|
Loading…
Reference in New Issue