selinux_r...clude_list(3)
β¨ selinux_r...clude_list(3) β¨
okay bestie, welcome to the selinux_restorecon_set_exclude_list page π this one lives in the SELinux API documentation and honestly? it's a short one. a lil snack. but it's important, so lock in π«Ά
πΈ NAME πΈ
selinux_restorecon_set_exclude_list β set list of directories to be excluded from relabeling.
like... it tells the relabeler which folders to not touch. hands off. no cap π
π SYNOPSIS π
#include <selinux/restorecon.h>
void selinux_restorecon_set_exclude_list(const char **exclude_list);
π¦ DESCRIPTION π¦
so here's the tea, bestie π
selinux_restorecon_set_exclude_list() passes to selinux_restorecon(3) a pointer containing a NULL terminated list of one or more directories that are not to be relabeled, and it hands that list over in exclude_list.
that's it. that's the whole function. it's giving "make a list, check it twice, but the list is directories you're NOT relabeling" π
β οΈ IMPORTANT:selinux_restorecon_set_exclude_list()must be called prior toselinux_restorecon(3). order matters, queen π don't call it after, that's not the vibe.
π SEE ALSO π
selinux_restorecon(3)selinux_restorecon_set_sehandle(3)selinux_restorecon_default_handle(3)selinux_restorecon_set_alt_rootpath(3)selinux_restorecon_xattr(3)
and that's the whole page, periodt π this lil icon dropped as part of Security Enhanced Linux, dated 20 Oct 2015 π go forth and exclude responsibly, bestie πβ¨
π¦ 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