/daten/src/linux-2.4.27-rsbac-v1.2.3/include/rsbac/debug.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 /* debug definitions */ 00006 /* Last modified: 11/Dec/2003 */ 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 1 00031 #define RSBAC_LOG_LEVEL_KEY 13123231 00032 00033 extern int rsbac_no_defaults; 00034 00035 #ifdef CONFIG_RSBAC_INIT_DELAY 00036 extern void rsbac_init_debug(void); 00037 #else 00038 extern void rsbac_init_debug(void) __init; 00039 #endif 00040 00041 extern boolean rsbac_parse_koptions(char *); 00042 00043 #define RSBAC_WAKEUP_KEY 'w' 00044 #define RSBAC_WAKEUP_UKEY 'W' 00045 00046 #ifdef CONFIG_RSBAC_SOFTMODE 00047 #define RSBAC_SOFTMODE_KEY 'x' 00048 #define RSBAC_SOFTMODE_UKEY 'X' 00049 extern int rsbac_softmode; 00050 extern int rsbac_in_softmode(void); 00051 #ifdef CONFIG_RSBAC_SOFTMODE_IND 00052 extern int rsbac_ind_softmode[SW_NONE]; 00053 #endif 00054 #endif 00055 00056 #if defined(CONFIG_RSBAC_CAP_PROC_HIDE) 00057 extern int rsbac_cap_process_hiding; 00058 #endif 00059 00060 #ifdef CONFIG_RSBAC_ALLOW_DAC_DISABLE_FULL 00061 extern int rsbac_dac_disable; 00062 extern int rsbac_dac_is_disabled(void); 00063 #endif 00064 00065 #ifdef CONFIG_RSBAC_RMSG_NOSYSLOG 00066 extern int rsbac_nosyslog; 00067 #endif 00068 00069 #ifdef CONFIG_RSBAC_INIT_DELAY 00070 extern int rsbac_no_delay_init; 00071 extern kdev_t rsbac_delayed_root; 00072 extern char rsbac_delayed_root_str[]; 00073 #endif 00074 00075 #if defined(CONFIG_RSBAC_RMSG) 00076 #define RSBAC_LOG rsbac_printk 00077 #define RSBAC_DEF_MESS_LOGLEVEL 4 00078 extern int rsbac_printk(const char *, ...); 00079 extern int rsbac_log(int, char *, int); 00080 #else 00081 #define RSBAC_LOG printk 00082 #endif 00083 00084 #if defined(CONFIG_RSBAC_LOG_REMOTE) 00085 extern rsbac_pid_t rsbaclogd_pid; 00086 #endif 00087 00088 #ifdef CONFIG_RSBAC_NET 00089 extern int rsbac_debug_ds_net; 00090 extern int rsbac_debug_aef_net; 00091 extern int rsbac_debug_adf_net; 00092 #endif 00093 00094 extern void wakeup_rsbacd(u_long dummy); 00095 00096 /* switch log level for request */ 00097 void rsbac_adf_log_switch(rsbac_adf_request_int_t request, 00098 enum rsbac_target_t target, 00099 rsbac_enum_t value); 00100 00101 int rsbac_get_adf_log(rsbac_adf_request_int_t request, 00102 enum rsbac_target_t target, 00103 u_int * value_p); 00104 00105 #ifdef CONFIG_RSBAC_DEBUG 00106 #if defined(CONFIG_RSBAC_AUTO_WRITE) && (CONFIG_RSBAC_AUTO_WRITE > 0) 00107 extern int rsbac_debug_auto; 00108 #endif /* CONFIG_RSBAC_AUTO_WRITE > 0 */ 00109 00110 #if defined(CONFIG_RSBAC_MAC) 00111 extern int rsbac_debug_ds_mac; 00112 extern int rsbac_debug_aef_mac; 00113 extern int rsbac_debug_adf_mac; 00114 #endif 00115 00116 #if defined(CONFIG_RSBAC_PM) || defined(CONFIG_RSBAC_PM_MAINT) 00117 extern int rsbac_debug_ds_pm; 00118 extern int rsbac_debug_aef_pm; 00119 extern int rsbac_debug_adf_pm; 00120 #endif 00121 00122 #if defined(CONFIG_RSBAC_DAZ) || defined(CONFIG_RSBAC_DAZ_MAINT) 00123 extern int rsbac_debug_adf_daz; 00124 #endif 00125 00126 #if defined(CONFIG_RSBAC_RC) || defined(CONFIG_RSBAC_RC_MAINT) 00127 extern int rsbac_debug_ds_rc; 00128 extern int rsbac_debug_aef_rc; 00129 extern int rsbac_debug_adf_rc; 00130 #endif 00131 00132 #if defined(CONFIG_RSBAC_AUTH) || defined(CONFIG_RSBAC_AUTH_MAINT) 00133 extern int rsbac_debug_ds_auth; 00134 extern int rsbac_debug_aef_auth; 00135 extern int rsbac_debug_adf_auth; 00136 #endif 00137 00138 #if defined(CONFIG_RSBAC_REG) || defined(CONFIG_RSBAC_REG_MAINT) 00139 extern int rsbac_debug_reg; 00140 #endif 00141 00142 #if defined(CONFIG_RSBAC_ACL) || defined(CONFIG_RSBAC_ACL_MAINT) 00143 extern int rsbac_debug_ds_acl; 00144 extern int rsbac_debug_aef_acl; 00145 extern int rsbac_debug_adf_acl; 00146 #endif 00147 00148 #if defined(CONFIG_RSBAC_JAIL) 00149 extern int rsbac_debug_aef_jail; 00150 extern int rsbac_debug_adf_jail; 00151 #endif 00152 00153 #if defined(CONFIG_RSBAC_PAX) 00154 extern int rsbac_debug_adf_pax; 00155 #endif 00156 00157 #endif /* DEBUG */ 00158 00159 #if defined(CONFIG_RSBAC_AUTH) || defined(CONFIG_RSBAC_AUTH_MAINT) 00160 extern int rsbac_auth_enable_login; 00161 #if defined(CONFIG_RSBAC_AUTH_LEARN) 00162 extern int rsbac_auth_learn; 00163 #endif 00164 #endif 00165 00166 #if defined(CONFIG_RSBAC_ACL_LEARN) 00167 extern int rsbac_acl_learn_fd; 00168 #endif 00169 00170 #endif

Generated on Tue Aug 31 10:05:22 2004 for RSBAC by doxygen 1.3.8