-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests covering confined user policy generation
Signed-off-by: Vit Mojzis <[email protected]>
- Loading branch information
Showing
5 changed files
with
98 additions
and
5 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,24 @@ | ||
(boolean my_container_exec_content true) | ||
(role my_container_r) | ||
(type my_container_dbus_t) | ||
(type my_container_gkeyringd_t) | ||
(type my_container_ssh_agent_t) | ||
(type my_container_sudo_t) | ||
(type my_container_sudo_tmp_t) | ||
(type my_container_t) | ||
(type my_container_userhelper_t) | ||
(user my_container_u) | ||
(userrole my_container_u my_container_r) | ||
(userlevel my_container_u (s0)) | ||
(userrange my_container_u ((s0 ) (s0 (c0)))) | ||
|
||
(call confinedom_admin_commands_macro (my_container_t my_container_r my_container_sudo_t)) | ||
(call confinedom_graphical_login_macro (my_container_t my_container_r my_container_dbus_t)) | ||
(call confinedom_mozilla_usage_macro (my_container_t my_container_r)) | ||
(call confinedom_networking_macro (my_container_t my_container_r)) | ||
(call confinedom_security_advanced_macro (my_container_t my_container_r my_container_sudo_t my_container_userhelper_t)) | ||
(call confinedom_security_basic_macro (my_container_t my_container_r)) | ||
(call confinedom_sudo_macro (my_container_t my_container_r my_container_sudo_t my_container_sudo_tmp_t)) | ||
(call confinedom_user_login_macro (my_container_t my_container_r my_container_gkeyringd_t my_container_dbus_t my_container_exec_content)) | ||
(call confined_ssh_connect_macro (my_container_t my_container_r my_container_ssh_agent_t)) | ||
(call confined_use_basic_commands_macro (my_container_t my_container_r)) |
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,15 @@ | ||
(boolean my_container_exec_content true) | ||
(role my_container_r) | ||
(type my_container_dbus_t) | ||
(type my_container_gkeyringd_t) | ||
(type my_container_ssh_agent_t) | ||
(type my_container_sudo_t) | ||
(type my_container_t) | ||
(user my_container_u) | ||
(userrole my_container_u my_container_r) | ||
(userlevel my_container_u (s0)) | ||
(userrange my_container_u ((s0 ) (s0 (c0)))) | ||
|
||
(call confinedom_admin_commands_macro (my_container_t my_container_r my_container_sudo_t)) | ||
(call confinedom_user_login_macro (my_container_t my_container_r my_container_gkeyringd_t my_container_dbus_t my_container_exec_content)) | ||
(call confined_ssh_connect_macro (my_container_t my_container_r my_container_ssh_agent_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(boolean my_container_exec_content true) | ||
(role my_container_r) | ||
(type my_container_dbus_t) | ||
(type my_container_gkeyringd_t) | ||
(type my_container_t) | ||
(user my_container_u) | ||
(userrole my_container_u my_container_r) | ||
(userlevel my_container_u (s0)) | ||
(userrange my_container_u ((s0 ) (s0 (c0)))) | ||
|
||
(call confinedom_user_login_macro (my_container_t my_container_r my_container_gkeyringd_t my_container_dbus_t my_container_exec_content)) | ||
(call confined_use_basic_commands_macro (my_container_t my_container_r)) |
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,17 @@ | ||
(boolean my_container_exec_content true) | ||
(role my_container_r) | ||
(type my_container_dbus_t) | ||
(type my_container_gkeyringd_t) | ||
(type my_container_sudo_t) | ||
(type my_container_sudo_tmp_t) | ||
(type my_container_t) | ||
(type my_container_userhelper_t) | ||
(user my_container_u) | ||
(userrole my_container_u my_container_r) | ||
(userlevel my_container_u (s0)) | ||
(userrange my_container_u ((s0 ) (s0 (c0)))) | ||
|
||
(call confinedom_security_advanced_macro (my_container_t my_container_r my_container_sudo_t my_container_userhelper_t)) | ||
(call confinedom_security_basic_macro (my_container_t my_container_r)) | ||
(call confinedom_sudo_macro (my_container_t my_container_r my_container_sudo_t my_container_sudo_tmp_t)) | ||
(call confinedom_user_login_macro (my_container_t my_container_r my_container_gkeyringd_t my_container_dbus_t my_container_exec_content)) |
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