Loading topic
sudo, edit files under /etc, and reboot a RHEL-family system (RHEL, Rocky, AlmaLinux or Fedora). It also assumes you know what DAC and MAC mean from the previous chapter. By the end you will be able to read the current mode, switch it for a test, m6 min readsudo, and that you understand file ownership and permission bits. It also assumes you have a RHEL-family system (RHEL, Rocky, AlmaLinux or Fedora) with SELinux in enforcing or permissive mode. You should know what a process a6 min readuser:role:type:level) and that you know the difference between discretionary and mandatory access control from earlier chapters. You should also be comfortable runn6 min readuser:role:type:level), know that a confined service such as httpd runs in a domain like httpd_t, and are comfortable with sudo, ls, and systemctl on a RHEL-family system with SELinux in enforcing mode.6 min readhttpd_t and httpd_sys_content_t. You should know that SELinux denies anything its policy does not allow. It also helps to have run Apache httpd or nginx on a RHEL-family6 min readhttpd_t. It also assumes you can read an AVC denial in the audit log. You need a RHEL-family system with SELinux enforcing and root access through sudo.6 min readsudo, read journalctl output, and know the security context format (user:role:type:level) and 5 min readhttpd_t is. It also assumes you are comfortable with sudo, systemctl and journalctl. The examples use Apache httpd on a RHEL-family system.6 min readsystem_u:system_r:httpd_t:s0. It also assumes you know that type enforcement decides access between a process domain and an object type. You should have used getsebool, semanage fcontext and ausearch on a RHEL-family system. Earlie7 min readsemanage fcontext and restorecon, set booleans, label ports, and find AVC denials with ausearch and audit2why. You should also know how to put one domain into permissive mode. If you can't yet, review those chapters fir5 min readsystem_u:system_r:container_t:s0:c12,c845 and pick out the type field, as covered in the chapters on security contexts and type enforcement. It also assumes you have Podman on a RHEL-family system with SELinux in enforcing mode. The examples use 6 min read