selinux_lsetfilecon_default(3)

selinux_lsetfilecon_default3

Set the file context to the system defaults

Usage

#include <selinux/selinux.h>

int selinux_lsetfilecon_default(const char *path);

Overview

selinux_lsetfilecon_default() sets the file context to the system defaults.

Return value

Returns zero on success or -1 otherwise.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–7
  2. 8–12
  3. 13

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