X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Faudit.h;h=6de331c73e5f8b4d341a4680be9c8a35c3c31a42;hb=b733fbe7a0214eb43e402db7179697bf9c0975c1;hp=fb5f1b513ebcfb88e9246710ba5318e0c2398a97;hpb=81295bb5aced5d5350db11b0e9bb284e22d2ac37;p=elogind.git diff --git a/src/shared/audit.h b/src/shared/audit.h index fb5f1b513..6de331c73 100644 --- a/src/shared/audit.h +++ b/src/shared/audit.h @@ -21,12 +21,13 @@ along with systemd; If not, see . ***/ -#include "sd-bus.h" -#include "job.h" +#include +#include +#include -extern const sd_bus_vtable bus_job_vtable[]; +#define AUDIT_SESSION_INVALID ((uint32_t) -1) -int bus_job_method_cancel(sd_bus_message *message, void *job, sd_bus_error *error); +int audit_session_from_pid(pid_t pid, uint32_t *id); +int audit_loginuid_from_pid(pid_t pid, uid_t *uid); -void bus_job_send_change_signal(Job *j); -void bus_job_send_removed_signal(Job *j); +bool use_audit(void);