diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-11 01:43:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-11 01:44:38 +0200 |
commit | 4927fcae48de061393b3ce9c12d49f80d73fbf1d (patch) | |
tree | 4034f6843ab1ed8ca8e3d9acf87897a9fd592c5e /src/manager.h | |
parent | b95cf3629e8d78a0d28e71b0f5559fa9a8c038b5 (diff) |
audit,utmp: implement audit logic and rip utmp stuff out of the main daemon and into a helper binary
Diffstat (limited to 'src/manager.h')
-rw-r--r-- | src/manager.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/manager.h b/src/manager.h index a762dbc7c3..c1f787f854 100644 --- a/src/manager.h +++ b/src/manager.h @@ -185,6 +185,11 @@ struct Manager { * file system */ int pin_cgroupfs_fd; + /* Audit fd */ +#ifdef HAVE_AUDIT + int audit_fd; +#endif + /* Flags */ ManagerRunningAs running_as; ManagerExitCode exit_code:4; @@ -193,8 +198,6 @@ struct Manager { bool dispatching_run_queue:1; bool dispatching_dbus_queue:1; - bool utmp_reboot_written:1; - int n_deserializing; bool show_status; @@ -234,9 +237,6 @@ unsigned manager_dispatch_dbus_queue(Manager *m); int manager_loop(Manager *m); -void manager_write_utmp_reboot(Manager *m); -void manager_write_utmp_runlevel(Manager *m, Unit *t); - void manager_dispatch_bus_name_owner_changed(Manager *m, const char *name, const char* old_owner, const char *new_owner); void manager_dispatch_bus_query_pid_done(Manager *m, const char *name, pid_t pid); @@ -251,6 +251,8 @@ bool manager_is_booting_or_shutting_down(Manager *m); void manager_reset_maintenance(Manager *m); +void manager_send_unit_audit(Manager *m, Unit *u, int type, bool success); + const char *manager_running_as_to_string(ManagerRunningAs i); ManagerRunningAs manager_running_as_from_string(const char *s); |