●SSH processes labeled in memory by SELinux
Command : ps axZ | grep sshd
● To change a type of a file or directory in label
Command: chcon -t httpd_sys_content_t /etc/ssh
●To restore it back to its original type
Command : restorecon -v /etc/ssh && ls -dZ /etc/ssh
SELinux Booleans
SELinux booleans are binary values that toggle specific system
behaviors and permissions
●Get list of all booleans
Command: getsebool -a
●Semanage with boolean -l is also use to list all booleans
Command : semanage boolean -l
●To set boolean to yes
Command : setsebool -P ssh_use_tcpd 1
●To set boolean to yes
Command : setsebool -P ssh_use_tcpd 0