Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sepol
File: booleans.h
#ifndef _SEPOL_BOOLEANS_H_
[0] Fix | Delete
#define _SEPOL_BOOLEANS_H_
[1] Fix | Delete
[2] Fix | Delete
#include <stddef.h>
[3] Fix | Delete
#include <sepol/policydb.h>
[4] Fix | Delete
#include <sepol/boolean_record.h>
[5] Fix | Delete
#include <sepol/handle.h>
[6] Fix | Delete
[7] Fix | Delete
#ifdef __cplusplus
[8] Fix | Delete
extern "C" {
[9] Fix | Delete
#endif
[10] Fix | Delete
[11] Fix | Delete
/*--------------compatibility--------------*/
[12] Fix | Delete
[13] Fix | Delete
/* Given an existing binary policy (starting at 'data', with length 'len')
[14] Fix | Delete
and a boolean configuration file named by 'boolpath', rewrite the binary
[15] Fix | Delete
policy for the boolean settings in the boolean configuration file.
[16] Fix | Delete
The binary policy is rewritten in place in memory.
[17] Fix | Delete
Returns 0 upon success, or -1 otherwise. */
[18] Fix | Delete
extern int sepol_genbools(void *data, size_t len, const char *boolpath);
[19] Fix | Delete
[20] Fix | Delete
/* Given an existing binary policy (starting at 'data', with length 'len')
[21] Fix | Delete
and boolean settings specified by the parallel arrays ('names', 'values')
[22] Fix | Delete
with 'nel' elements, rewrite the binary policy for the boolean settings.
[23] Fix | Delete
The binary policy is rewritten in place in memory.
[24] Fix | Delete
Returns 0 upon success or -1 otherwise. */
[25] Fix | Delete
extern int sepol_genbools_array(void *data, size_t len,
[26] Fix | Delete
char **names, int *values, int nel);
[27] Fix | Delete
/*---------------end compatbility------------*/
[28] Fix | Delete
[29] Fix | Delete
/* Set the specified boolean */
[30] Fix | Delete
extern int sepol_bool_set(sepol_handle_t * handle,
[31] Fix | Delete
sepol_policydb_t * policydb,
[32] Fix | Delete
const sepol_bool_key_t * key,
[33] Fix | Delete
const sepol_bool_t * data);
[34] Fix | Delete
[35] Fix | Delete
/* Return the number of booleans */
[36] Fix | Delete
extern int sepol_bool_count(sepol_handle_t * handle,
[37] Fix | Delete
const sepol_policydb_t * p, unsigned int *response);
[38] Fix | Delete
[39] Fix | Delete
/* Check if the specified boolean exists */
[40] Fix | Delete
extern int sepol_bool_exists(sepol_handle_t * handle,
[41] Fix | Delete
const sepol_policydb_t * policydb,
[42] Fix | Delete
const sepol_bool_key_t * key, int *response);
[43] Fix | Delete
[44] Fix | Delete
/* Query a boolean - returns the boolean, or NULL if not found */
[45] Fix | Delete
extern int sepol_bool_query(sepol_handle_t * handle,
[46] Fix | Delete
const sepol_policydb_t * p,
[47] Fix | Delete
const sepol_bool_key_t * key,
[48] Fix | Delete
sepol_bool_t ** response);
[49] Fix | Delete
[50] Fix | Delete
/* Iterate the booleans
[51] Fix | Delete
* The handler may return:
[52] Fix | Delete
* -1 to signal an error condition,
[53] Fix | Delete
* 1 to signal successful exit
[54] Fix | Delete
* 0 to signal continue */
[55] Fix | Delete
[56] Fix | Delete
extern int sepol_bool_iterate(sepol_handle_t * handle,
[57] Fix | Delete
const sepol_policydb_t * policydb,
[58] Fix | Delete
int (*fn) (const sepol_bool_t * boolean,
[59] Fix | Delete
void *fn_arg), void *arg);
[60] Fix | Delete
[61] Fix | Delete
#ifdef __cplusplus
[62] Fix | Delete
}
[63] Fix | Delete
#endif
[64] Fix | Delete
[65] Fix | Delete
#endif
[66] Fix | Delete
[67] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function