Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sepol
File: ibpkeys.h
#ifndef _SEPOL_IBPKEYS_H_
[0] Fix | Delete
#define _SEPOL_IBPKEYS_H_
[1] Fix | Delete
[2] Fix | Delete
#include <sepol/handle.h>
[3] Fix | Delete
#include <sepol/policydb.h>
[4] Fix | Delete
#include <sepol/ibpkey_record.h>
[5] Fix | Delete
[6] Fix | Delete
[7] Fix | Delete
#ifdef __cplusplus
[8] Fix | Delete
extern "C" {
[9] Fix | Delete
#endif
[10] Fix | Delete
[11] Fix | Delete
/* Return the number of ibpkeys */
[12] Fix | Delete
extern int sepol_ibpkey_count(sepol_handle_t *handle,
[13] Fix | Delete
const sepol_policydb_t *p, unsigned int *response);
[14] Fix | Delete
[15] Fix | Delete
/* Check if a ibpkey exists */
[16] Fix | Delete
extern int sepol_ibpkey_exists(sepol_handle_t *handle,
[17] Fix | Delete
const sepol_policydb_t *policydb,
[18] Fix | Delete
const sepol_ibpkey_key_t *key, int *response);
[19] Fix | Delete
[20] Fix | Delete
/* Query a ibpkey - returns the ibpkey, or NULL if not found */
[21] Fix | Delete
extern int sepol_ibpkey_query(sepol_handle_t *handle,
[22] Fix | Delete
const sepol_policydb_t *policydb,
[23] Fix | Delete
const sepol_ibpkey_key_t *key,
[24] Fix | Delete
sepol_ibpkey_t **response);
[25] Fix | Delete
[26] Fix | Delete
/* Modify a ibpkey, or add it, if the key is not found */
[27] Fix | Delete
extern int sepol_ibpkey_modify(sepol_handle_t *handle,
[28] Fix | Delete
sepol_policydb_t *policydb,
[29] Fix | Delete
const sepol_ibpkey_key_t *key,
[30] Fix | Delete
const sepol_ibpkey_t *data);
[31] Fix | Delete
[32] Fix | Delete
/* Iterate the ibpkeys
[33] Fix | Delete
* The handler may return:
[34] Fix | Delete
* -1 to signal an error condition,
[35] Fix | Delete
* 1 to signal successful exit
[36] Fix | Delete
* 0 to signal continue
[37] Fix | Delete
*/
[38] Fix | Delete
extern int sepol_ibpkey_iterate(sepol_handle_t *handle,
[39] Fix | Delete
const sepol_policydb_t *policydb,
[40] Fix | Delete
int (*fn)(const sepol_ibpkey_t *ibpkey,
[41] Fix | Delete
void *fn_arg), void *arg);
[42] Fix | Delete
[43] Fix | Delete
[44] Fix | Delete
#ifdef __cplusplus
[45] Fix | Delete
}
[46] Fix | Delete
#endif
[47] Fix | Delete
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function