What's the return value of GetSessionPermission, kInvalidPerm, kStoredPermAllow and kStoredPermDeny? If this is right, line 329 is the case that the permission can't be found from session policy, right?