2020-08-18 13:09:10 +00:00
|
|
|
policy_module(sigrok, 1.1.0)
|
2020-08-13 12:24:35 +00:00
|
|
|
|
2019-01-03 23:20:14 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
attribute_role sigrok_roles;
|
|
|
|
roleattribute system_r sigrok_roles;
|
|
|
|
|
|
|
|
type sigrok_t;
|
|
|
|
type sigrok_exec_t;
|
|
|
|
userdom_user_application_domain(sigrok_t, sigrok_exec_t)
|
|
|
|
role sigrok_roles types sigrok_t;
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow sigrok_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow sigrok_t self:netlink_kobject_uevent_socket create_socket_perms;
|
|
|
|
allow sigrok_t self:tcp_socket create_socket_perms;
|
|
|
|
|
|
|
|
corenet_tcp_connect_all_unreserved_ports(sigrok_t)
|
|
|
|
|
|
|
|
dev_getattr_sysfs_dirs(sigrok_t)
|
|
|
|
dev_read_sysfs(sigrok_t)
|
|
|
|
dev_rw_generic_usb_dev(sigrok_t)
|
|
|
|
|
|
|
|
files_read_etc_files(sigrok_t)
|
|
|
|
|
|
|
|
term_use_unallocated_ttys(sigrok_t)
|
|
|
|
|
|
|
|
userdom_use_user_ptys(sigrok_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
2020-06-27 21:11:48 +00:00
|
|
|
udev_read_runtime_files(sigrok_t)
|
2019-01-03 23:20:14 +00:00
|
|
|
')
|