selinux/libsemanage/include/semanage/ibendports_policy.h
Daniel Jurgens 9a3d2c7a9b semanage: Update semanage to allow runtime labeling of ibendports
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>
2017-05-23 16:20:55 -04:00

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