Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

CentOS 5.1

is_context_customizable(3)


is_context_customizable

is_context_customizable

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
FILE

NAME

is_context_customizable − check whether context type is customizable by the administrator.

SYNOPSIS

#include <selinux/selinux.h>

int is_context_customizable(security_context_t scon);

DESCRIPTION

is_context_customizable
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



is_context_customizable(3)