diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 21:08:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 21:08:10 -0500 |
commit | 6dd9158ae8577372aa433e6b0eae3c3d4caa5439 (patch) | |
tree | aa097a9f9ea6206d668ac924460ad1a5d64e751c /net/xfrm/xfrm_policy.c | |
parent | 90804ed61f24712975fa12f8a1fc12cd46ef7d59 (diff) | |
parent | f3411cb2b2e396a41ed3a439863f028db7140a34 (diff) |
Merge git://git.infradead.org/users/eparis/audit
Pull audit update from Eric Paris:
"Again we stayed pretty well contained inside the audit system.
Venturing out was fixing a couple of function prototypes which were
inconsistent (didn't hurt anything, but we used the same value as an
int, uint, u32, and I think even a long in a couple of places).
We also made a couple of minor changes to when a couple of LSMs called
the audit system. We hoped to add aarch64 audit support this go
round, but it wasn't ready.
I'm disappearing on vacation on Thursday. I should have internet
access, but it'll be spotty. If anything goes wrong please be sure to
cc rgb@redhat.com. He'll make fixing things his top priority"
* git://git.infradead.org/users/eparis/audit: (50 commits)
audit: whitespace fix in kernel-parameters.txt
audit: fix location of __net_initdata for audit_net_ops
audit: remove pr_info for every network namespace
audit: Modify a set of system calls in audit class definitions
audit: Convert int limit uses to u32
audit: Use more current logging style
audit: Use hex_byte_pack_upper
audit: correct a type mismatch in audit_syscall_exit()
audit: reorder AUDIT_TTY_SET arguments
audit: rework AUDIT_TTY_SET to only grab spin_lock once
audit: remove needless switch in AUDIT_SET
audit: use define's for audit version
audit: documentation of audit= kernel parameter
audit: wait_for_auditd rework for readability
audit: update MAINTAINERS
audit: log task info on feature change
audit: fix incorrect set of audit_sock
audit: print error message when fail to create audit socket
audit: fix dangling keywords in audit_log_set_loginuid() output
audit: log on errors from filter user rules
...
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 9a91f7431c41..0d49945d0b9e 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -2906,12 +2906,12 @@ static void xfrm_policy_fini(struct net *net) | |||
2906 | flush_work(&net->xfrm.policy_hash_work); | 2906 | flush_work(&net->xfrm.policy_hash_work); |
2907 | #ifdef CONFIG_XFRM_SUB_POLICY | 2907 | #ifdef CONFIG_XFRM_SUB_POLICY |
2908 | audit_info.loginuid = INVALID_UID; | 2908 | audit_info.loginuid = INVALID_UID; |
2909 | audit_info.sessionid = -1; | 2909 | audit_info.sessionid = (unsigned int)-1; |
2910 | audit_info.secid = 0; | 2910 | audit_info.secid = 0; |
2911 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_SUB, &audit_info); | 2911 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_SUB, &audit_info); |
2912 | #endif | 2912 | #endif |
2913 | audit_info.loginuid = INVALID_UID; | 2913 | audit_info.loginuid = INVALID_UID; |
2914 | audit_info.sessionid = -1; | 2914 | audit_info.sessionid = (unsigned int)-1; |
2915 | audit_info.secid = 0; | 2915 | audit_info.secid = 0; |
2916 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_MAIN, &audit_info); | 2916 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_MAIN, &audit_info); |
2917 | 2917 | ||
@@ -3017,7 +3017,7 @@ static void xfrm_audit_common_policyinfo(struct xfrm_policy *xp, | |||
3017 | } | 3017 | } |
3018 | 3018 | ||
3019 | void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, | 3019 | void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, |
3020 | kuid_t auid, u32 sessionid, u32 secid) | 3020 | kuid_t auid, unsigned int sessionid, u32 secid) |
3021 | { | 3021 | { |
3022 | struct audit_buffer *audit_buf; | 3022 | struct audit_buffer *audit_buf; |
3023 | 3023 | ||
@@ -3032,7 +3032,7 @@ void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, | |||
3032 | EXPORT_SYMBOL_GPL(xfrm_audit_policy_add); | 3032 | EXPORT_SYMBOL_GPL(xfrm_audit_policy_add); |
3033 | 3033 | ||
3034 | void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, | 3034 | void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, |
3035 | kuid_t auid, u32 sessionid, u32 secid) | 3035 | kuid_t auid, unsigned int sessionid, u32 secid) |
3036 | { | 3036 | { |
3037 | struct audit_buffer *audit_buf; | 3037 | struct audit_buffer *audit_buf; |
3038 | 3038 | ||