How do I change the state of a boolean in a SELinux environment?



  • Display the current status of the tcpd_disable_trans boolean:

    # /usr/sbin/getsebool tcpd_disable_trans
    tcpd_disable_trans --> off
    

    Change the state of the tcpd_disable_trans boolean:

    # /usr/sbin/togglesebool tcpd_disable_trans
    tcpd_disable_trans: active
    

    Verify:

    # /usr/sbin/getsebool tcpd_disable_trans
    tcpd_disable_trans --> on
    

    Change the value back and verify:

    # /usr/sbin/togglesebool tcpd_disable_trans
    tcpd_disable_trans: inactive
    
    # /usr/sbin/getsebool tcpd_disable_trans
    tcpd_disable_trans --> off
    

Log in to reply
 

© Lightnetics 2024