When using a private socket certmonger has to directly
read the UID and PID from the client rather than querying
the dbus connection.
The variable passed into the method calls was not being
initialized with these values. Confusingly the values that
the memory pointed to were the two reversed (uid=pid/pid=uid).
This broke the pre_certsave_uid and post_certsave_uid
options by saving invalid values therefore they could not
be triggered.
When using a private socket certmonger has to directly
read the UID and PID from the client rather than querying
the dbus connection.
The variable passed into the method calls was not being
initialized with these values. Confusingly the values that
the memory pointed to were the two reversed (uid=pid/pid=uid).
This broke the pre_certsave_uid and post_certsave_uid
options by saving invalid values therefore they could not
be triggered.
Fixes: https://pagure.io/certmonger/issue/298
Signed-off-by: Rob Crittenden rcritten@redhat.com