selabel_partial_match(3)

selabel_partial_match3

Determine whether a direct or partial match is possible on a file path - only supported on file backend.

Usage

#include <stdbool.h>
#include <selinux/selinux.h>
#include <selinux/label.h>

bool selabel_partial_match(struct selabel_handle *hnd, const char *key);

Overview

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

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

Releases

Unchanged in 5 releases since Debian 9 (Stretch).

  1. 9–13

From libselinux1-dev 3.8.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.