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