|
Chris PeBenito |
29af4c |
policy_module(dbus, 1.13.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
350b6a |
class dbus all_dbus_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
##############################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Delcarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e04438 |
attribute dbusd_unconfined;
|
|
Chris PeBenito |
296273 |
attribute session_bus_type;
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type dbusd_etc_t;
|
|
Chris PeBenito |
e04438 |
files_config_file(dbusd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
type dbusd_exec_t;
|
|
Chris PeBenito |
296273 |
corecmd_executable_file(dbusd_exec_t)
|
|
Chris PeBenito |
e04438 |
typealias dbusd_exec_t alias system_dbusd_exec_t;
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type session_dbusd_tmp_t;
|
|
Chris PeBenito |
296273 |
typealias session_dbusd_tmp_t alias { user_dbusd_tmp_t staff_dbusd_tmp_t sysadm_dbusd_tmp_t };
|
|
Chris PeBenito |
296273 |
typealias session_dbusd_tmp_t alias { auditadm_dbusd_tmp_t secadm_dbusd_tmp_t };
|
|
Chris PeBenito |
296273 |
files_tmp_file(session_dbusd_tmp_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(session_dbusd_tmp_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type system_dbusd_t;
|
|
Chris PeBenito |
296273 |
init_system_domain(system_dbusd_t, dbusd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type system_dbusd_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(system_dbusd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8a9d6f |
type system_dbusd_var_lib_t;
|
|
Chris PeBenito |
e04438 |
files_type(system_dbusd_var_lib_t)
|
|
Chris PeBenito |
8a9d6f |
|
|
Chris PeBenito |
17de1b |
type system_dbusd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(system_dbusd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e04438 |
ifdef(`enable_mcs',`
|
|
Chris PeBenito |
423a4a |
init_ranged_system_domain(system_dbusd_t, dbusd_exec_t, s0 - mcs_systemhigh)
|
|
Chris PeBenito |
e04438 |
')
|
|
Chris PeBenito |
e04438 |
|
|
Chris PeBenito |
e04438 |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
423a4a |
init_ranged_system_domain(system_dbusd_t, dbusd_exec_t, s0 - mls_systemhigh)
|
|
Chris PeBenito |
e04438 |
')
|
|
Chris PeBenito |
e04438 |
|
|
Chris PeBenito |
17de1b |
##############################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
296273 |
# System bus local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# dac_override: /var/run/dbus is owned by messagebus on Debian
|
|
Chris PeBenito |
17de1b |
# cjp: dac_override should probably go in a distro_debian
|
|
Chris PeBenito |
c0868a |
allow system_dbusd_t self:capability { dac_override setgid setpcap setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit system_dbusd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
e04438 |
allow system_dbusd_t self:process { getattr getsched signal_perms setpgid getcap setcap };
|
|
Chris PeBenito |
0b36a2 |
allow system_dbusd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow system_dbusd_t self:dbus { send_msg acquire_svc };
|
|
Chris PeBenito |
17de1b |
allow system_dbusd_t self:unix_stream_socket { connectto create_stream_socket_perms connectto };
|
|
Chris PeBenito |
17de1b |
allow system_dbusd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
# Receive notifications of policy reloads and enforcing status changes.
|
|
Chris PeBenito |
17de1b |
allow system_dbusd_t self:netlink_selinux_socket { create bind read };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e04438 |
can_exec(system_dbusd_t, dbusd_exec_t)
|
|
Chris PeBenito |
e04438 |
|
|
Chris PeBenito |
c0868a |
allow system_dbusd_t dbusd_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(system_dbusd_t, dbusd_etc_t, dbusd_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(system_dbusd_t, dbusd_etc_t, dbusd_etc_t)
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(system_dbusd_t, system_dbusd_tmp_t, system_dbusd_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(system_dbusd_t, system_dbusd_tmp_t, system_dbusd_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(system_dbusd_t, system_dbusd_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8a9d6f |
read_files_pattern(system_dbusd_t, system_dbusd_var_lib_t, system_dbusd_var_lib_t)
|
|
Chris PeBenito |
8a9d6f |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(system_dbusd_t, system_dbusd_var_run_t, system_dbusd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(system_dbusd_t, system_dbusd_var_run_t, system_dbusd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(system_dbusd_t, system_dbusd_var_run_t, system_dbusd_var_run_t)
|
|
Dan Walsh |
3eaa99 |
files_pid_filetrans(system_dbusd_t, system_dbusd_var_run_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(system_dbusd_t)
|
|
Chris PeBenito |
98ac98 |
fs_list_inotifyfs(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
fs_dontaudit_list_nfs(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
|
|
Chris PeBenito |
e04438 |
mls_fd_use_all_levels(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
mls_rangetrans_target(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
mls_file_read_all_levels(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
mls_socket_write_all_levels(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
mls_socket_read_to_clearance(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
mls_dbus_recv_all_levels(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
selinux_get_fs_mount(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
selinux_validate_context(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
selinux_compute_access_vector(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
selinux_compute_create_context(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
selinux_compute_relabel_context(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
selinux_compute_user_contexts(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_console(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_use_nsswitch(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
auth_read_pam_console_data(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_list_bin(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_bin_pipes(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_bin_sockets(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
domain_read_all_domains_state(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
files_list_home(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_fds(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(system_dbusd_t)
|
|
Dan Walsh |
3eaa99 |
init_bin_domtrans_spec(system_dbusd_t)
|
|
Chris PeBenito |
98ac98 |
init_domtrans_script(system_dbusd_t)
|
|
Dan Walsh |
3eaa99 |
init_rw_stream_sockets(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d5b81a |
logging_send_audit_msgs(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(system_dbusd_t)
|
|
Dominick Grift |
834062 |
miscfiles_read_generic_certs(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_read_config(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
seutil_read_default_contexts(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(system_dbusd_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
bind_domtrans(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
gnome_exec_gconf(system_dbusd_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
networkmanager_initrc_domtrans(system_dbusd_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
policykit_dbus_chat(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
policykit_domtrans_auth(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
policykit_search_lib(system_dbusd_t)
|
|
Chris PeBenito |
e04438 |
')
|
|
Chris PeBenito |
e04438 |
|
|
Chris PeBenito |
e04438 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
sysnet_domtrans_dhcpc(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(system_dbusd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
e04438 |
|
|
Chris PeBenito |
e04438 |
########################################
|
|
Chris PeBenito |
e04438 |
#
|
|
Chris PeBenito |
e04438 |
# Unconfined access to this module
|
|
Chris PeBenito |
e04438 |
#
|
|
Chris PeBenito |
e04438 |
allow dbusd_unconfined session_bus_type:dbus all_dbus_perms;
|
|
Dan Walsh |
3eaa99 |
allow dbusd_unconfined dbusd_unconfined:dbus all_dbus_perms;
|
|
Dan Walsh |
3eaa99 |
allow session_bus_type dbusd_unconfined:dbus send_msg;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
xserver_use_xdm_fds(session_bus_type)
|
|
Dan Walsh |
3eaa99 |
xserver_rw_xdm_pipes(session_bus_type)
|
|
Dan Walsh |
3eaa99 |
xserver_append_xdm_home_files(session_bus_type)
|
|
Dan Walsh |
3eaa99 |
')
|