sestatus.conf(5)
π sestatus.conf β the sestatus configuration file, bestie
okay so real talk, this is sestatus.conf(5), which is the config file for sestatus(8). It's the little vibe-check list that tells sestatus whose security context you're nosy about. She's small, she's optional, she's iconic. π
β¨ NAME β¨
sestatus.conf β the sestatus(8) configuration file, periodt. π
πΈ DESCRIPTION πΈ
So the sestatus.conf file is what the sestatus(8) command reads when you hit it with the -v option β and it's literally the thing that decides what file and process security contexts should be displayed. That's it. That's the whole job. π
The fully qualified path name of the configuration file is:
Now listen, the file is made of two optional sections (the deets are down in **FILE FORMAT**, keep scrolling bestie). But here's the tea: whether those sections exist or not, these three things are **always** going to show up, no cap:
- The current process context
- The init process context
- The controlling terminal file context
So even if you write an empty file, she still serves. β¨
---
# π¦ FILE FORMAT π¦
The format consists of two optional sections, and it goes a little something like this:
[files] file_name [file_name] ...
[process] executable_file_name [executable_file_name] ...
Where, and I'm gonna break it all the way down:
- **`[files]`** β the start of the file list block. This is the opening curtain. π¬
- *`file_name`* β one or more fully qualified file names, each on a new line, and each one will have its context displayed. If the file does not exist, then it is ignored (she's unbothered, she's at peace π). If the file is a symbolic link, then `sestatus -v` will **also** display the target file context. Symlinks getting a whole extra moment, as they deserve. π
- **`[process]`** β the start of the process list block.
- *`executable_file_name`* β one or more fully qualified executable file names that, should it be an active process, have its context displayed. Each entry is on a new line. So like, if it's running, you'll see it. If it's not, well. π
> heads up: it's *fully qualified* file names both times β no shortcuts, no relative paths, no "it's somewhere in my home directory trust me". full path or nothing bestie π«Ά
---
# π EXAMPLE π
Here's what she looks like in the wild, copy-paste energy, no edits:
/etc/sestatus.conf
[files] /etc/passwd /etc/shadow /bin/bash /bin/login /lib/libc.so.6 /lib/ld-linux.so.2 /lib/ld.so.1
[process] /sbin/mingetty /sbin/agetty /usr/sbin/sshd
Look at those absolute paths. Every single one. Chef's kiss. π¨βπ³π
---
# π SEE ALSO π
- `selinux(8)`
- `sestatus(8)`
go read `sestatus(8)` for real, that's where the `-v` magic actually lives. iykyk. π₯
---
okay that's the whole page, bestie, you ate that π
this one came from **Security Enhanced Linux**, dated **26-Nov-2011** β yeah she's an elder but she's still slaying, and honestly? respect the longevity. ππ
π¦ where this page comes from
- centos-stream 10: policycoreutils 3.11-1.el10 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils 3.6-9.el9 Β· GPL-2.0-or-later
- debian bookworm: policycoreutils 3.4-1
- debian trixie: policycoreutils 3.8.1-2
- fedora 43: policycoreutils 3.9-5.fc43 Β· GPL-2.0-or-later
- fedora 43: policycoreutils 3.9-7.fc43 Β· GPL-2.0-or-later
- fedora 44: policycoreutils 3.10-1.fc44 Β· GPL-2.0-or-later
- fedora 44: policycoreutils 3.11-2.fc44 Β· GPL-2.0-or-later
- nixos 26.05: policycoreutils 3.11
- nixpkgs unstable: policycoreutils 3.11
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- ubuntu jammy: policycoreutils 3.3-1build1
- ubuntu noble: policycoreutils 3.5-2
- ubuntu questing: policycoreutils 3.8.1-1
- ubuntu resolute: policycoreutils 3.9-2
- ubuntu stonking: policycoreutils 3.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms