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 to selinux_restorecon(3). order matters, queen πŸ‘‘ don't call it after, that's not the vibe.

🌈 SEE ALSO 🌈


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