diff options
author | Steve Grubb <sgrubb@redhat.com> | 2005-04-29 12:30:07 -0400 |
---|---|---|
committer | <dwmw2@shinybook.infradead.org> | 2005-04-29 12:30:07 -0400 |
commit | 456be6cd90dbbb9b0ea01d56932d56d110d51cf7 (patch) | |
tree | 27f0d001610f686d11ff460cb6c848a599c8ca4f /include/linux/audit.h | |
parent | 37509e749dc2072e667db806ef24b9e897f61b8a (diff) |
[AUDIT] LOGIN message credentials
Attached is a new patch that solves the issue of getting valid credentials
into the LOGIN message. The current code was assuming that the audit context
had already been copied. This is not always the case for LOGIN messages.
To solve the problem, the patch passes the task struct to the function that
emits the message where it can get valid credentials.
Signed-off-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 19f214230fec..19f04b049798 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -187,7 +187,7 @@ extern int audit_receive_filter(int type, int pid, int uid, int seq, | |||
187 | void *data, uid_t loginuid); | 187 | void *data, uid_t loginuid); |
188 | extern void audit_get_stamp(struct audit_context *ctx, | 188 | extern void audit_get_stamp(struct audit_context *ctx, |
189 | struct timespec *t, unsigned int *serial); | 189 | struct timespec *t, unsigned int *serial); |
190 | extern int audit_set_loginuid(struct audit_context *ctx, uid_t loginuid); | 190 | extern int audit_set_loginuid(struct task_struct *task, uid_t loginuid); |
191 | extern uid_t audit_get_loginuid(struct audit_context *ctx); | 191 | extern uid_t audit_get_loginuid(struct audit_context *ctx); |
192 | extern int audit_ipc_perms(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode); | 192 | extern int audit_ipc_perms(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode); |
193 | #else | 193 | #else |