selinux_restorecon_set_alt_rootpath(3)

selinux_restorecon_set_alt_rootpath3

Set an alternate rootpath.

Usage

#include <selinux/restorecon.h>

int selinux_restorecon_set_alt_rootpath(const char *alt_rootpath);

Overview

selinux_restorecon_set_alt_rootpath() passes to selinux_restorecon(3) a pointer containing an alternate rootpath alt_rootpath.

selinux_restorecon_set_alt_rootpath() must be called prior to selinux_restorecon(3).

Return value

On success, zero is returned. On error, -1 is returned and errno is set appropriately.

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.