Skip to content

Commit

Permalink
·Merge branch 'feature/selinux_setup'
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Dec 21, 2023
2 parents cd30c6b + e81ae3f commit 55b3383
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/setup_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 55b3383

Please sign in to comment.