---
name: "selinux_restorecon_set_exclude_list"
section: "3"
platform: "linux"
package: "libselinux1-dev"
version: "3.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/selinux_restorecon_set_exclude_list"
---

# selinux\_restorecon\_set\_exclude\_list(3)

set list of directories to be excluded from relabeling.

## NAME

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

## SYNOPSIS

**#include \<selinux/restorecon.h\>**

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

## DESCRIPTION

**selinux\_restorecon\_set\_exclude\_list**() passes to [**selinux\_restorecon**(3)](/selinux_restorecon/3.md) 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)](/selinux_restorecon/3.md).

## SEE ALSO

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