LFCS · Question #386
Under which path is the selinux pseudofilesystem found?
The correct answer is C. /selinux. The SELinux pseudo-filesystem, which provides an interface for interacting with the SELinux kernel module, is typically mounted at /selinux.
Question
Options
- A/dev/selinux
- B/sys/selinux
- C/selinux
- D/var/selinux
- E/proc/selinux
How the community answered
(46 responses)- B4% (2)
- C93% (43)
- D2% (1)
Why each option
The SELinux pseudo-filesystem, which provides an interface for interacting with the SELinux kernel module, is typically mounted at `/selinux`.
`/dev` is primarily for device files.
`/sys` is for sysfs, which exposes kernel objects and their attributes, but the dedicated SELinux pseudo-filesystem has its own mount point.
In many Linux distributions with SELinux enabled, the SELinux filesystem (of type `selinuxfs`) is mounted at `/selinux`. This directory provides an interface to query and manipulate SELinux policies and status information.
`/var` is for variable data files, not pseudo-filesystems like SELinuxfs.
`/proc` is for the procfs pseudo-filesystem, exposing process and other kernel information, but the dedicated SELinux filesystem is distinct.
Concept tested: SELinux filesystem mount point
Source: https://docs.kernel.org/admin-guide/LSM/SELinux/selinux.html
Topics
Community Discussion
No community discussion yet for this question.