Skip to content

Commit

Permalink
Add test module for SELinux interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Hubert Quarantel-Colombani <[email protected]>
  • Loading branch information
hubertqc committed Sep 14, 2023
1 parent a51aa30 commit 1a46b38
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion se_module/springboot.if
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ interface(`springboot_systemd_deployer',`
allow $1_t springboot_unit_file_t:lnk_file manage_lnk_file_perms

filetrans_add_pattern($1_t, systemd_unit_file_t, springboot_unit_file_t, { file lnk_file }, "springboot.service" )
filetrans_add_pattern($1_t, systemd_unit_file_t, springboot_unit_file_t, { file lnk_file}, "springboot.target" )
filetrans_add_pattern($1_t, systemd_unit_file_t, springboot_unit_file_t, { file lnk_file }, "springboot.target" )
filetrans_add_pattern($1_t, systemd_unit_file_t, springboot_unit_file_t, dir, "springboot.service.d" )
filetrans_add_pattern($1_t, systemd_unit_file_t, springboot_unit_file_t, dir, "springboot.target.d" )
filetrans_add_pattern($1_t, systemd_unit_file_t, springboot_unit_file_t, dir, "springboot.target.wants" )
Expand Down
16 changes: 16 additions & 0 deletions se_module/test.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
policy_module(test, 0.0.1)

type springboot_test1_t;
type springboot_test2_t;
type springboot_test3_t;
type springboot_test4_t;
type springboot_test5_t;

springboot_monitor(springboot_test1)
springboot_deployer(springboot_test2)
springboot_systemd_deployer(springboot_test3)
springboot_systemd_unit_instance_deployer(springboot_test4)
springboot_auth_deployer(springboot_test5)

springboot_allow_connectto(http)
springboot_allow_consumed_service(ldap)

0 comments on commit 1a46b38

Please sign in to comment.