1
## <summary>Pulseaudio network sound server.</summary>
3
########################################
5
## Role access for pulseaudio
12
## <param name="domain">
14
## User domain for the role
18
interface(`pulseaudio_role',`
20
type pulseaudio_t, pulseaudio_exec_t, print_spool_t;
21
class dbus { send_msg };
24
role $1 types pulseaudio_t;
26
# Transition from the user domain to the derived domain.
27
domtrans_pattern($2, pulseaudio_exec_t, pulseaudio_t)
29
ps_process_pattern($2, pulseaudio_t)
31
allow pulseaudio_t $2:process { signal signull };
32
allow $2 pulseaudio_t:process { signal signull };
33
ps_process_pattern(pulseaudio_t, $2)
35
allow pulseaudio_t $2:unix_stream_socket connectto;
36
allow $2 pulseaudio_t:unix_stream_socket connectto;
38
userdom_manage_home_role($1, pulseaudio_t)
39
userdom_manage_tmp_role($1, pulseaudio_t)
40
userdom_manage_tmpfs_role($1, pulseaudio_t)
42
allow $2 pulseaudio_t:dbus send_msg;
43
allow pulseaudio_t $2:dbus send_msg;
46
########################################
48
## Execute a domain transition to run pulseaudio.
50
## <param name="domain">
52
## Domain allowed to transition.
56
interface(`pulseaudio_domtrans',`
58
type pulseaudio_t, pulseaudio_exec_t;
61
domtrans_pattern($1,pulseaudio_exec_t,pulseaudio_t)
64
########################################
66
## Execute pulseaudio in the pulseaudio domain, and
67
## allow the specified role the pulseaudio domain.
69
## <param name="domain">
71
## Domain allowed access.
74
## <param name="role">
76
## The role to be allowed the pulseaudio domain.
80
interface(`pulseaudio_run',`
85
pulseaudio_domtrans($1)
86
role $2 types pulseaudio_t;
89
########################################
91
## Execute a pulseaudio in the current domain
93
## <param name="domain">
95
## Domain allowed to transition.
99
interface(`pulseaudio_exec',`
101
type pulseaudio_exec_t;
104
can_exec($1,pulseaudio_exec_t)
107
########################################
109
## Send and receive messages from
110
## pulseaudio over dbus.
112
## <param name="domain">
114
## Domain allowed access.
118
interface(`pulseaudio_dbus_chat',`
124
allow $1 pulseaudio_t:dbus send_msg;
125
allow pulseaudio_t $1:dbus send_msg;
128
########################################
130
## pulsaudio connection template.
132
## <param name="user_domain">
134
## The type of the user domain.
138
interface(`pulseaudio_stream_connect',`
143
allow $1 pulseaudio_t:process signull;
144
allow $1 pulseaudio_t:unix_stream_socket connectto;