selinux\_restorecon\_set\_exclude\_list(3) SELinux API documentation selinux\_restorecon\_set\_exclude\_list(3)

# [NAME](#NAME)

selinux\_restorecon\_set\_exclude\_list - set list of directories to be excluded from relabeling.

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;selinux/restorecon.h&gt;**

**void selinux\_restorecon\_set\_exclude\_list(const char \*\*exclude\_list);**

# [DESCRIPTION](#DESCRIPTION)

**selinux\_restorecon\_set\_exclude\_list**() passes to [**selinux\_restorecon**(3)](/man/os/libselinux/selinux_restorecon.3) a pointer containing a **NULL** terminated list of one or more directories that are not to be relabeled in *exclude\_list*.

**selinux\_restorecon\_set\_exclude\_list**() must be called prior to [**selinux\_restorecon**(3)](/man/os/libselinux/selinux_restorecon.3).

# [SEE ALSO](#SEE_ALSO)

[**selinux\_restorecon**(3)](/man/os/libselinux/selinux_restorecon.3),  
[**selinux\_restorecon\_set\_sehandle**(3)](/man/os/libselinux/selinux_restorecon_set_sehandle.3),  
[**selinux\_restorecon\_default\_handle**(3)](/man/os/libselinux/selinux_restorecon_default_handle.3),  
[**selinux\_restorecon\_set\_alt\_rootpath**(3)](/man/os/libselinux/selinux_restorecon_set_alt_rootpath.3),  
[**selinux\_restorecon\_xattr**(3)](/man/os/libselinux/selinux_restorecon_xattr.3)

20 Oct 2015 Security Enhanced Linux

---

Document: selinux_restorecon_set_exclude_list(3) from libselinux 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
