-
Notifications
You must be signed in to change notification settings - Fork 137
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(/.*)?"
$ semanage port -a -t http_port_t -p tcp 8080 $ semanage port -a -t http_port_t -p tcp 8443 $ semanage port -a -t http_port_t -p tcp 8009 $ semanage port -a -t http_port_t -p tcp 8005
$ semanage port -a -t ldap_port_t -p tcp 389 $ semanage port -a -t ldap_port_t -p tcp 636
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |