remove checking for parent process
Signed-off-by: Tin Lai <tin@tinyiu.com>
This commit is contained in:
parent
1317e1e037
commit
49ee2cbe29
|
@ -55,7 +55,7 @@ func (s *SessionStore) CreateSession(pid int, parentpid int, grandparentpid int,
|
||||||
|
|
||||||
func (s *SessionStore) verifySession(ctx sockets.CallingContext, sessionType SessionType) bool {
|
func (s *SessionStore) verifySession(ctx sockets.CallingContext, sessionType SessionType) bool {
|
||||||
for _, session := range s.Store {
|
for _, session := range s.Store {
|
||||||
if session.ParentPid == ctx.ParentProcessPid && session.GrandParentPid == ctx.GrandParentProcessPid && session.sessionType == sessionType {
|
if session.sessionType == sessionType {
|
||||||
if session.Expires.After(time.Now()) {
|
if session.Expires.After(time.Now()) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue