Chris PeBenito 29af4c
policy_module(modemmanager, 1.1.0)
Chris PeBenito c141d8
Chris PeBenito c141d8
########################################
Chris PeBenito c141d8
#
Chris PeBenito c141d8
# Declarations
Chris PeBenito c141d8
#
Chris PeBenito c141d8
Chris PeBenito c141d8
type modemmanager_t;
Chris PeBenito c141d8
type modemmanager_exec_t;
Chris PeBenito c141d8
dbus_system_domain(modemmanager_t, modemmanager_exec_t)
Chris PeBenito c141d8
typealias modemmanager_t alias ModemManager_t;
Chris PeBenito c141d8
typealias modemmanager_exec_t alias ModemManager_exec_t;
Chris PeBenito c141d8
Chris PeBenito c141d8
########################################
Chris PeBenito c141d8
#
Chris PeBenito c141d8
# ModemManager local policy
Chris PeBenito c141d8
#
Chris PeBenito c141d8
Dan Walsh 3eaa99
allow modemmanager_t self:capability { net_admin sys_admin sys_tty_config };
Dan Walsh 3eaa99
allow modemmanager_t self:process { getsched signal };  
Chris PeBenito c141d8
allow modemmanager_t self:fifo_file rw_file_perms;
Chris PeBenito c141d8
allow modemmanager_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito c141d8
allow modemmanager_t self:netlink_kobject_uevent_socket create_socket_perms;
Chris PeBenito c141d8
Chris PeBenito c141d8
kernel_read_system_state(modemmanager_t)
Chris PeBenito c141d8
Chris PeBenito c141d8
dev_read_sysfs(modemmanager_t)
Chris PeBenito d3c612
dev_rw_modem(modemmanager_t)
Chris PeBenito c141d8
Chris PeBenito c141d8
files_read_etc_files(modemmanager_t)
Chris PeBenito c141d8
Dan Walsh 3eaa99
term_use_generic_ptys(modemmanager_t)
Chris PeBenito c141d8
term_use_unallocated_ttys(modemmanager_t)
Chris PeBenito c141d8
Chris PeBenito c141d8
miscfiles_read_localization(modemmanager_t)
Chris PeBenito c141d8
Chris PeBenito c141d8
logging_send_syslog_msg(modemmanager_t)
Chris PeBenito c141d8
Chris PeBenito c141d8
networkmanager_dbus_chat(modemmanager_t)
Chris PeBenito c141d8
Chris PeBenito c141d8
optional_policy(`
Dan Walsh 3eaa99
	policykit_dbus_chat(modemmanager_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Chris PeBenito c141d8
	udev_read_db(modemmanager_t)
Chris PeBenito c141d8
')