Hi,
I have wrote small binary that should be executed during “sudo” request. What I dont like is that pam_exec will write in /var/log/secure something like: pam_exec(sudo:auth): /…/binary.so failed: exit code 1
I would rather control what is written in /var/log/secure and if needed connect somehow to PAM module without PAM_Exec, if you have some recommendations for GO library or how to accomplish that?
Thank you.