/usr/include/rsbac/debug.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 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | /******************************* */
/* Rule Set Based Access Control */
/* Author and (c) 1999-2007: */
/* Amon Ott <ao@rsbac.org> */
/* debug definitions */
/* Last modified: 11/Apr/2007 */
/******************************* */
#ifndef __RSBAC_DEBUG_H
#define __RSBAC_DEBUG_H
#include <linux/init.h>
//#include <rsbac/types.h>
#define set_rsbac_softmode 1
#define set_rsbac_softmode_once 2
#define set_rsbac_softmode_never 4
#define set_rsbac_freeze 8
#define set_rsbac_um_no_excl 16
#define set_rsbac_auth_learn 32
#define set_rsbac_acl_learn_fd 64
#define set_rsbac_cap_log_missing 128
#define set_rsbac_jail_log_missing 256
#define set_rsbac_dac_disable 512
#define set_rsbac_no_delay_init 1024
#define set_rsbac_no_defaults 2048
#define set_rsbac_nosyslog 4096
#define set_rsbac_cap_process_hiding 8192
extern unsigned long int rsbac_flags;
extern void rsbac_flags_set(unsigned long int);
extern int rsbac_debug_no_write;
#ifdef CONFIG_RSBAC_DEBUG
extern int rsbac_debug_ds;
extern int rsbac_debug_write;
extern int rsbac_debug_stack;
extern int rsbac_debug_lists;
extern int rsbac_debug_aef;
#endif
extern int rsbac_debug_adf_default;
extern rsbac_log_entry_t rsbac_log_levels[R_NONE+1];
#define RSBAC_LOG_LEVELS_NAME "log_levels"
#define RSBAC_LOG_LEVEL_LIST_NAME "ll"
#define RSBAC_LOG_LEVEL_VERSION 4
#define RSBAC_LOG_LEVEL_OLD_VERSION 3
#define RSBAC_LOG_LEVEL_OLD_OLD_VERSION 2
#define RSBAC_LOG_LEVEL_KEY 13123231
extern int rsbac_no_defaults;
#ifdef CONFIG_RSBAC_INIT_DELAY
extern void rsbac_init_debug(void);
#else
extern void rsbac_init_debug(void) __init;
#endif
extern rsbac_boolean_t rsbac_parse_koptions(char *);
#define RSBAC_WAKEUP_KEY 'w'
#define RSBAC_WAKEUP_UKEY 'W'
#ifdef CONFIG_RSBAC_SOFTMODE
#define RSBAC_SOFTMODE_KEY 'x'
#define RSBAC_SOFTMODE_UKEY 'X'
extern int rsbac_softmode;
extern int rsbac_softmode_prohibit;
static inline int rsbac_in_softmode(void)
{
return rsbac_softmode;
}
#ifdef CONFIG_RSBAC_SOFTMODE_IND
extern int rsbac_ind_softmode[SW_NONE];
#endif
#endif
#if defined(CONFIG_RSBAC_FREEZE)
extern int rsbac_freeze;
#endif
#ifdef CONFIG_RSBAC_FD_CACHE
extern rsbac_time_t rsbac_fd_cache_ttl;
extern u_int rsbac_fd_cache_disable;
#endif
#if defined(CONFIG_RSBAC_AUTO_WRITE) && (CONFIG_RSBAC_AUTO_WRITE > 0)
extern rsbac_time_t rsbac_list_check_interval;
#endif
#if defined(CONFIG_RSBAC_CAP_PROC_HIDE)
extern int rsbac_cap_process_hiding;
#endif
#ifdef CONFIG_RSBAC_CAP_LOG_MISSING
extern int rsbac_cap_log_missing;
#endif
#ifdef CONFIG_RSBAC_JAIL_LOG_MISSING
extern int rsbac_jail_log_missing;
#endif
#ifdef CONFIG_RSBAC_ALLOW_DAC_DISABLE_FULL
extern int rsbac_dac_disable;
extern int rsbac_dac_is_disabled(void);
#endif
#ifdef CONFIG_RSBAC_RMSG_NOSYSLOG
extern int rsbac_nosyslog;
#endif
#ifdef CONFIG_RSBAC_INIT_DELAY
extern int rsbac_no_delay_init;
extern kdev_t rsbac_delayed_root;
extern char rsbac_delayed_root_str[];
#endif
/* rsbac_printk(): You must always prepend the loglevel. As sequence numbers
* are per rsbac_printk() message, it is strongly recommended to output single
* full lines only.
* Example:
* rsbac_printk(KERN_DEBUG "Test value: %u\n", testval);
*/
extern int rsbac_printk(const char *, ...);
#ifdef CONFIG_RSBAC_DEBUG
#define rsbac_pr_debug(type, fmt, arg...) \
do { if (rsbac_debug_##type) \
rsbac_printk(KERN_DEBUG "%s(): " fmt, __FUNCTION__, ##arg); \
} while (0)
#else
#define rsbac_pr_debug(type, fmt, arg...) do { } while (0)
#endif
#define rsbac_pr_get_error(attr) \
do { rsbac_ds_get_error (__FUNCTION__, attr); \
} while (0)
#define rsbac_pr_set_error(attr) \
do { rsbac_ds_set_error (__FUNCTION__, attr); \
} while (0)
#define rsbac_rc_pr_get_error(item) \
do { rsbac_rc_ds_get_error (__FUNCTION__, item); \
} while (0)
#define rsbac_rc_pr_set_error(item) \
do { rsbac_rc_ds_set_error (__FUNCTION__, item); \
} while (0)
#define RSBAC_LOG_MAXLINE 2040
#if defined(CONFIG_RSBAC_RMSG)
extern int rsbac_log(int, char *, int);
#define RSBAC_LOG_MAXREADBUF (rsbac_min(8192,RSBAC_MAX_KMALLOC))
struct rsbac_log_list_item_t {
struct rsbac_log_list_item_t *next;
u16 size;
char buffer[0];
};
struct rsbac_log_list_head_t {
struct rsbac_log_list_item_t *head;
struct rsbac_log_list_item_t *tail;
u_int count;
u_long lost;
};
#if defined(CONFIG_RSBAC_LOG_REMOTE)
extern rsbac_pid_t rsbaclogd_pid;
#endif
#endif
#ifdef CONFIG_RSBAC_NET
extern int rsbac_debug_ds_net;
extern int rsbac_debug_aef_net;
extern int rsbac_debug_adf_net;
#endif
extern void wakeup_rsbacd(u_long dummy);
/* switch log level for request */
void rsbac_adf_log_switch(rsbac_adf_request_int_t request,
enum rsbac_target_t target,
rsbac_enum_t value);
int rsbac_get_adf_log(rsbac_adf_request_int_t request,
enum rsbac_target_t target,
u_int * value_p);
#ifdef CONFIG_RSBAC_DEBUG
#if defined(CONFIG_RSBAC_AUTO_WRITE) && (CONFIG_RSBAC_AUTO_WRITE > 0)
extern int rsbac_debug_auto;
#endif /* CONFIG_RSBAC_AUTO_WRITE > 0 */
#if defined(CONFIG_RSBAC_MAC)
extern int rsbac_debug_ds_mac;
extern int rsbac_debug_aef_mac;
extern int rsbac_debug_adf_mac;
#endif
#if defined(CONFIG_RSBAC_PM) || defined(CONFIG_RSBAC_PM_MAINT)
extern int rsbac_debug_ds_pm;
extern int rsbac_debug_aef_pm;
extern int rsbac_debug_adf_pm;
#endif
#if defined(CONFIG_RSBAC_DAZ) || defined(CONFIG_RSBAC_DAZ_MAINT)
extern int rsbac_debug_adf_daz;
#endif
#if defined(CONFIG_RSBAC_RC) || defined(CONFIG_RSBAC_RC_MAINT)
extern int rsbac_debug_ds_rc;
extern int rsbac_debug_aef_rc;
extern int rsbac_debug_adf_rc;
#endif
#if defined(CONFIG_RSBAC_AUTH) || defined(CONFIG_RSBAC_AUTH_MAINT)
extern int rsbac_debug_ds_auth;
extern int rsbac_debug_aef_auth;
extern int rsbac_debug_adf_auth;
#endif
#if defined(CONFIG_RSBAC_REG) || defined(CONFIG_RSBAC_REG_MAINT)
extern int rsbac_debug_reg;
#endif
#if defined(CONFIG_RSBAC_ACL) || defined(CONFIG_RSBAC_ACL_MAINT)
extern int rsbac_debug_ds_acl;
extern int rsbac_debug_aef_acl;
extern int rsbac_debug_adf_acl;
#endif
#if defined(CONFIG_RSBAC_JAIL)
extern int rsbac_debug_aef_jail;
extern int rsbac_debug_adf_jail;
#endif
#if defined(CONFIG_RSBAC_PAX)
extern int rsbac_debug_adf_pax;
#endif
#if defined(CONFIG_RSBAC_UM)
extern int rsbac_debug_ds_um;
extern int rsbac_debug_aef_um;
extern int rsbac_debug_adf_um;
#endif
#endif /* DEBUG */
#if defined(CONFIG_RSBAC_UM_EXCL)
extern int rsbac_um_no_excl;
#endif
#if defined(CONFIG_RSBAC_AUTH) || defined(CONFIG_RSBAC_AUTH_MAINT)
extern int rsbac_auth_enable_login;
#if defined(CONFIG_RSBAC_AUTH_LEARN)
extern int rsbac_auth_learn;
#endif
#endif
#if defined(CONFIG_RSBAC_ACL_LEARN)
extern int rsbac_acl_learn_fd;
#endif
#endif
|