Merge pull request #384 from maage/missing-requires

cleanup: Missing requires
This commit is contained in:
Chris PeBenito 2021-07-08 09:46:43 -04:00 committed by GitHub
commit 2c4ae75eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -3226,6 +3226,7 @@ interface(`files_exec_etc_files',`
interface(`files_get_etc_unit_status',`
gen_require(`
type etc_t;
class service status;
')
allow $1 etc_t:service status;
@ -3244,6 +3245,7 @@ interface(`files_get_etc_unit_status',`
interface(`files_start_etc_service',`
gen_require(`
type etc_t;
class service start;
')
allow $1 etc_t:service start;
@ -3262,6 +3264,7 @@ interface(`files_start_etc_service',`
interface(`files_stop_etc_service',`
gen_require(`
type etc_t;
class service stop;
')
allow $1 etc_t:service stop;

View File

@ -167,6 +167,7 @@ template(`ssh_basic_client_template',`
#
template(`ssh_server_template', `
gen_require(`
attribute ssh_server;
type sshd_exec_t, sshd_key_t;
')
type $1_t, ssh_server;

View File

@ -1539,6 +1539,7 @@ interface(`xserver_read_tmp_files',`
interface(`xserver_dbus_chat',`
gen_require(`
type xserver_t;
class dbus send_msg;
')
allow $1 xserver_t:dbus send_msg;