Skip to content

Commit e8cc688

Browse files
committed
Add insights_core policy files
1 parent f6ab4dc commit e8cc688

File tree

3 files changed

+409
-0
lines changed

3 files changed

+409
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/var/cache/insights(/.*)? gen_context(system_u:object_r:insights_core_cache_t,s0)
2+
/var/cache/insights-client(/.*)? gen_context(system_u:object_r:insights_core_cache_t,s0)
3+
4+
/tmp/insights-client\.ppid -- gen_context(system_u:object_r:insights_core_tmp_t,s0)
5+
/var/tmp/insights-client\.ppid -- gen_context(system_u:object_r:insights_core_tmp_t,s0)
6+
/var/tmp/insights-client(/.*)? gen_context(system_u:object_r:insights_core_tmp_t,s0)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## <summary>policy for insights_core</summary>
2+
3+
########################################
4+
## <summary>
5+
## Allow explicit transition to insights_core_t domain.
6+
## </summary>
7+
## <param name="domain">
8+
## <summary>
9+
## Domain allowed to transition.
10+
## </summary>
11+
## </param>
12+
#
13+
interface(`insights_core_domtrans',`
14+
gen_require(`
15+
type insights_core_t;
16+
')
17+
18+
allow $1 insights_core_t: process transition;
19+
allow insights_core_t $1:fd use;
20+
allow insights_core_t $1:fifo_file rw_file_perms;
21+
allow insights_core_t $1:process sigchld;
22+
allow insights_core_t $1:dir search_dir_perms;
23+
')
24+
25+
########################################
26+
## <summary>
27+
## Write to an insights_core unnamed pipe.
28+
## </summary>
29+
## <param name="domain">
30+
## <summary>
31+
## Domain allowed access.
32+
## </summary>
33+
## </param>
34+
#
35+
interface(`insights_core_write_pipes',`
36+
gen_require(`
37+
type insights_core_t;
38+
')
39+
40+
allow $1 insights_core_t:fifo_file write_fifo_file_perms;
41+
')
42+
43+
########################################
44+
## <summary>
45+
## Read insights_client lib files.
46+
## </summary>
47+
## <param name="domain">
48+
## <summary>
49+
## Domain allowed access.
50+
## </summary>
51+
## </param>
52+
#
53+
interface(`insights_core_read_lib_files',`
54+
gen_require(`
55+
type insights_core_var_lib_t;
56+
')
57+
58+
files_search_var_lib($1)
59+
read_files_pattern($1, insights_core_var_lib_t, insights_core_var_lib_t)
60+
allow $1 insights_core_var_lib_t:file map;
61+
')

0 commit comments

Comments
 (0)