Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
firelizzard
4 years agoNew Contributor
Calling the CLI from a Go program
I'm working on a Go program and I want to call op , using the PolKit/app integration so a dialog appears prompting the user to type in their password. This works when I run op directly from my she...
firelizzard
4 years agoNew Contributor
Jack_P_1P, thanks for the update. I have a workaround (chmod root:root) but the behavior is odd and it does make it considerably harder to use a debugger on my executable. I tried to reproduce it with a test executable in place of op but I could not replicate the owner-dependent behavior. I tried running op with strace, but that gave me the same error. I read that ptrace no longer respects setuid/setgid bits because of potential vulnerabilities, but I expected to see a failed setgid syscall, which I did not see. So I guess op is using the effective GID or doing some other magic.