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 /include | |
| 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 'include')
| -rw-r--r-- | include/linux/init_task.h | 2 | ||||
| -rw-r--r-- | include/net/netlabel.h | 2 | ||||
| -rw-r--r-- | include/net/xfrm.h | 20 |
3 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 5cd0f0949927..a143df5ee548 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
| @@ -95,7 +95,7 @@ extern struct group_info init_groups; | |||
| 95 | #ifdef CONFIG_AUDITSYSCALL | 95 | #ifdef CONFIG_AUDITSYSCALL |
| 96 | #define INIT_IDS \ | 96 | #define INIT_IDS \ |
| 97 | .loginuid = INVALID_UID, \ | 97 | .loginuid = INVALID_UID, \ |
| 98 | .sessionid = -1, | 98 | .sessionid = (unsigned int)-1, |
| 99 | #else | 99 | #else |
| 100 | #define INIT_IDS | 100 | #define INIT_IDS |
| 101 | #endif | 101 | #endif |
diff --git a/include/net/netlabel.h b/include/net/netlabel.h index 2c95d55f7914..97e6dcaf12bb 100644 --- a/include/net/netlabel.h +++ b/include/net/netlabel.h | |||
| @@ -111,7 +111,7 @@ struct cipso_v4_doi; | |||
| 111 | struct netlbl_audit { | 111 | struct netlbl_audit { |
| 112 | u32 secid; | 112 | u32 secid; |
| 113 | kuid_t loginuid; | 113 | kuid_t loginuid; |
| 114 | u32 sessionid; | 114 | unsigned int sessionid; |
| 115 | }; | 115 | }; |
| 116 | 116 | ||
| 117 | /* | 117 | /* |
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index e253bf0cc7ef..f8d32b908423 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
| @@ -679,7 +679,7 @@ struct xfrm_spi_skb_cb { | |||
| 679 | struct xfrm_audit { | 679 | struct xfrm_audit { |
| 680 | u32 secid; | 680 | u32 secid; |
| 681 | kuid_t loginuid; | 681 | kuid_t loginuid; |
| 682 | u32 sessionid; | 682 | unsigned int sessionid; |
| 683 | }; | 683 | }; |
| 684 | 684 | ||
| 685 | #ifdef CONFIG_AUDITSYSCALL | 685 | #ifdef CONFIG_AUDITSYSCALL |
| @@ -697,7 +697,7 @@ static inline struct audit_buffer *xfrm_audit_start(const char *op) | |||
| 697 | return audit_buf; | 697 | return audit_buf; |
| 698 | } | 698 | } |
| 699 | 699 | ||
| 700 | static inline void xfrm_audit_helper_usrinfo(kuid_t auid, u32 ses, u32 secid, | 700 | static inline void xfrm_audit_helper_usrinfo(kuid_t auid, unsigned int ses, u32 secid, |
| 701 | struct audit_buffer *audit_buf) | 701 | struct audit_buffer *audit_buf) |
| 702 | { | 702 | { |
| 703 | char *secctx; | 703 | char *secctx; |
| @@ -714,13 +714,13 @@ static inline void xfrm_audit_helper_usrinfo(kuid_t auid, u32 ses, u32 secid, | |||
| 714 | } | 714 | } |
| 715 | 715 | ||
| 716 | extern void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, | 716 | extern void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, |
| 717 | kuid_t auid, u32 ses, u32 secid); | 717 | kuid_t auid, unsigned int ses, u32 secid); |
| 718 | extern void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, | 718 | extern void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, |
| 719 | kuid_t auid, u32 ses, u32 secid); | 719 | kuid_t auid, unsigned int ses, u32 secid); |
| 720 | extern void xfrm_audit_state_add(struct xfrm_state *x, int result, | 720 | extern void xfrm_audit_state_add(struct xfrm_state *x, int result, |
| 721 | kuid_t auid, u32 ses, u32 secid); | 721 | kuid_t auid, unsigned int ses, u32 secid); |
| 722 | extern void xfrm_audit_state_delete(struct xfrm_state *x, int result, | 722 | extern void xfrm_audit_state_delete(struct xfrm_state *x, int result, |
| 723 | kuid_t auid, u32 ses, u32 secid); | 723 | kuid_t auid, unsigned int ses, u32 secid); |
| 724 | extern void xfrm_audit_state_replay_overflow(struct xfrm_state *x, | 724 | extern void xfrm_audit_state_replay_overflow(struct xfrm_state *x, |
| 725 | struct sk_buff *skb); | 725 | struct sk_buff *skb); |
| 726 | extern void xfrm_audit_state_replay(struct xfrm_state *x, | 726 | extern void xfrm_audit_state_replay(struct xfrm_state *x, |
| @@ -733,22 +733,22 @@ extern void xfrm_audit_state_icvfail(struct xfrm_state *x, | |||
| 733 | #else | 733 | #else |
| 734 | 734 | ||
| 735 | static inline void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, | 735 | static inline void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, |
| 736 | kuid_t auid, u32 ses, u32 secid) | 736 | kuid_t auid, unsigned int ses, u32 secid) |
| 737 | { | 737 | { |
| 738 | } | 738 | } |
| 739 | 739 | ||
| 740 | static inline void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, | 740 | static inline void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, |
| 741 | kuid_t auid, u32 ses, u32 secid) | 741 | kuid_t auid, unsigned int ses, u32 secid) |
| 742 | { | 742 | { |
| 743 | } | 743 | } |
| 744 | 744 | ||
| 745 | static inline void xfrm_audit_state_add(struct xfrm_state *x, int result, | 745 | static inline void xfrm_audit_state_add(struct xfrm_state *x, int result, |
| 746 | kuid_t auid, u32 ses, u32 secid) | 746 | kuid_t auid, unsigned int ses, u32 secid) |
| 747 | { | 747 | { |
| 748 | } | 748 | } |
| 749 | 749 | ||
| 750 | static inline void xfrm_audit_state_delete(struct xfrm_state *x, int result, | 750 | static inline void xfrm_audit_state_delete(struct xfrm_state *x, int result, |
| 751 | kuid_t auid, u32 ses, u32 secid) | 751 | kuid_t auid, unsigned int ses, u32 secid) |
| 752 | { | 752 | { |
| 753 | } | 753 | } |
| 754 | 754 | ||
