Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sepol
File: users.h
#ifndef _SEPOL_USERS_H_
[0] Fix | Delete
#define _SEPOL_USERS_H_
[1] Fix | Delete
[2] Fix | Delete
#include <sepol/policydb.h>
[3] Fix | Delete
#include <sepol/user_record.h>
[4] Fix | Delete
#include <sepol/handle.h>
[5] Fix | Delete
#include <stddef.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 user configurations living in 'usersdir', generate a new binary
[15] Fix | Delete
policy for the new user configurations. Sets '*newdata' and '*newlen'
[16] Fix | Delete
to refer to the new binary policy image. */
[17] Fix | Delete
extern int sepol_genusers(void *data, size_t len,
[18] Fix | Delete
const char *usersdir,
[19] Fix | Delete
void **newdata, size_t * newlen);
[20] Fix | Delete
[21] Fix | Delete
/* Enable or disable deletion of users by sepol_genusers(3) when
[22] Fix | Delete
a user in original binary policy image is not defined by the
[23] Fix | Delete
new user configurations. Defaults to disabled. */
[24] Fix | Delete
extern void sepol_set_delusers(int on);
[25] Fix | Delete
[26] Fix | Delete
/*--------end compatibility----------*/
[27] Fix | Delete
[28] Fix | Delete
/* Modify the user, or add it, if the key is not found */
[29] Fix | Delete
extern int sepol_user_modify(sepol_handle_t * handle,
[30] Fix | Delete
sepol_policydb_t * policydb,
[31] Fix | Delete
const sepol_user_key_t * key,
[32] Fix | Delete
const sepol_user_t * data);
[33] Fix | Delete
[34] Fix | Delete
/* Return the number of users */
[35] Fix | Delete
extern int sepol_user_count(sepol_handle_t * handle,
[36] Fix | Delete
const sepol_policydb_t * p, unsigned int *response);
[37] Fix | Delete
[38] Fix | Delete
/* Check if the specified user exists */
[39] Fix | Delete
extern int sepol_user_exists(sepol_handle_t * handle,
[40] Fix | Delete
const sepol_policydb_t * policydb,
[41] Fix | Delete
const sepol_user_key_t * key, int *response);
[42] Fix | Delete
[43] Fix | Delete
/* Query a user - returns the user or NULL if not found */
[44] Fix | Delete
extern int sepol_user_query(sepol_handle_t * handle,
[45] Fix | Delete
const sepol_policydb_t * p,
[46] Fix | Delete
const sepol_user_key_t * key,
[47] Fix | Delete
sepol_user_t ** response);
[48] Fix | Delete
[49] Fix | Delete
/* Iterate the users
[50] Fix | Delete
* The handler may return:
[51] Fix | Delete
* -1 to signal an error condition,
[52] Fix | Delete
* 1 to signal successful exit
[53] Fix | Delete
* 0 to signal continue */
[54] Fix | Delete
extern int sepol_user_iterate(sepol_handle_t * handle,
[55] Fix | Delete
const sepol_policydb_t * policydb,
[56] Fix | Delete
int (*fn) (const sepol_user_t * user,
[57] Fix | Delete
void *fn_arg), void *arg);
[58] Fix | Delete
[59] Fix | Delete
#ifdef __cplusplus
[60] Fix | Delete
}
[61] Fix | Delete
#endif
[62] Fix | Delete
[63] Fix | Delete
#endif
[64] Fix | Delete
[65] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function