Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 584
b: refs/heads/master
c: d812ddb
h: refs/heads/master
v: v3
  • Loading branch information
Steve Grubb authored and unknown committed Apr 29, 2005
1 parent f98cf4d commit 3f0d416
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fd6f58ba6efc82ea2c9c2630f7ff5ed9eeaf34a
refs/heads/master: d812ddbb89e323d054a7d073466225966c8350c8
2 changes: 1 addition & 1 deletion trunk/include/linux/audit.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ extern void audit_inode(const char *name, const struct inode *inode);
extern int audit_receive_filter(int type, int pid, int uid, int seq,
void *data);
extern void audit_get_stamp(struct audit_context *ctx,
struct timespec *t, int *serial);
struct timespec *t, unsigned int *serial);
extern int audit_set_loginuid(struct audit_context *ctx, uid_t loginuid);
extern uid_t audit_get_loginuid(struct audit_context *ctx);
extern int audit_ipc_perms(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode);
Expand Down
6 changes: 4 additions & 2 deletions trunk/kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx)
struct audit_buffer *ab = NULL;
unsigned long flags;
struct timespec t;
int serial = 0;
unsigned int serial;

if (!audit_initialized)
return NULL;
Expand Down Expand Up @@ -669,8 +669,10 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx)
audit_get_stamp(ab->ctx, &t, &serial);
else
#endif
{
t = CURRENT_TIME;

serial = 0;
}
audit_log_format(ab, "audit(%lu.%03lu:%u): ",
t.tv_sec, t.tv_nsec/1000000, serial);
return ab;
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ void audit_inode(const char *name, const struct inode *inode)
}

void audit_get_stamp(struct audit_context *ctx,
struct timespec *t, int *serial)
struct timespec *t, unsigned int *serial)
{
if (ctx) {
t->tv_sec = ctx->ctime.tv_sec;
Expand Down

0 comments on commit 3f0d416

Please sign in to comment.