diff options
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 680bb928343b..94338abf76f5 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -992,7 +992,7 @@ void audit_inode(const char *name, const struct inode *inode) | |||
992 | context->names[idx].rdev = inode->i_rdev; | 992 | context->names[idx].rdev = inode->i_rdev; |
993 | } | 993 | } |
994 | 994 | ||
995 | void audit_get_stamp(struct audit_context *ctx, | 995 | int audit_get_stamp(struct audit_context *ctx, |
996 | struct timespec *t, unsigned int *serial) | 996 | struct timespec *t, unsigned int *serial) |
997 | { | 997 | { |
998 | if (ctx) { | 998 | if (ctx) { |
@@ -1000,10 +1000,9 @@ void audit_get_stamp(struct audit_context *ctx, | |||
1000 | t->tv_nsec = ctx->ctime.tv_nsec; | 1000 | t->tv_nsec = ctx->ctime.tv_nsec; |
1001 | *serial = ctx->serial; | 1001 | *serial = ctx->serial; |
1002 | ctx->auditable = 1; | 1002 | ctx->auditable = 1; |
1003 | } else { | 1003 | return 1; |
1004 | *t = CURRENT_TIME; | ||
1005 | *serial = 0; | ||
1006 | } | 1004 | } |
1005 | return 0; | ||
1007 | } | 1006 | } |
1008 | 1007 | ||
1009 | extern int audit_set_type(struct audit_buffer *ab, int type); | 1008 | extern int audit_set_type(struct audit_buffer *ab, int type); |