logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

security_set_boolean, security_commit_booleans, security_get_boolean_names, security_get_boolean_active,

Author

       This manual page was written by Dan Walsh <dwalsh@redhat.com>.

Description

       The SELinux policy can include conditional rules that are enabled or disabled based on the current values
       of a set of policy booleans.  These policy booleans allow runtime modification  of  the  security  policy
       without having to load a new policy.

       The  SELinux  API  allows  for a transaction based update. So you can set several boolean values and then
       commit them all at once.

       security_get_boolean_names() provides a list of boolean names, currently supported by the loaded policy.

       security_get_boolean_pending() returns the pending value for boolean or -1 on failure.

       security_get_boolean_active() returns the active value for boolean or -1 on failure.

       security_set_boolean() sets the pending value for boolean

       security_set_boolean_list() saves a list of booleans in a single transaction. Note that the intpermanent
       flag is deprecated and should be set to zero.

       security_commit_booleans() commits all pending values for the booleans.

Name

       security_set_boolean,  security_commit_booleans, security_get_boolean_names, security_get_boolean_active,
       security_get_boolean_pending - routines for manipulating SELinux boolean values

Return Value

       Where not otherwise stated, functions described in this manual page return  zero  on  success  or  -1  on
       error.

See Also

selinux(8), getsebool(8), booleans(8), togglesebool(8)

dwalsh@redhat.com                               15 November 2004                   security_get_boolean_names(3)

Synopsis

#include<selinux/selinux.h>intsecurity_get_boolean_names(char***names,int*len);intsecurity_get_boolean_pending(constchar*name);intsecurity_get_boolean_active(constchar*name);intsecurity_set_boolean(constchar*name,intvalue);intsecurity_set_boolean_list(size_tboolcnt,SELboolean*boollist,intpermanent);intsecurity_commit_booleans(void);

See Also