diff options
author | Eric Paris <eparis@redhat.com> | 2013-11-27 17:35:17 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-01-13 22:31:46 -0500 |
commit | 4440e8548153e9e6d56db9abe6f3bc0e5b9eb74f (patch) | |
tree | 1752c5edd77a746fdb2aad2806b31fbe4dd39a76 /net/xfrm/xfrm_policy.c | |
parent | ff235f51a138fc61e1a22dcb8b072d9c78c2a8cc (diff) |
audit: convert all sessionid declaration to unsigned int
Right now the sessionid value in the kernel is a combination of u32,
int, and unsigned int. Just use unsigned int throughout.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
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 76e1873811d4..767c74a91db3 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -2899,12 +2899,12 @@ static void xfrm_policy_fini(struct net *net) | |||
2899 | flush_work(&net->xfrm.policy_hash_work); | 2899 | flush_work(&net->xfrm.policy_hash_work); |
2900 | #ifdef CONFIG_XFRM_SUB_POLICY | 2900 | #ifdef CONFIG_XFRM_SUB_POLICY |
2901 | audit_info.loginuid = INVALID_UID; | 2901 | audit_info.loginuid = INVALID_UID; |
2902 | audit_info.sessionid = -1; | 2902 | audit_info.sessionid = (unsigned int)-1; |
2903 | audit_info.secid = 0; | 2903 | audit_info.secid = 0; |
2904 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_SUB, &audit_info); | 2904 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_SUB, &audit_info); |
2905 | #endif | 2905 | #endif |
2906 | audit_info.loginuid = INVALID_UID; | 2906 | audit_info.loginuid = INVALID_UID; |
2907 | audit_info.sessionid = -1; | 2907 | audit_info.sessionid = (unsigned int)-1; |
2908 | audit_info.secid = 0; | 2908 | audit_info.secid = 0; |
2909 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_MAIN, &audit_info); | 2909 | xfrm_policy_flush(net, XFRM_POLICY_TYPE_MAIN, &audit_info); |
2910 | 2910 | ||
@@ -3010,7 +3010,7 @@ static void xfrm_audit_common_policyinfo(struct xfrm_policy *xp, | |||
3010 | } | 3010 | } |
3011 | 3011 | ||
3012 | void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, | 3012 | void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, |
3013 | kuid_t auid, u32 sessionid, u32 secid) | 3013 | kuid_t auid, unsigned int sessionid, u32 secid) |
3014 | { | 3014 | { |
3015 | struct audit_buffer *audit_buf; | 3015 | struct audit_buffer *audit_buf; |
3016 | 3016 | ||
@@ -3025,7 +3025,7 @@ void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, | |||
3025 | EXPORT_SYMBOL_GPL(xfrm_audit_policy_add); | 3025 | EXPORT_SYMBOL_GPL(xfrm_audit_policy_add); |
3026 | 3026 | ||
3027 | void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, | 3027 | void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, |
3028 | kuid_t auid, u32 sessionid, u32 secid) | 3028 | kuid_t auid, unsigned int sessionid, u32 secid) |
3029 | { | 3029 | { |
3030 | struct audit_buffer *audit_buf; | 3030 | struct audit_buffer *audit_buf; |
3031 | 3031 | ||