2014-11-06 00:30:41 +01:00
|
|
|
#
|
|
|
|
# Common neverallow permissions
|
|
|
|
define(`no_w_file_perms', `{ append create link unlink relabelfrom rename setattr write }')
|
2019-09-05 18:54:43 +02:00
|
|
|
define(`no_rw_file_perms', `{ no_w_file_perms open read ioctl lock watch watch_mount watch_sb watch_with_perm watch_reads }')
|
2014-11-06 00:30:41 +01:00
|
|
|
define(`no_x_file_perms', `{ execute execute_no_trans }')
|
|
|
|
define(`no_w_dir_perms', `{ add_name create link relabelfrom remove_name rename reparent rmdir setattr write }')
|
2017-03-25 00:07:35 +01:00
|
|
|
|
|
|
|
#####################################
|
|
|
|
# neverallow_establish_socket_comms(src, dst)
|
|
|
|
# neverallow src domain establishing socket connections to dst domain.
|
|
|
|
#
|
|
|
|
define(`neverallow_establish_socket_comms', `
|
|
|
|
neverallow $1 $2:socket_class_set { connect sendto };
|
|
|
|
neverallow $1 $2:unix_stream_socket connectto;
|
|
|
|
')
|