- Added policy module for rebootmgr (jsc#SMO-28) OBS-URL: https://build.opensuse.org/request/show/914043 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/selinux-policy?expand=0&rev=116
34 lines
698 B
Plaintext
34 lines
698 B
Plaintext
policy_module(rebootmgr, 1.0.0)
|
|
|
|
########################################
|
|
#
|
|
# Declarations
|
|
#
|
|
|
|
type rebootmgr_t;
|
|
type rebootmgr_exec_t;
|
|
init_daemon_domain(rebootmgr_t, rebootmgr_exec_t)
|
|
|
|
permissive rebootmgr_t;
|
|
|
|
########################################
|
|
#
|
|
# rebootmgr local policy
|
|
#
|
|
allow rebootmgr_t self:process { fork };
|
|
allow rebootmgr_t self:fifo_file rw_fifo_file_perms;
|
|
allow rebootmgr_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
domain_use_interactive_fds(rebootmgr_t)
|
|
|
|
files_read_etc_files(rebootmgr_t)
|
|
|
|
logging_send_syslog_msg(rebootmgr_t)
|
|
|
|
miscfiles_read_localization(rebootmgr_t)
|
|
|
|
optional_policy(`
|
|
dbus_system_bus_client(rebootmgr_t)
|
|
dbus_connect_system_bus(rebootmgr_t)
|
|
')
|