Skip to content

Commit bd93e48

Browse files
committed
fix AVCs found when testing
1 parent e4903d8 commit bd93e48

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

grafana.te

+10-2
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ optional_policy(`
109109
optional_policy(`
110110
require {
111111
type usr_t;
112-
class file { execute };
112+
class file { execute execute_no_trans };
113113
}
114-
allow grafana_t usr_t:file execute;
114+
allow grafana_t usr_t:file { execute execute_no_trans };
115115
')
116116

117117
optional_policy(`
@@ -125,6 +125,14 @@ optional_policy(`
125125
allow grafana_t postgresql_var_run_t:sock_file write;
126126
')
127127

128+
optional_policy(`
129+
require {
130+
type autofs_t;
131+
class dir {getattr};
132+
}
133+
allow grafana_t autofs_t:dir getattr;
134+
')
135+
128136
manage_dirs_pattern(grafana_t, grafana_conf_t, grafana_conf_t)
129137
manage_files_pattern(grafana_t, grafana_conf_t, grafana_conf_t)
130138

0 commit comments

Comments
 (0)