security_check_context_raw(3)

security_check_context_raw3

Check the validity of a selinux context

Part of security_check_context(3).

Usage

#include <selinux/selinux.h>

int security_check_context(const char *con);

int security_check_context_raw(const char *con);

Overview

security_check_context() returns 0 if SELinux is running and the context is valid, otherwise it returns -1.

security_check_context_raw() behaves identically to security_check_context() but does not perform context translation.

Releases

6 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8–9
  2. 10–11
  3. 12–13

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