selinux-refpolicy/policy/modules/admin/usbguard.if
Topi Miettinen 1d2fb171b5
Add usbguard
Usbguard enforces the USB device authorization policy for all USB
devices. Users can be authorized to manage rules and make device
authorization decisions using a command line tool.

Add rules for usbguard. Optionally, allow authorized users to control
the daemon, which requires usbguard-daemon to be able modify its rules
in /etc/usbguard.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-03-18 20:23:38 +02:00

24 lines
520 B
Plaintext

## <summary>
## Usbguard enforces the USB device authorization policy for all USB
## devices.
## </summary>
#####################################
## <summary>
## Connect to usbguard with a unix domain stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`usbguard_stream_connect',`
gen_require(`
type usbguard_t, usbguard_tmpfs_t;
')
files_search_pids($1)
stream_connect_pattern($1, usbguard_tmpfs_t, usbguard_tmpfs_t, usbguard_t)
')