summaryrefslogtreecommitdiffstats
path: root/common/usf.te
blob: 8c35db36b6e77cd4b463e63b2e4547a8ef7bb93d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Policy for usf daemons
type usf, domain;
type usf_exec, exec_type, vendor_file_type, file_type;

# Started by init
init_daemon_domain(usf)
net_domain(usf)

# Ultrasound device
allow usf usf_device:chr_file rw_file_perms;

# Audio
allow usf audio_data_file:sock_file write;
#allow usf mediaserver:unix_stream_socket connectto;
allow usf audio_data_file:dir r_dir_perms;
allow usf audio_device:chr_file rw_file_perms;
allow usf proc_audiod:file r_file_perms;
allow usf audio_device:dir r_dir_perms;

# Data files and persist storage
allow usf usf_data_file:dir rw_dir_perms;
allow usf usf_data_file:{ file sock_file fifo_file } create_file_perms;
allow usf usf_data_file:lnk_file r_file_perms;
r_dir_file(usf, persist_file)
r_dir_file(usf, persist_usf_file)

# Properties
set_prop(usf, ctl_default_prop)
set_prop(usf, usf_prop)