aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /kernel/audit.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'kernel/audit.h')
-rw-r--r--kernel/audit.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/kernel/audit.h b/kernel/audit.h
index d51cba868e1..91e7071c4d2 100644
--- a/kernel/audit.h
+++ b/kernel/audit.h
@@ -36,8 +36,12 @@ enum audit_state {
36 AUDIT_DISABLED, /* Do not create per-task audit_context. 36 AUDIT_DISABLED, /* Do not create per-task audit_context.
37 * No syscall-specific audit records can 37 * No syscall-specific audit records can
38 * be generated. */ 38 * be generated. */
39 AUDIT_SETUP_CONTEXT, /* Create the per-task audit_context,
40 * but don't necessarily fill it in at
41 * syscall entry time (i.e., filter
42 * instead). */
39 AUDIT_BUILD_CONTEXT, /* Create the per-task audit_context, 43 AUDIT_BUILD_CONTEXT, /* Create the per-task audit_context,
40 * and fill it in at syscall 44 * and always fill it in at syscall
41 * entry time. This makes a full 45 * entry time. This makes a full
42 * syscall record available if some 46 * syscall record available if some
43 * other part of the kernel decides it 47 * other part of the kernel decides it
@@ -74,15 +78,10 @@ static inline int audit_hash_ino(u32 ino)
74 return (ino & (AUDIT_INODE_BUCKETS-1)); 78 return (ino & (AUDIT_INODE_BUCKETS-1));
75} 79}
76 80
77/* Indicates that audit should log the full pathname. */
78#define AUDIT_NAME_FULL -1
79
80extern int audit_match_class(int class, unsigned syscall); 81extern int audit_match_class(int class, unsigned syscall);
81extern int audit_comparator(const u32 left, const u32 op, const u32 right); 82extern int audit_comparator(const u32 left, const u32 op, const u32 right);
82extern int audit_uid_comparator(kuid_t left, u32 op, kuid_t right); 83extern int audit_compare_dname_path(const char *dname, const char *path,
83extern int audit_gid_comparator(kgid_t left, u32 op, kgid_t right); 84 int *dirlen);
84extern int parent_len(const char *path);
85extern int audit_compare_dname_path(const char *dname, const char *path, int plen);
86extern struct sk_buff * audit_make_reply(int pid, int seq, int type, 85extern struct sk_buff * audit_make_reply(int pid, int seq, int type,
87 int done, int multi, 86 int done, int multi,
88 const void *payload, int size); 87 const void *payload, int size);
@@ -149,7 +148,7 @@ extern void audit_kill_trees(struct list_head *);
149extern char *audit_unpack_string(void **, size_t *, size_t); 148extern char *audit_unpack_string(void **, size_t *, size_t);
150 149
151extern pid_t audit_sig_pid; 150extern pid_t audit_sig_pid;
152extern kuid_t audit_sig_uid; 151extern uid_t audit_sig_uid;
153extern u32 audit_sig_sid; 152extern u32 audit_sig_sid;
154 153
155#ifdef CONFIG_AUDITSYSCALL 154#ifdef CONFIG_AUDITSYSCALL