From 22ee5ae151fa991cf23dbf1b3efb5a0d6fb9b092 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 10 Oct 2025 02:23:34 +0900 Subject: internal/app: filter ops in implementation This is cleaner and less error-prone, and should also result in negligibly less memory allocation. Signed-off-by: Ophestra --- internal/app/shim.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/app/shim.go') diff --git a/internal/app/shim.go b/internal/app/shim.go index 27305e66..9cf515c8 100644 --- a/internal/app/shim.go +++ b/internal/app/shim.go @@ -48,11 +48,7 @@ type shimParams struct { } // valid checks shimParams to be safe for use. -func (p *shimParams) valid() bool { - return p != nil && - p.Ops != nil && - p.PrivPID > 0 -} +func (p *shimParams) valid() bool { return p != nil && p.PrivPID > 0 } // ShimMain is the main function of the shim process and runs as the unconstrained target user. func ShimMain() { -- cgit v1.3.1