selinux-policy/policy/modules/services/modemmanager.te

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-05-24 19:32:01 +00:00
policy_module(modemmanager, 1.1.0)
2009-09-14 13:48:13 +00:00
########################################
#
# Declarations
#
type modemmanager_t;
type modemmanager_exec_t;
dbus_system_domain(modemmanager_t, modemmanager_exec_t)
typealias modemmanager_t alias ModemManager_t;
typealias modemmanager_exec_t alias ModemManager_exec_t;
########################################
#
# ModemManager local policy
#
2010-08-26 13:41:21 +00:00
allow modemmanager_t self:capability { net_admin sys_admin sys_tty_config };
allow modemmanager_t self:process { getsched signal };
2009-09-14 13:48:13 +00:00
allow modemmanager_t self:fifo_file rw_file_perms;
allow modemmanager_t self:unix_stream_socket create_stream_socket_perms;
allow modemmanager_t self:netlink_kobject_uevent_socket create_socket_perms;
kernel_read_system_state(modemmanager_t)
dev_read_sysfs(modemmanager_t)
2009-12-18 15:44:26 +00:00
dev_rw_modem(modemmanager_t)
2009-09-14 13:48:13 +00:00
files_read_etc_files(modemmanager_t)
2010-08-26 13:41:21 +00:00
term_use_generic_ptys(modemmanager_t)
2009-09-14 13:48:13 +00:00
term_use_unallocated_ttys(modemmanager_t)
miscfiles_read_localization(modemmanager_t)
logging_send_syslog_msg(modemmanager_t)
networkmanager_dbus_chat(modemmanager_t)
2010-08-26 13:41:21 +00:00
optional_policy(`
policykit_dbus_chat(modemmanager_t)
')
2009-09-14 13:48:13 +00:00
optional_policy(`
udev_read_db(modemmanager_t)
')