selinux_restorecon_set_sehandle(3)

selinux_restorecon_set_sehandle3

Set a labeling handle for use by selinux_restorecon(3)

Usage

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

void selinux_restorecon_set_sehandle(struct selabel_handle *handle);

Overview

selinux_restorecon_set_sehandle() sets the handle to be use by selinux_restorecon(3) when relabeling files.

selinux_restorecon_set_sehandle() is generally used when customised selabel_open(3) parameters are required to perform relabeling operations with selinux_restorecon(3).

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.