Blame targeted/domains/program/dbusd.te
|
Chris PeBenito |
ab58ad |
#DESC dbus-daemon-1 server for dbus desktop bus protocol
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# Author: Russell Coker <russell@coker.com.au>
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
dbusd_domain(system)
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
allow system_dbusd_t system_dbusd_var_run_t:sock_file create_file_perms;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
ifdef(`pamconsole.te', `
|
|
Chris PeBenito |
ab58ad |
r_dir_file(system_dbusd_t, pam_var_console_t)
|
|
Chris PeBenito |
ab58ad |
')
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# dac_override: /var/run/dbus is owned by messagebus on Debian
|
|
Chris PeBenito |
ab58ad |
allow system_dbusd_t self:capability { dac_override setgid setuid };
|
|
Chris PeBenito |
ab58ad |
nsswitch_domain(system_dbusd_t)
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# I expect we need more than this
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
allow initrc_t system_dbusd_t:dbus { send_msg acquire_svc };
|
|
Chris PeBenito |
ab58ad |
allow initrc_t system_dbusd_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
ab58ad |
allow initrc_t system_dbusd_var_run_t:sock_file write;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
can_exec(system_dbusd_t, sbin_t)
|
|
Chris PeBenito |
ab58ad |
allow system_dbusd_t self:fifo_file { read write };
|
|
Chris PeBenito |
ab58ad |
allow system_dbusd_t self:unix_stream_socket connectto;
|
|
Chris PeBenito |
ab58ad |
allow system_dbusd_t self:unix_stream_socket connectto;
|
|
Chris PeBenito |
ab58ad |
allow system_dbusd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
|