diff options
Diffstat (limited to 'kernel/audit.h')
| -rw-r--r-- | kernel/audit.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 3cdffad5a1d9..1caa0d345d90 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
| @@ -24,12 +24,6 @@ | |||
| 24 | #include <linux/skbuff.h> | 24 | #include <linux/skbuff.h> |
| 25 | #include <uapi/linux/mqueue.h> | 25 | #include <uapi/linux/mqueue.h> |
| 26 | 26 | ||
| 27 | /* 0 = no checking | ||
| 28 | 1 = put_count checking | ||
| 29 | 2 = verbose put_count checking | ||
| 30 | */ | ||
| 31 | #define AUDIT_DEBUG 0 | ||
| 32 | |||
| 33 | /* AUDIT_NAMES is the number of slots we reserve in the audit_context | 27 | /* AUDIT_NAMES is the number of slots we reserve in the audit_context |
| 34 | * for saving names from getname(). If we get more names we will allocate | 28 | * for saving names from getname(). If we get more names we will allocate |
| 35 | * a name dynamically and also add those to the list anchored by names_list. */ | 29 | * a name dynamically and also add those to the list anchored by names_list. */ |
| @@ -74,9 +68,8 @@ struct audit_cap_data { | |||
| 74 | }; | 68 | }; |
| 75 | }; | 69 | }; |
| 76 | 70 | ||
| 77 | /* When fs/namei.c:getname() is called, we store the pointer in name and | 71 | /* When fs/namei.c:getname() is called, we store the pointer in name and bump |
| 78 | * we don't let putname() free it (instead we free all of the saved | 72 | * the refcnt in the associated filename struct. |
| 79 | * pointers at syscall exit time). | ||
| 80 | * | 73 | * |
| 81 | * Further, in fs/namei.c:path_lookup() we store the inode and device. | 74 | * Further, in fs/namei.c:path_lookup() we store the inode and device. |
| 82 | */ | 75 | */ |
| @@ -86,7 +79,6 @@ struct audit_names { | |||
| 86 | struct filename *name; | 79 | struct filename *name; |
| 87 | int name_len; /* number of chars to log */ | 80 | int name_len; /* number of chars to log */ |
| 88 | bool hidden; /* don't log this record */ | 81 | bool hidden; /* don't log this record */ |
| 89 | bool name_put; /* call __putname()? */ | ||
| 90 | 82 | ||
| 91 | unsigned long ino; | 83 | unsigned long ino; |
| 92 | dev_t dev; | 84 | dev_t dev; |
| @@ -208,11 +200,6 @@ struct audit_context { | |||
| 208 | }; | 200 | }; |
| 209 | int fds[2]; | 201 | int fds[2]; |
| 210 | struct audit_proctitle proctitle; | 202 | struct audit_proctitle proctitle; |
| 211 | |||
| 212 | #if AUDIT_DEBUG | ||
| 213 | int put_count; | ||
| 214 | int ino_count; | ||
| 215 | #endif | ||
| 216 | }; | 203 | }; |
| 217 | 204 | ||
| 218 | extern u32 audit_ever_enabled; | 205 | extern u32 audit_ever_enabled; |
