Merge pull request #174 from gtrentalancia/master

This commit is contained in:
Chris PeBenito 2020-02-01 14:36:08 -05:00
commit 8cf4002a34
2 changed files with 19 additions and 0 deletions

View File

@ -121,6 +121,7 @@ corenet_tcp_bind_soundd_port(pulseaudio_t)
corenet_sendrecv_sap_server_packets(pulseaudio_t)
corenet_udp_bind_sap_port(pulseaudio_t)
dev_watch_dev_dirs(pulseaudio_t)
dev_read_sound(pulseaudio_t)
dev_write_sound(pulseaudio_t)
dev_read_sysfs(pulseaudio_t)

View File

@ -108,6 +108,24 @@ interface(`dev_getattr_fs',`
allow $1 device_t:filesystem getattr;
')
########################################
## <summary>
## Watch the directories in /dev.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`dev_watch_dev_dirs',`
gen_require(`
type device_t;
')
allow $1 device_t:dir watch;
')
########################################
## <summary>
## Mount a filesystem on /dev