mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-27 20:42:13 +03:00
·Merge branch 'feature/selinux_setup'
This commit is contained in:
commit
55b3383fb9
@ -39,6 +39,16 @@ func setupPolkit() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
command3 := exec.Command("sudo", "chcon", "system_u:object_r:usr_t:s0", "/usr/share/polkit-1/actions/com.quexten.goldwarden.policy")
|
||||
err = command3.Run()
|
||||
if err != nil {
|
||||
fmt.Println("failed setting selinux context")
|
||||
fmt.Println(err.Error())
|
||||
} else {
|
||||
fmt.Println("Set selinux context successfully")
|
||||
fmt.Println("Might require a reboot to take effect!")
|
||||
}
|
||||
|
||||
fmt.Println("Polkit setup successfully")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user