Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6cfee4c authored by Richard Guy Briggs's avatar Richard Guy Briggs Committed by Eric Paris
Browse files

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: default avatarGao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: default avatarRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent c2412d91
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -202,7 +202,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk)
	return tsk->loginuid;
	return tsk->loginuid;
}
}


static inline int audit_get_sessionid(struct task_struct *tsk)
static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
{
{
	return tsk->sessionid;
	return tsk->sessionid;
}
}
@@ -359,7 +359,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk)
{
{
	return INVALID_UID;
	return INVALID_UID;
}
}
static inline int audit_get_sessionid(struct task_struct *tsk)
static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
{
{
	return -1;
	return -1;
}
}