Make 38 MCQs about the most difficult and important topics about SELinux (on Debian and…
- User
Make 38 MCQs about the most difficult and important topics about SELinux (on Debian and Red Hat-related GNU+Linux distributions).
- Assistant
-
Which of the following best describes SELinux? a) A kernel-based security module b) An application-level firewall c) A network intrusion detection system d) A user authentication system
-
True or False: SELinux is enabled by default on most Red Hat-related GNU+Linux distributions.
-
What is the primary purpose of SELinux? a) To enhance system performance b) To enforce access control policies c) To provide remote administration capabilities d) To prioritize network traffic
-
Which command can be used to check if SELinux is currently enabled? a) selinux_status b) getenforce c) sysctl selinux.enable d) cat /etc/selinux/config
-
Which file contains the SELinux configuration settings on Red Hat-related GNU+Linux distributions? a) /etc/selinux/enforce b) /etc/rc.d/rc.local c) /etc/selinux/config d) /etc/sysctl.conf
-
Which of the following labels represents an SELinux user? a) user_t b) staff_u c) system_r d) object_r
-
What is the purpose of the semanage command? a) To manage SELinux policy modules b) To audit SELinux events c) To enable/disable SELinux d) To view SELinux log files
-
Which of the following is not a valid SELinux policy mode? a) Enforcing b) Permissive c) Disabled d) Relaxed
-
True or False: SELinux allows for fine-grained access control based on file types and network ports.
-
Which of the following commands can be used to change the SELinux context of a file or directory? a) restorecon b) secontext c) setsebool d) sesearch
-
What is the purpose of the chcon command in SELinux? a) To change the user identity of a process b) To change the SELinux context of a file or directory c) To change the SELinux policy module d) To change the SELinux access control rules
-
Which file is used to define an SELinux policy module? a) /etc/selinux/policy.conf b) /etc/selinux/semanage.conf c) /etc/selinux/targeted/contexts/files/file_contexts d) /etc/selinux/modules/module.conf
-
True or False: SELinux runs its own independent reference monitor to enforce access controls.
-
Which of the following modes in SELinux allows for logging of policy violations without enforcing access control? a) Enforcing mode b) Permissive mode c) Relaxed mode d) Disabled mode
-
What is the purpose of the restorecon command in SELinux? a) To restore system configurations to default values b) To restore the SELinux context of files and directories to their default values c) To restore SELinux logs from a backup d) To restore SELinux user identities
-
What is the purpose of the seinfo command in SELinux? a) To display SELinux booleans b) To provide information on SELinux users and roles c) To list SELinux file contexts d) To manage SELinux policy types
-