We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa1bfe commit cc0c7b0Copy full SHA for cc0c7b0
tasks/prerequisites/setup-selinux.yml
@@ -82,6 +82,16 @@
82
- name: "(Install: SELinux: Contexts) Apply contexts to log"
83
command: restorecon -iRv /var/log/app_protect
84
85
+- name: "(Install: SELinux: Custom) Generate policy"
86
+ shell:
87
+ args:
88
+ chdir: /tmp/
89
+ executable: bash
90
+ cmd: cat /var/log/audit/audit.log | audit2allow -M local
91
+
92
+- name: "(Install: SELinux: Custom) Apply local policy"
93
+ command: semodule -i /tmp/local.pp
94
95
- name: "(Install: SELinux: Custom) Copy custom policy"
96
copy:
97
src: "{{ role_path }}/files/my-appprotect.te"
0 commit comments