sepol_genbools man page on CentOS

Man page or keyword search:  
man Server   8420 pages
apropos Keyword Search (all sections)
Output format
CentOS logo
[printable version]

sepol_genbools(3)  SE Linux binary policy API documentation  sepol_genbools(3)

NAME
       sepol_genbools  -  Rewrite  a binary policy with different boolean set‐
       tings

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_genbools  rewrites	 a  binary  policy stored in the memory region
       described by (data, len) to use the boolean settings specified  in  the
       file  named  by	boolpath.   The	 boolean  settings  are	 specified  by
       name=value lines where value may be 0 or false to disable or 1 or  true
       to enable.  The binary policy is rewritten in place in memory.

       sepol_genbools_array  does  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 the bool‐
       ean file was undefined in the policy or had an invalid value specified;
       in this case, the binary policy is  still  rewritten  but  any  invalid
       boolean settings are ignored.

sds@epoch.ncsc.mil		11 August 2004		     sepol_genbools(3)
[top]

List of man pages available for CentOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net