SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from OpenSuSE libsepol-devel-2.1.9-51.40.x86_64.rpm

sepol_genbools

Section: SE Linux binary policy API documentation (3)
Updated: 11 August 2004
Index 

NAME

sepol_genbools - Rewrite a binary policy with different boolean settings 

SYNOPSIS

#include <sepol/sepol.h>

int sepol_genbools(void *data, size_t len, char *boolpath);
int sepol_genbools_array(void *data, size_t len, char **names, int *values, int nel);

 

DESCRIPTION

sepol_genboolsrewrites a binary policy stored in the memory region described by(data, len) to use the boolean settings specified in the file named byboolpath. The boolean settings are specified by name=value lineswhere value may be 0 or false to disable or 1 or true to enable. Thebinary policy is rewritten in place in memory.

sepol_genbools_arraydoes likewise, but obtains the boolean settings from the parallel arrays(names, values) with nel elements each.

 

RETURN VALUE

Returns 0 on success or -1 otherwise, with errno set appropriately.An errno of ENOENT indicates that the boolean file did not exist.An errno of EINVAL indicates that one or more booleans listed in theboolean file was undefined in the policy or had an invalid value specified;in this case, the binary policy is still rewritten but any invalidboolean settings are ignored.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE

This document was created byman2html,using the manual pages.