aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/start.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-27 23:49:37 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-28 00:02:55 +0900
commit60e91b9b0f2913265795893ea693f82991b69737 (patch)
tree562425ff4e75434a4d1220786484010e6540a4fe /internal/app/start.go
parentd9cb2a9f2b2b80344f5f72c8e5e370575119a8c1 (diff)
shim: expose checkPid in constructor
This will be supported soon when launching via fsu. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/start.go')
-rw-r--r--internal/app/start.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/app/start.go b/internal/app/start.go
index ea216018..bac3f128 100644
--- a/internal/app/start.go
+++ b/internal/app/start.go
@@ -61,6 +61,9 @@ func (a *app) Start() error {
Verbose: fmsg.Verbose(),
},
+ // checkPid is impossible at the moment since there is no reliable way to obtain shim's pid
+ // this feature is disabled here until sudo is replaced by fortify suid wrapper
+ false,
)
// startup will go ahead, commit system setup
@@ -105,7 +108,7 @@ type StateStoreError struct {
}
func (e *StateStoreError) equiv(a ...any) error {
- if e.Inner == true && e.DoErr == nil && e.InnerErr == nil && e.Err == nil {
+ if e.Inner && e.DoErr == nil && e.InnerErr == nil && e.Err == nil {
return nil
} else {
return fmsg.WrapErrorSuffix(e, a...)