mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-26 16:02:26 +00:00
9a3d2c7a9b
Update libsepol and libsemanage to work with ibendport records. Add local storage for new and modified ibendport records in ibendports.local. Update semanage to parse the ibendport command options to add, modify, and delete them. Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
29 lines
896 B
C
29 lines
896 B
C
/* Copyright (C) 2017 Mellanox Techonologies Inc */
|
|
|
|
#ifndef _SEMANAGE_IBENDPORTS_POLICY_H_
|
|
#define _SEMANAGE_IBENDPORTS_POLICY_H_
|
|
|
|
#include <semanage/handle.h>
|
|
#include <semanage/ibendport_record.h>
|
|
|
|
extern int semanage_ibendport_query(semanage_handle_t *handle,
|
|
const semanage_ibendport_key_t *key,
|
|
semanage_ibendport_t **response);
|
|
|
|
extern int semanage_ibendport_exists(semanage_handle_t *handle,
|
|
const semanage_ibendport_key_t *key, int *response);
|
|
|
|
extern int semanage_ibendport_count(semanage_handle_t *handle,
|
|
unsigned int *response);
|
|
|
|
extern int semanage_ibendport_iterate(semanage_handle_t *handle,
|
|
int (*handler)(const semanage_ibendport_t *record,
|
|
void *varg),
|
|
void *handler_arg);
|
|
|
|
extern int semanage_ibendport_list(semanage_handle_t *handle,
|
|
semanage_ibendport_t ***records,
|
|
unsigned int *count);
|
|
|
|
#endif
|