net_getname.h

Go to the documentation of this file.
00001 /********************************** */
00002 /* Rule Set Based Access Control    */
00003 /* Author and (c) 1999-2003:        */
00004 /*   Amon Ott <ao@rsbac.org>        */
00005 /* Getname functions for CAP module */
00006 /* Last modified: 22/Dec/2003       */
00007 /********************************** */
00008 
00009 #ifndef __RSBAC_NET_GETNAME_H
00010 #define __RSBAC_NET_GETNAME_H
00011 
00012 #include <rsbac/types.h>
00013 
00014 #define RSBAC_NET_PROTO_MAX 256
00015 #define RSBAC_NET_TYPE_MAX 11
00016 
00017 #ifdef __KERNEL__
00018 extern int rsbac_net_str_to_inet(char * str, __u32 * addr);
00019 #else
00020 #ifndef AF_MAX
00021 #define AF_MAX 32
00022 #endif
00023 #endif
00024 
00025 extern char * rsbac_get_net_temp_syscall_name(char * name,
00026                                         enum rsbac_net_temp_syscall_t value);
00027 
00028 extern char * rsbac_get_net_family_name(char * name,
00029                                   u_int value);
00030 
00031 extern char * rsbac_get_net_protocol_name(char * name,
00032                                     u_int value);
00033 
00034 extern char * rsbac_get_net_type_name(char * name,
00035                                 u_int value);
00036 
00037 #ifndef __KERNEL__
00038 enum rsbac_net_temp_syscall_t rsbac_get_net_temp_syscall_nr(const char * name);
00039 
00040 int rsbac_get_net_family_nr(const char * name);
00041 
00042 int rsbac_get_net_protocol_nr(const char * name);
00043 
00044 int rsbac_get_net_type_nr(const char * name);
00045 #endif
00046 
00047 #endif

Generated on Fri Jun 17 09:45:18 2005 for RSBAC by  doxygen 1.4.2