diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2013-11-26 18:01:36 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-01-13 22:30:32 -0500 |
commit | b6cfee4cce25d8d2cc06c69f0de2b61d4b2249b3 (patch) | |
tree | fff0a0c9714ba0846fd691aa1c95f6f4f24e4e07 | |
parent | c2412d91c68426e22add16550f97ae5cd988a159 (diff) |
audit: fix incorrect type of sessionid
The type of task->sessionid is unsigned int, the return
type of audit_get_sessionid should be consistent with it.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
-rw-r--r-- | include/linux/audit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 9185bfa1c78b..1690f956bff5 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -202,7 +202,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk) | |||
202 | return tsk->loginuid; | 202 | return tsk->loginuid; |
203 | } | 203 | } |
204 | 204 | ||
205 | static inline int audit_get_sessionid(struct task_struct *tsk) | 205 | static inline unsigned int audit_get_sessionid(struct task_struct *tsk) |
206 | { | 206 | { |
207 | return tsk->sessionid; | 207 | return tsk->sessionid; |
208 | } | 208 | } |
@@ -359,7 +359,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk) | |||
359 | { | 359 | { |
360 | return INVALID_UID; | 360 | return INVALID_UID; |
361 | } | 361 | } |
362 | static inline int audit_get_sessionid(struct task_struct *tsk) | 362 | static inline unsigned int audit_get_sessionid(struct task_struct *tsk) |
363 | { | 363 | { |
364 | return -1; | 364 | return -1; |
365 | } | 365 | } |