Skip to content

Creating SELinux Contexts with CLI

Endi S. Dewata edited this page Jul 17, 2023 · 2 revisions
$ semanage fcontext -a -t pki_tomcat_etc_rw_t -r s0 "/etc/pki/pki-tomcat(/.*)?"
$ semanage fcontext -a -t pki_tomcat_cert_t -r s0 "/etc/pki/pki-tomcat/alias(/.*)?"
$ semanage fcontext -a -t pki_tomcat_var_lib_t -r s0 "/var/lib/pki/pki-tomcat(/.*)?"
$ semanage fcontext -a -t pki_tomcat_log_t -r s0 "/var/log/pki/pki-tomcat(/.*)?"
Clone this wiki locally