aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/audit.h2
-rw-r--r--kernel/audit.c6
-rw-r--r--kernel/auditsc.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index fad0c1dc21a9..0467f2441b68 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -186,7 +186,7 @@ extern void audit_inode(const char *name, const struct inode *inode);
186extern int audit_receive_filter(int type, int pid, int uid, int seq, 186extern int audit_receive_filter(int type, int pid, int uid, int seq,
187 void *data); 187 void *data);
188extern void audit_get_stamp(struct audit_context *ctx, 188extern void audit_get_stamp(struct audit_context *ctx,
189 struct timespec *t, int *serial); 189 struct timespec *t, unsigned int *serial);
190extern int audit_set_loginuid(struct audit_context *ctx, uid_t loginuid); 190extern int audit_set_loginuid(struct audit_context *ctx, uid_t loginuid);
191extern uid_t audit_get_loginuid(struct audit_context *ctx); 191extern uid_t audit_get_loginuid(struct audit_context *ctx);
192extern int audit_ipc_perms(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode); 192extern int audit_ipc_perms(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode);
diff --git a/kernel/audit.c b/kernel/audit.c
index e7bff8000d23..aa35422c0c42 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -620,7 +620,7 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx)
620 struct audit_buffer *ab = NULL; 620 struct audit_buffer *ab = NULL;
621 unsigned long flags; 621 unsigned long flags;
622 struct timespec t; 622 struct timespec t;
623 int serial = 0; 623 unsigned int serial;
624 624
625 if (!audit_initialized) 625 if (!audit_initialized)
626 return NULL; 626 return NULL;
@@ -669,8 +669,10 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx)
669 audit_get_stamp(ab->ctx, &t, &serial); 669 audit_get_stamp(ab->ctx, &t, &serial);
670 else 670 else
671#endif 671#endif
672 {
672 t = CURRENT_TIME; 673 t = CURRENT_TIME;
673 674 serial = 0;
675 }
674 audit_log_format(ab, "audit(%lu.%03lu:%u): ", 676 audit_log_format(ab, "audit(%lu.%03lu:%u): ",
675 t.tv_sec, t.tv_nsec/1000000, serial); 677 t.tv_sec, t.tv_nsec/1000000, serial);
676 return ab; 678 return ab;
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 77e92592de57..49ecd707b953 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -992,7 +992,7 @@ void audit_inode(const char *name, const struct inode *inode)
992} 992}
993 993
994void audit_get_stamp(struct audit_context *ctx, 994void audit_get_stamp(struct audit_context *ctx,
995 struct timespec *t, int *serial) 995 struct timespec *t, unsigned int *serial)
996{ 996{
997 if (ctx) { 997 if (ctx) {
998 t->tv_sec = ctx->ctime.tv_sec; 998 t->tv_sec = ctx->ctime.tv_sec;