init: add init_rw_inherited_stream_socket

This commit is contained in:
Christian Göttsche 2018-01-04 22:51:21 +01:00 committed by Chris PeBenito
parent 519cada9f1
commit 288bc8471c
1 changed files with 18 additions and 0 deletions

View File

@ -889,6 +889,24 @@ interface(`init_dgram_send',`
allow $1 init_t:unix_stream_socket getattr;
')
########################################
## <summary>
## Read and write to inherited init unix streams.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`init_rw_inherited_stream_socket',`
gen_require(`
type init_t;
')
allow $1 init_t:unix_stream_socket { getattr read write ioctl };
')
########################################
## <summary>
## Allow the specified domain to read/write to