debug.h

Go to the documentation of this file.
00001 /******************************* */
00002 /* Rule Set Based Access Control */
00003 /* Author and (c) 1999-2005:     */
00004 /*   Amon Ott <ao@rsbac.org>     */
00005 /* debug definitions             */
00006 /* Last modified: 09/Feb/2005    */
00007 /******************************* */
00008 
00009 #ifndef __RSBAC_DEBUG_H
00010 #define __RSBAC_DEBUG_H
00011 
00012 #include <linux/init.h>
00013 //#include <rsbac/types.h>
00014 
00015 extern int rsbac_debug_no_write;
00016 
00017 #ifdef CONFIG_RSBAC_DEBUG
00018 extern int rsbac_debug_ds;
00019 extern int rsbac_debug_write;
00020 extern int rsbac_debug_stack;
00021 extern int rsbac_debug_lists;
00022 extern int rsbac_debug_aef;
00023 #endif
00024 
00025 extern int rsbac_debug_adf_default;
00026 extern rsbac_log_entry_t  rsbac_log_levels[R_NONE+1];
00027 
00028 #define RSBAC_LOG_LEVELS_NAME "log_levels"
00029 #define RSBAC_LOG_LEVEL_LIST_NAME "ll"
00030 #define RSBAC_LOG_LEVEL_VERSION 2
00031 #define RSBAC_LOG_LEVEL_OLD_VERSION 1
00032 #define RSBAC_LOG_LEVEL_KEY 13123231
00033 
00034 extern int rsbac_no_defaults;
00035 
00036 #ifdef CONFIG_RSBAC_INIT_DELAY
00037 extern void rsbac_init_debug(void);
00038 #else
00039 extern void rsbac_init_debug(void) __init;
00040 #endif
00041 
00042 extern rsbac_boolean_t rsbac_parse_koptions(char *);
00043 
00044 #define RSBAC_WAKEUP_KEY 'w'
00045 #define RSBAC_WAKEUP_UKEY 'W'
00046 
00047 #ifdef CONFIG_RSBAC_SOFTMODE
00048 #define RSBAC_SOFTMODE_KEY 'x'
00049 #define RSBAC_SOFTMODE_UKEY 'X'
00050 extern int rsbac_softmode;
00051 extern int rsbac_softmode_prohibit;
00052 extern int rsbac_in_softmode(void);
00053 #ifdef CONFIG_RSBAC_SOFTMODE_IND
00054 extern int  rsbac_ind_softmode[SW_NONE];
00055 #endif
00056 #endif
00057 
00058 #if defined(CONFIG_RSBAC_FREEZE)
00059 extern int rsbac_freeze;
00060 #endif
00061 
00062 #if defined(CONFIG_RSBAC_CAP_PROC_HIDE)
00063 extern int rsbac_cap_process_hiding;
00064 #endif
00065 #ifdef CONFIG_RSBAC_CAP_LOG_MISSING
00066 extern int rsbac_cap_log_missing;
00067 #endif
00068 
00069 #ifdef CONFIG_RSBAC_ALLOW_DAC_DISABLE_FULL
00070 extern int rsbac_dac_disable;
00071 extern int rsbac_dac_is_disabled(void);
00072 #endif
00073 
00074 #ifdef CONFIG_RSBAC_RMSG_NOSYSLOG
00075 extern int rsbac_nosyslog;
00076 #endif
00077 
00078 #ifdef CONFIG_RSBAC_INIT_DELAY
00079 extern int rsbac_no_delay_init;
00080 extern kdev_t rsbac_delayed_root;
00081 extern char rsbac_delayed_root_str[];
00082 #endif
00083 
00084 #if defined(CONFIG_RSBAC_RMSG)
00085 #define RSBAC_LOG rsbac_printk
00086 #define RSBAC_DEF_MESS_LOGLEVEL 4
00087 extern int rsbac_printk(const char *, ...);
00088 extern int rsbac_log(int, char *, int);
00089 #else
00090 #define RSBAC_LOG printk
00091 #endif
00092 
00093 #if defined(CONFIG_RSBAC_LOG_REMOTE)
00094 extern rsbac_pid_t rsbaclogd_pid;
00095 #endif
00096 
00097 #ifdef CONFIG_RSBAC_NET
00098 extern int rsbac_debug_ds_net;
00099 extern int rsbac_debug_aef_net;
00100 extern int rsbac_debug_adf_net;
00101 #endif
00102 
00103 extern void wakeup_rsbacd(u_long dummy);
00104 
00105 /* switch log level for request */
00106 void  rsbac_adf_log_switch(rsbac_adf_request_int_t request,
00107                            enum rsbac_target_t target,
00108                            rsbac_enum_t value);
00109 
00110 int rsbac_get_adf_log(rsbac_adf_request_int_t request,
00111                       enum rsbac_target_t target,
00112                       u_int * value_p);
00113 
00114 #ifdef CONFIG_RSBAC_DEBUG
00115 #if defined(CONFIG_RSBAC_AUTO_WRITE) && (CONFIG_RSBAC_AUTO_WRITE > 0)
00116 extern int rsbac_debug_auto;
00117 #endif /* CONFIG_RSBAC_AUTO_WRITE > 0 */
00118 
00119 #if defined(CONFIG_RSBAC_MAC)
00120 extern int rsbac_debug_ds_mac;
00121 extern int rsbac_debug_aef_mac;
00122 extern int rsbac_debug_adf_mac;
00123 #endif
00124 
00125 #if defined(CONFIG_RSBAC_PM) || defined(CONFIG_RSBAC_PM_MAINT)
00126 extern int rsbac_debug_ds_pm;
00127 extern int rsbac_debug_aef_pm;
00128 extern int rsbac_debug_adf_pm;
00129 #endif
00130 
00131 #if defined(CONFIG_RSBAC_DAZ) || defined(CONFIG_RSBAC_DAZ_MAINT)
00132 extern int rsbac_debug_adf_daz;
00133 #endif
00134 
00135 #if defined(CONFIG_RSBAC_RC) || defined(CONFIG_RSBAC_RC_MAINT)
00136 extern int rsbac_debug_ds_rc;
00137 extern int rsbac_debug_aef_rc;
00138 extern int rsbac_debug_adf_rc;
00139 #endif
00140 
00141 #if defined(CONFIG_RSBAC_AUTH) || defined(CONFIG_RSBAC_AUTH_MAINT)
00142 extern int rsbac_debug_ds_auth;
00143 extern int rsbac_debug_aef_auth;
00144 extern int rsbac_debug_adf_auth;
00145 #endif
00146 
00147 #if defined(CONFIG_RSBAC_REG) || defined(CONFIG_RSBAC_REG_MAINT)
00148 extern int rsbac_debug_reg;
00149 #endif
00150 
00151 #if defined(CONFIG_RSBAC_ACL) || defined(CONFIG_RSBAC_ACL_MAINT)
00152 extern int rsbac_debug_ds_acl;
00153 extern int rsbac_debug_aef_acl;
00154 extern int rsbac_debug_adf_acl;
00155 #endif
00156 
00157 #if defined(CONFIG_RSBAC_JAIL)
00158 extern int rsbac_debug_aef_jail;
00159 extern int rsbac_debug_adf_jail;
00160 #endif
00161 
00162 #if defined(CONFIG_RSBAC_PAX)
00163 extern int rsbac_debug_adf_pax;
00164 #endif
00165 
00166 #if defined(CONFIG_RSBAC_UM)
00167 extern int rsbac_debug_ds_um;
00168 extern int rsbac_debug_aef_um;
00169 extern int rsbac_debug_adf_um;
00170 #endif
00171 
00172 #endif /* DEBUG */
00173 
00174 #if defined(CONFIG_RSBAC_UM_EXCL)
00175 extern int rsbac_um_no_excl;
00176 #endif
00177 
00178 #if defined(CONFIG_RSBAC_AUTH) || defined(CONFIG_RSBAC_AUTH_MAINT)
00179 extern int rsbac_auth_enable_login;
00180 #if defined(CONFIG_RSBAC_AUTH_LEARN)
00181 extern int rsbac_auth_learn;
00182 #endif
00183 #endif
00184 
00185 #if defined(CONFIG_RSBAC_ACL_LEARN)
00186 extern int rsbac_acl_learn_fd;
00187 #endif
00188 
00189 #endif

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