LX0-104 · Question #386
Under which path is the selinux pseudofilesystem found?
The correct answer is C. /selinux. The SELinux pseudo-filesystem, which provides a kernel interface for SELinux operations, is typically mounted at the /selinux path on most Linux distributions.
Question
Options
- A/dev/selinux
- B/sys/selinux
- C/selinux
- D/var/selinux
- E/proc/selinux
How the community answered
(23 responses)- A4% (1)
- C91% (21)
- D4% (1)
Why each option
The SELinux pseudo-filesystem, which provides a kernel interface for SELinux operations, is typically mounted at the /selinux path on most Linux distributions.
/dev typically contains device files, not pseudo-filesystems for kernel security modules.
/sys contains information about hardware and kernel modules, but the primary SELinux pseudo-filesystem is traditionally at /selinux or /sys/fs/selinux, not just /sys/selinux.
The `/selinux` directory is the traditional and common mount point for the SELinux pseudo-filesystem, exposing kernel-level SELinux information and control interfaces to user-space tools. While some distributions or newer kernels might integrate some SELinux information into `/sys/fs/selinux`, the `/selinux` mount point is historically and commonly used for the primary pseudo-filesystem.
/var contains variable data, such as logs and spool files, not kernel pseudo-filesystems.
/proc contains process-related information and other kernel data, but SELinux has its own dedicated pseudo-filesystem mount point.
Concept tested: SELinux pseudo-filesystem location
Source: https://man7.org/linux/man-pages/man8/selinux.8.html
Topics
Community Discussion
No community discussion yet for this question.