Question 1160
A RHEL 10 web application requires a policy review for boolean httpd_can_network_connect. The operator must persistently enable the same selinux boolean. Which command is correct?
Explanation
Correct Answer
The -P option makes the Boolean setting persistent across reboots This is the requested live or persistent Boolean action.
Incorrect Answers
Without -P, setsebool modifies the runtime Boolean state but not persistent policy. The stated task is to persistently enable the same selinux boolean. Instead, `setsebool -P httpd_can_network_connect on` is the relevant alternative because the -P option makes the Boolean setting persistent across reboots.
getsebool displays the effective value of the named SELinux Boolean. The stated task is to persistently enable the same selinux boolean. Instead, `setsebool -P httpd_can_network_connect on` is the relevant alternative because the -P option makes the Boolean setting persistent across reboots.
semanage boolean -l enumerates Boolean names, states and descriptions. The stated task is to persistently enable the same selinux boolean. Instead, `setsebool -P httpd_can_network_connect on` is the relevant alternative because the -P option makes the Boolean setting persistent across reboots.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests