aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/shim
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/shim
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/shim')
-rw-r--r--internal/shim/parent.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/shim/parent.go b/internal/shim/parent.go
index 2ac9d6ae..e0696671 100644
--- a/internal/shim/parent.go
+++ b/internal/shim/parent.go
@@ -37,10 +37,8 @@ type Shim struct {
payload *Payload
}
-func New(executable string, uid uint32, socket string, wl *Wayland, payload *Payload) *Shim {
- // checkPid is impossible at the moment since there is no way to obtain shim's pid
- // this feature is disabled here until sudo is replaced by fortify suid wrapper
- return &Shim{uid: uid, executable: executable, socket: socket, wl: wl, payload: payload}
+func New(executable string, uid uint32, socket string, wl *Wayland, payload *Payload, checkPid bool) *Shim {
+ return &Shim{uid: uid, executable: executable, socket: socket, wl: wl, payload: payload, checkPid: checkPid}
}
func (s *Shim) String() string {