|
| 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