semanage
Verified for current stable LTS
Semanage Commands
Semanage command syntax with verified terminal examples.
Commands
6 commands for Semanage
semanage Search
Semanage Command: Add User Defined File Context Labeling Rule
sudo semanage fcontext -a -t <samba_share_t> '/mnt/share(/.*)?' semanage Operations
Semanage Command: Add User Defined Port Labeling Rule
sudo semanage port -a -t <ssh_port_t> -p <tcp> <22000> semanage Operations
Semanage Command: Import Customizations From File
sudo semanage import -f <path/to/file> semanage Operations
Semanage Command: Output Local Customizations To File
sudo semanage export -f <path/to/file> semanage HTTP
Semanage Command: Set Or Unset Permissive Mode For Confined Domain
sudo semanage permissive --add <httpd_t> semanage HTTP
Semanage Command: Set Or Unset Selinux Boolean
sudo semanage boolean -m --on <haproxy_connect_any> Suggest a Semanage Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Semanage workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.