-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial selinux policy for tendrl server to run in permissive domain This provides selinux permissive policies for tendrl-server, grafana and carbon with the following features: - Allows tendrl processes to run in permissive mode - Perform checks but will not enforce - Users don't have to switch to permissive mode globally - Allows to catch AVC messages Signed-off-by: Lukas Vrabec <[email protected]> Signed-off-by: Timothy Asir J <[email protected]>
- Loading branch information
1 parent
b204cbd
commit 77be921
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
## <summary>policy for carbon</summary> | ||
|
||
######################################## | ||
## <summary> | ||
## http stub interface. No access allowed. | ||
## </summary> | ||
## <param name="domain" unused="true"> | ||
## <summary> | ||
## Domain allowed access | ||
## </summary> | ||
## </param> | ||
# | ||
interface(`carbon_stub_httpd',` | ||
gen_require(` | ||
type httpd_t; | ||
') | ||
') | ||
|
||
######################################## | ||
## <summary> | ||
## Manage carbon lib files. | ||
## </summary> | ||
## <param name="domain"> | ||
## <summary> | ||
## Domain allowed access. | ||
## </summary> | ||
## </param> | ||
# | ||
interface(`carbon_manage_lib_files',` | ||
gen_require(` | ||
type carbon_var_lib_t; | ||
') | ||
|
||
files_search_var_lib($1) | ||
manage_files_pattern($1, carbon_var_lib_t, carbon_var_lib_t) | ||
') | ||
|
||
######################################## | ||
## <summary> | ||
## Manage carbon lib directories. | ||
## </summary> | ||
## <param name="domain"> | ||
## <summary> | ||
## Domain allowed access. | ||
## </summary> | ||
## </param> | ||
# | ||
interface(`carbon_manage_lib_dirs',` | ||
gen_require(` | ||
type carbon_var_lib_t; | ||
') | ||
|
||
files_search_var_lib($1) | ||
manage_dirs_pattern($1, carbon_var_lib_t, carbon_var_lib_t) | ||
') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters