Commit 5600b892 authored by Daniel Walker's avatar Daniel Walker Committed by Linus Torvalds

whitespace fixes: system auditing

Just removing white space at the end of lines.
Signed-off-by: default avatarDaniel Walker <dwalker@mvista.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bd3a8492
...@@ -664,11 +664,11 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) ...@@ -664,11 +664,11 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
if (sid) { if (sid) {
if (selinux_sid_to_string( if (selinux_sid_to_string(
sid, &ctx, &len)) { sid, &ctx, &len)) {
audit_log_format(ab, audit_log_format(ab,
" ssid=%u", sid); " ssid=%u", sid);
/* Maybe call audit_panic? */ /* Maybe call audit_panic? */
} else } else
audit_log_format(ab, audit_log_format(ab,
" subj=%s", ctx); " subj=%s", ctx);
kfree(ctx); kfree(ctx);
} }
...@@ -769,7 +769,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) ...@@ -769,7 +769,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
sig_data->pid = audit_sig_pid; sig_data->pid = audit_sig_pid;
memcpy(sig_data->ctx, ctx, len); memcpy(sig_data->ctx, ctx, len);
kfree(ctx); kfree(ctx);
audit_send_reply(NETLINK_CB(skb).pid, seq, AUDIT_SIGNAL_INFO, audit_send_reply(NETLINK_CB(skb).pid, seq, AUDIT_SIGNAL_INFO,
0, 0, sig_data, sizeof(*sig_data) + len); 0, 0, sig_data, sizeof(*sig_data) + len);
kfree(sig_data); kfree(sig_data);
break; break;
...@@ -1005,7 +1005,7 @@ unsigned int audit_serial(void) ...@@ -1005,7 +1005,7 @@ unsigned int audit_serial(void)
return ret; return ret;
} }
static inline void audit_get_stamp(struct audit_context *ctx, static inline void audit_get_stamp(struct audit_context *ctx,
struct timespec *t, unsigned int *serial) struct timespec *t, unsigned int *serial)
{ {
if (ctx) if (ctx)
...@@ -1056,7 +1056,7 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, ...@@ -1056,7 +1056,7 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask,
if (gfp_mask & __GFP_WAIT) if (gfp_mask & __GFP_WAIT)
reserve = 0; reserve = 0;
else else
reserve = 5; /* Allow atomic callers to go up to five reserve = 5; /* Allow atomic callers to go up to five
entries over the normal backlog limit */ entries over the normal backlog limit */
while (audit_backlog_limit while (audit_backlog_limit
...@@ -1319,7 +1319,7 @@ void audit_log_d_path(struct audit_buffer *ab, const char *prefix, ...@@ -1319,7 +1319,7 @@ void audit_log_d_path(struct audit_buffer *ab, const char *prefix,
if (IS_ERR(p)) { /* Should never happen since we send PATH_MAX */ if (IS_ERR(p)) { /* Should never happen since we send PATH_MAX */
/* FIXME: can we save some information here? */ /* FIXME: can we save some information here? */
audit_log_format(ab, "<too long>"); audit_log_format(ab, "<too long>");
} else } else
audit_log_untrustedstring(ab, p); audit_log_untrustedstring(ab, p);
kfree(path); kfree(path);
} }
...@@ -1365,7 +1365,7 @@ void audit_log_end(struct audit_buffer *ab) ...@@ -1365,7 +1365,7 @@ void audit_log_end(struct audit_buffer *ab)
* audit_log_vformat, and audit_log_end. It may be called * audit_log_vformat, and audit_log_end. It may be called
* in any context. * in any context.
*/ */
void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type,
const char *fmt, ...) const char *fmt, ...)
{ {
struct audit_buffer *ab; struct audit_buffer *ab;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment