selinux_colors_path(3)
π selinux_colors_path(3) π
okay bestie, welcome to the Library Functions Manual β yes this is selinux_colors_path(3), and no it is not as boring as it sounds, I promise π«Ά
β¨ NAME β¨
selinux_colors_path β the girl who tells you where the active SELinux policy color config file is living π
πΈ SYNOPSIS πΈ
#include <selinux/selinux.h>
const char *selinux_colors_path(void);
no arguments, no drama, just vibes π
π¦ DESCRIPTION π¦
so selinux_colors_path() returns the path to the active policy color configuration file. that's it. that's the whole job. iconic honestly β¨
the way it builds that path? it takes whatever selinux_policy_root(3) hands back and just⦠appends /secolor.conf to it. slay, no cap.
and like, what even is that file? it's an optional configuration file β key word optional, bestie, it does not have to exist β and its format is shown over in secolor.conf(5). it controls the colors that get associated with the raw context components of the selinux_raw_context_to_color(3) function whenever some SELinux color-aware application wants to display that info π
so basically: no color file, no cute colors. the application just sits there looking monochrome π
π RETURN VALUE π
- success β you get the path to the active policy color configuration file, yay π
- path not available β you get
NULL. not a vibe, but it's honest π
π ERRORS π
None.
literally none. she does not do errors. she does not do problems. she simply returns NULL and moves on π
β¨
π SEE ALSO π
go read those too, bestie, they're all part of the same little friend group π«Ά
SELinux API documentation Β· 08 April 2011 β and that's the whole page, mwah π go forth and color your contexts responsibly, iykyk πβ¨π
π¦ where this page comes from
- alpine 3.24: libselinux-doc 3.10-r1 Β· Public-Domain
- centos-stream 10: libselinux-devel 3.11-3.el10 Β· LicenseRef-Fedora-Public-Domain
- centos-stream 9: libselinux-devel 3.6-5.el9 Β· Public Domain
- centos-stream 9: libselinux-devel 3.6-5.el9 Β· Public Domain
- debian bookworm: libselinux1-dev 3.4-1+b6
- debian trixie: libselinux1-dev 3.8.1-1 Β· LicenseRef-public-domain
- fedora 43: libselinux-devel 3.9-5.fc43 Β· LicenseRef-Fedora-Public-Domain
- fedora 43: libselinux-devel 3.9-5.fc43 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.10-1.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.10-1.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.11-2.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.11-2.fc44 Β· LicenseRef-Fedora-Public-Domain
- nixos 26.05: libselinux 3.10
- nixpkgs unstable: libselinux 3.11
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- ubuntu jammy: libselinux1-dev 3.3-1build2
- ubuntu noble: libselinux1-dev 3.5-2ubuntu2 Β· LicenseRef-public-domain
- ubuntu noble: libselinux1-dev 3.5-2ubuntu2.1 Β· LicenseRef-public-domain
- ubuntu questing: libselinux1-dev 3.8.1-1build1
- ubuntu resolute: libselinux-dev 3.9-4build1 Β· LicenseRef-public-domain
- ubuntu stonking: libselinux-dev 3.11-2.1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms