selabel\_partial\_match(3) SELinux API documentation selabel\_partial\_match(3)

# [NAME](#NAME)

selabel\_partial\_match - determine whether a direct or partial match is possible on a file path - Only supported on file backend.

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;stdbool.h&gt;**  
**#include &lt;selinux/selinux.h&gt;**  
**#include &lt;selinux/label.h&gt;**

**bool selabel\_partial\_match(struct selabel\_handle \*hnd,**  
**const char \*key);**

# [DESCRIPTION](#DESCRIPTION)

**selabel\_partial\_match**() performs a partial match operation on the handle *hnd*, returning TRUE or FALSE. The *key* parameter is a file path to check for a direct or partial match.

# [RETURN VALUE](#RETURN_VALUE)

TRUE is returned if a direct or partial match is found, FALSE if not.

# [SEE ALSO](#SEE_ALSO)

[**selabel\_open**(3)](/man/os/libselinux/selabel_open.3), [**selabel\_stats**(3)](/man/os/libselinux/selabel_stats.3), [**selinux\_set\_callback**(3)](/man/os/libselinux/selinux_set_callback.3), [**selinux**(8)](/man/os/libselinux/selinux.8), [**selabel\_file**(5)](/man/os/libselinux/selabel_file.5)

05 May 2015 Security Enhanced Linux

---

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