mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Create exec dir for safe working dir for processes
This commit is contained in:
parent
87a55541b2
commit
dd837e40e2
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,8 @@ package ui
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/safing/portbase/dataroot"
|
||||
|
||||
resources "github.com/cookieo9/resources-go"
|
||||
"github.com/safing/portbase/log"
|
||||
"github.com/safing/portbase/modules"
|
||||
|
@ -27,6 +29,11 @@ func prep() error {
|
|||
}
|
||||
|
||||
func start() error {
|
||||
err := dataroot.Root().ChildDir("exec", 0777).Ensure()
|
||||
if err != nil {
|
||||
log.Warningf("ui: failed to create safe exec dir: %s", err)
|
||||
}
|
||||
|
||||
return module.RegisterEventHook("ui", eventReload, "reload assets", reloadUI)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue