nerdexam
CompTIA

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.

Security

Question

Under which path is the selinux pseudofilesystem found?

Options

  • A/dev/selinux
  • B/sys/selinux
  • C/selinux
  • D/var/selinux
  • E/proc/selinux

How the community answered

(23 responses)
  • A
    4% (1)
  • C
    91% (21)
  • D
    4% (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.

A/dev/selinux

/dev typically contains device files, not pseudo-filesystems for kernel security modules.

B/sys/selinux

/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.

C/selinuxCorrect

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.

D/var/selinux

/var contains variable data, such as logs and spool files, not kernel pseudo-filesystems.

E/proc/selinux

/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

#SELinux#filesystem paths

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice