|
|
1ec3d1a |
## <summary>Desktop messaging bus</summary>
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## DBUS stub interface. No access allowed.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain" unused="true">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_stub',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_t;
|
|
|
1ec3d1a |
class dbus all_dbus_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Role access for dbus
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="role_prefix">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## The prefix of the user role (e.g., user
|
|
|
1ec3d1a |
## is the prefix for user_r).
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="role">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Role allowed access
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## User domain for the role
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
template(`dbus_role_template',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
class dbus { send_msg acquire_svc };
|
|
|
1ec3d1a |
attribute dbusd_unconfined, session_bus_type;
|
|
|
1ec3d1a |
type system_dbusd_t, session_dbusd_tmp_t, dbusd_exec_t, dbusd_etc_t;
|
|
|
1ec3d1a |
type $1_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
##############################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Delcarations
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type $1_dbusd_t, session_bus_type;
|
|
|
1ec3d1a |
application_domain($1_dbusd_t, dbusd_exec_t)
|
|
|
1ec3d1a |
ubac_constrained($1_dbusd_t)
|
|
|
1ec3d1a |
role $2 types $1_dbusd_t;
|
|
|
1ec3d1a |
|
|
|
9dfaa7b |
kernel_read_system_state($1_dbusd_t)
|
|
|
9dfaa7b |
|
|
|
9dfaa7b |
selinux_get_fs_mount($1_dbusd_t)
|
|
|
9dfaa7b |
|
|
|
1ec3d1a |
userdom_home_manager($1_dbusd_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
##############################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
# For connecting to the bus
|
|
|
1ec3d1a |
allow $3 $1_dbusd_t:unix_stream_socket connectto;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
# SE-DBus specific permissions
|
|
|
1ec3d1a |
allow { dbusd_unconfined $3 } $1_dbusd_t:dbus { send_msg acquire_svc };
|
|
|
1ec3d1a |
allow $3 system_dbusd_t:dbus { send_msg acquire_svc };
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domtrans_pattern($3, dbusd_exec_t, $1_dbusd_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
ps_process_pattern($3, $1_dbusd_t)
|
|
|
1ec3d1a |
allow $3 $1_dbusd_t:process signal_perms;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
tunable_policy(`deny_ptrace',`',`
|
|
|
1ec3d1a |
allow $3 $1_dbusd_t:process ptrace;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
# cjp: this seems very broken
|
|
|
1ec3d1a |
corecmd_bin_domtrans($1_dbusd_t, $1_t)
|
|
|
1ec3d1a |
corecmd_shell_domtrans($1_dbusd_t, $1_t)
|
|
|
1ec3d1a |
allow $1_dbusd_t $3:process sigkill;
|
|
|
1ec3d1a |
allow $3 $1_dbusd_t:fd use;
|
|
|
1ec3d1a |
allow $3 $1_dbusd_t:fifo_file rw_fifo_file_perms;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
auth_use_nsswitch($1_dbusd_t)
|
|
|
6a213c4 |
|
|
|
6a213c4 |
logging_send_syslog_msg($1_dbusd_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Template for creating connections to
|
|
|
1ec3d1a |
## the system DBUS.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_system_bus_client',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_t, system_dbusd_t;
|
|
|
1ec3d1a |
type system_dbusd_var_run_t, system_dbusd_var_lib_t;
|
|
|
1ec3d1a |
class dbus send_msg;
|
|
|
1ec3d1a |
attribute dbusd_unconfined;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
# SE-DBus specific permissions
|
|
|
1ec3d1a |
allow $1 { system_dbusd_t self }:dbus send_msg;
|
|
|
1ec3d1a |
allow { system_dbusd_t dbusd_unconfined } $1:dbus send_msg;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
read_files_pattern($1, system_dbusd_var_lib_t, system_dbusd_var_lib_t)
|
|
|
1ec3d1a |
files_search_var_lib($1)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
# For connecting to the bus
|
|
|
1ec3d1a |
files_search_pids($1)
|
|
|
1ec3d1a |
stream_connect_pattern($1, system_dbusd_var_run_t, system_dbusd_var_run_t, system_dbusd_t)
|
|
|
1ec3d1a |
dbus_read_config($1)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Creating connections to specified
|
|
|
1ec3d1a |
## DBUS sessions.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="role_prefix">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## The prefix of the user role (e.g., user
|
|
|
1ec3d1a |
## is the prefix for user_r).
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_session_client',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
class dbus send_msg;
|
|
|
1ec3d1a |
type $1_dbusd_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $2 $1_dbusd_t:fd use;
|
|
|
1ec3d1a |
allow $2 { $1_dbusd_t self }:dbus send_msg;
|
|
|
1ec3d1a |
allow $2 $1_dbusd_t:unix_stream_socket connectto;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Template for creating connections to
|
|
|
1ec3d1a |
## a user DBUS.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_session_bus_client',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
attribute session_bus_type;
|
|
|
1ec3d1a |
class dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
# SE-DBus specific permissions
|
|
|
1ec3d1a |
allow $1 { session_bus_type self }:dbus send_msg;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
# For connecting to the bus
|
|
|
1ec3d1a |
allow $1 session_bus_type:unix_stream_socket connectto;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow session_bus_type $1:process sigkill;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Send a message the session DBUS.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_send_session_bus',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
attribute session_bus_type;
|
|
|
1ec3d1a |
class dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 session_bus_type:dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read dbus configuration.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_read_config',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type dbusd_etc_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 dbusd_etc_t:dir list_dir_perms;
|
|
|
1ec3d1a |
allow $1 dbusd_etc_t:file read_file_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read system dbus lib files.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_read_lib_files',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_var_lib_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_var_lib($1)
|
|
|
1ec3d1a |
read_files_pattern($1, system_dbusd_var_lib_t, system_dbusd_var_lib_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Create, read, write, and delete
|
|
|
1ec3d1a |
## system dbus lib files.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_manage_lib_files',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_var_lib_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_var_lib($1)
|
|
|
1ec3d1a |
manage_files_pattern($1, system_dbusd_var_lib_t, system_dbusd_var_lib_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Connect to the system DBUS
|
|
|
1ec3d1a |
## for service (acquire_svc).
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_connect_session_bus',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
attribute session_bus_type;
|
|
|
1ec3d1a |
class dbus acquire_svc;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 session_bus_type:dbus acquire_svc;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Allow a application domain to be started
|
|
|
1ec3d1a |
## by the session dbus.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain_prefix">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## User domain prefix to be used.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Type to be used as a domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="entry_point">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Type of the program to be used as an
|
|
|
1ec3d1a |
## entry point to this domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_session_domain',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type $1_dbusd_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domtrans_pattern($1_dbusd_t, $2, $3)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dbus_session_bus_client($3)
|
|
|
1ec3d1a |
dbus_connect_session_bus($3)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Connect to the system DBUS
|
|
|
1ec3d1a |
## for service (acquire_svc).
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_connect_system_bus',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_t;
|
|
|
1ec3d1a |
class dbus acquire_svc;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 system_dbusd_t:dbus acquire_svc;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Send a message on the system DBUS.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_send_system_bus',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_t;
|
|
|
1ec3d1a |
class dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 system_dbusd_t:dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Allow unconfined access to the system DBUS.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_system_bus_unconfined',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_t;
|
|
|
1ec3d1a |
class dbus all_dbus_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 system_dbusd_t:dbus *;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Create a domain for processes
|
|
|
1ec3d1a |
## which can be started by the system dbus
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Type to be used as a domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="entry_point">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Type of the program to be used as an entry point to this domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_system_domain',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
attribute system_bus_type;
|
|
|
1ec3d1a |
type system_dbusd_t;
|
|
|
1ec3d1a |
role system_r;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
typeattribute $1 system_bus_type;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domain_type($1)
|
|
|
1ec3d1a |
domain_entry_file($1, $2)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domtrans_pattern(system_dbusd_t, $2, $1)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Use and inherit system DBUS file descriptors.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_use_system_bus_fds',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 system_dbusd_t:fd use;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Allow unconfined access to the system DBUS.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_unconfined',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
attribute dbusd_unconfined;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
typeattribute $1 dbusd_unconfined;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Delete all dbus pid files
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_delete_pid_files',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type system_dbusd_var_run_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_pids($1)
|
|
|
1ec3d1a |
delete_files_pattern($1, system_dbusd_var_run_t, system_dbusd_var_run_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Do not audit attempts to connect to
|
|
|
1ec3d1a |
## session bus types with a unix
|
|
|
1ec3d1a |
## stream socket.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain to not audit.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_dontaudit_stream_connect_session_bus',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
attribute session_bus_type;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dontaudit $1 session_bus_type:unix_stream_socket connectto;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Do not audit attempts to send dbus
|
|
|
1ec3d1a |
## messages to session bus types.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain to not audit.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`dbus_dontaudit_chat_session_bus',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
attribute session_bus_type;
|
|
|
1ec3d1a |
class dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dontaudit $1 session_bus_type:dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
5147be1 |
|
|
|
5147be1 |
########################################
|
|
|
5147be1 |
## <summary>
|
|
|
5147be1 |
## Do not audit attempts to send dbus
|
|
|
5147be1 |
## messages to system bus types.
|
|
|
5147be1 |
## </summary>
|
|
|
5147be1 |
## <param name="domain">
|
|
|
5147be1 |
## <summary>
|
|
|
5147be1 |
## Domain to not audit.
|
|
|
5147be1 |
## </summary>
|
|
|
5147be1 |
## </param>
|
|
|
5147be1 |
#
|
|
|
5147be1 |
interface(`dbus_dontaudit_chat_system_bus',`
|
|
|
5147be1 |
gen_require(`
|
|
|
5147be1 |
attribute system_bus_type;
|
|
|
5147be1 |
class dbus send_msg;
|
|
|
5147be1 |
')
|
|
|
5147be1 |
|
|
|
5147be1 |
dontaudit $1 system_bus_type:dbus send_msg;
|
|
|
5147be1 |
dontaudit system_bus_type $1:dbus send_msg;
|
|
|
5147be1 |
')
|