/usr/include/rsbac/network.h is in librsbac-dev 1.4.0-repack-0ubuntu6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /************************************* */
/* Rule Set Based Access Control */
/* Author and (c) 1999-2004: */
/* Amon Ott <ao@rsbac.org> */
/* Network helper functions */
/* Last modified: 07/Dec/2004 */
/************************************* */
#ifndef __RSBAC_NETWORK_H
#define __RSBAC_NETWORK_H
#include <rsbac/types.h>
#include <rsbac/network_types.h>
#include <linux/net.h>
#include <linux/in.h>
#include <linux/un.h>
#include <net/sock.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
#include <net/inet_sock.h>
#endif
#include <net/af_unix.h>
#include <net/route.h>
/* functions */
int rsbac_ta_net_list_all_netdev(rsbac_list_ta_number_t ta_number, rsbac_netdev_id_t ** id_pp);
static inline int rsbac_net_list_all_netdev(rsbac_netdev_id_t ** id_pp)
{
return rsbac_ta_net_list_all_netdev(0, id_pp);
}
//__u32 rsbac_net_make_mask_u32(__u8 valid_bits);
int rsbac_net_compare_data(void * data1, void * data2);
int rsbac_net_get_id(
rsbac_list_ta_number_t ta_number,
struct rsbac_net_description_t * desc_p,
rsbac_net_temp_id_t * id_p);
// void rsbac_net_obj_cleanup(rsbac_net_obj_id_t netobj);
int rsbac_ta_net_lookup_templates(
rsbac_list_ta_number_t ta_number,
struct rsbac_net_obj_desc_t * netobj_p,
rsbac_net_temp_id_t * local_temp_p,
rsbac_net_temp_id_t * remote_temp_p);
static inline int rsbac_net_lookup_templates(
struct rsbac_net_obj_desc_t * netobj_p,
rsbac_net_temp_id_t * local_temp_p,
rsbac_net_temp_id_t * remote_temp_p)
{
return rsbac_ta_net_lookup_templates(0, netobj_p, local_temp_p, remote_temp_p);
}
int rsbac_ta_net_template(
rsbac_list_ta_number_t ta_number,
enum rsbac_net_temp_syscall_t call,
rsbac_net_temp_id_t id,
union rsbac_net_temp_syscall_data_t * data_p);
static inline int rsbac_net_template(enum rsbac_net_temp_syscall_t call,
rsbac_net_temp_id_t id,
union rsbac_net_temp_syscall_data_t * data_p)
{
return rsbac_ta_net_template(0, call, id, data_p);
}
int rsbac_ta_net_list_all_template(rsbac_list_ta_number_t ta_number,
rsbac_net_temp_id_t ** id_pp);
static inline int rsbac_net_list_all_template(rsbac_net_temp_id_t ** id_pp)
{
return rsbac_ta_net_list_all_template(0, id_pp);
}
int rsbac_ta_net_template_exist(rsbac_list_ta_number_t ta_number, rsbac_net_temp_id_t temp);
static inline int rsbac_net_template_exist(rsbac_net_temp_id_t temp)
{
return rsbac_ta_net_template_exist(0, temp);
}
/* Whether request should be checked for remote endpoint */
int rsbac_net_remote_request(enum rsbac_adf_request_t request);
#endif
|