forked from security/hakurei
internal/app: do not offset base value
This value is applied to the shim, it is incorrect to offset the base value as well. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -186,13 +186,12 @@ func (k *outcome) finalise(ctx context.Context, msg container.Msg, id *state.ID,
|
||||
}
|
||||
|
||||
// enforce bounds and default early
|
||||
kp.waitDelay = shimWaitTimeout
|
||||
if s.Container.WaitDelay <= 0 {
|
||||
kp.waitDelay += DefaultShimWaitDelay
|
||||
} else if s.Container.WaitDelay > MaxShimWaitDelay {
|
||||
kp.waitDelay += MaxShimWaitDelay
|
||||
kp.waitDelay = hst.DefaultWaitDelay
|
||||
} else if s.Container.WaitDelay > hst.MaxWaitDelay {
|
||||
kp.waitDelay = hst.MaxWaitDelay
|
||||
} else {
|
||||
kp.waitDelay += s.Container.WaitDelay
|
||||
kp.waitDelay = s.Container.WaitDelay
|
||||
}
|
||||
|
||||
if s.Container.MapRealUID {
|
||||
|
||||
Reference in New Issue
Block a user