is_context_customizable(3)

is_context_customizable3

Check whether selinux context type is customizable by the administrator

Usage

#include <selinux/selinux.h>

int is_context_customizable(const char *scon);

Overview

This function checks whether the type of scon is in the /etc/selinux/{SELINUXTYPE}/context/customizable_types file. A customizable type is a file context type that administrators set on files, usually to allow certain domains to share the file content. restorecon and setfiles, by default, leave these context in place.

Return value

Returns 1 if security context is customizable or 0 if it is not. Returns -1 on error.

File

/etc/selinux/{SELINUXTYPE}/context/customizable_types

Releases

11 releases since Debian 3.1 (Sarge); the text changed 4 times.

  1. 3.1–4.0
  2. 5.0–7
  3. 8–9
  4. 10–12
  5. 13

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