getname.h

Go to the documentation of this file.
00001 /******************************** */
00002 /* Rule Set Based Access Control  */
00003 /* Author and (c) 1999-2001:      */
00004 /* Amon Ott <ao@rsbac.org>        */
00005 /* Getname functions for all parts*/
00006 /* Last modified: 30/Aug/2001     */
00007 /******************************** */
00008 
00009 #ifndef __RSBAC_GETNAME_H
00010 #define __RSBAC_GETNAME_H
00011 
00012 #include <rsbac/types.h>
00013 
00014 #if defined(__KERNEL__) && defined(CONFIG_RSBAC_LOG_FULL_PATH)
00015 #include <linux/fs.h>
00016 #if (CONFIG_RSBAC_MAX_PATH_LEN > 3840)
00017 #undef CONFIG_RSBAC_MAX_PATH_LEN
00018 #define CONFIG_RSBAC_MAX_PATH_LEN 3840
00019 #endif
00020 #if (CONFIG_RSBAC_MAX_PATH_LEN < RSBAC_MAXNAMELEN)
00021 #undef CONFIG_RSBAC_MAX_PATH_LEN
00022 #define CONFIG_RSBAC_MAX_PATH_LEN RSBAC_MAXNAMELEN
00023 #endif
00024 #endif
00025 
00026 extern char * get_request_name(char * , enum rsbac_adf_request_t);
00027 
00028 extern enum rsbac_adf_request_t get_request_nr(const char *);
00029 
00030 extern char * get_result_name(char * , enum rsbac_adf_req_ret_t);
00031 
00032 extern enum rsbac_adf_req_ret_t get_result_nr(const char *);
00033 
00034 extern enum rsbac_switch_target_t get_attr_module(enum rsbac_attribute_t attr);
00035 
00036 extern char * get_attribute_name(char * , enum rsbac_attribute_t);
00037 
00038 extern char * get_attribute_value_name(     char *            attr_val_name,
00039                                        enum rsbac_attribute_t attr,
00040                                        union rsbac_attribute_value_t * attr_val_p);
00041 
00042 extern enum rsbac_attribute_t get_attribute_nr(const char *);
00043 
00044 extern char * get_target_name(char * , enum  rsbac_target_t,
00045                               char * , union rsbac_target_id_t);
00046 
00047 extern char * get_target_name_only(char * target_type_name,
00048                                    enum   rsbac_target_t target);
00049 
00050 extern enum rsbac_target_t get_target_nr(const char *);
00051 
00052 extern char * get_ipc_target_name(char *,
00053                                   enum rsbac_ipc_type_t);
00054 
00055 extern enum rsbac_ipc_type_t get_ipc_target_nr(const char *);
00056 
00057 extern char * get_scd_type_name(char *,
00058                                 enum rsbac_scd_type_t);
00059 
00060 extern enum rsbac_scd_type_t get_scd_type_nr(const char *);
00061 
00062 extern char * get_switch_target_name(char *,
00063                                      enum rsbac_switch_target_t);
00064 
00065 extern enum rsbac_switch_target_t get_switch_target_nr(const char *);
00066 
00067 extern char * get_error_name(char *,
00068                              int);
00069 
00070 #ifndef __KERNEL__
00071 extern char * get_attribute_param(char * , enum rsbac_attribute_t);
00072 #endif
00073 
00074 extern char * get_log_level_name(char *,
00075                                   enum rsbac_log_level_t);
00076 
00077 extern enum rsbac_log_level_t get_log_level_nr(const char *);
00078 
00079 #ifdef __KERNEL__
00080 int rsbac_get_full_path(struct dentry * dentry_p, char path[], int maxlen);
00081 #endif
00082 
00083 #ifdef __KERNEL__
00084 int rsbac_get_full_path_length(struct dentry * dentry_p);
00085 #endif
00086 
00087 #endif

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