Searched refs:audit_fd (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/core/ |
D | audit-fd.c | 18 static int audit_fd; variable 24 audit_fd = -EPERM; in get_audit_fd() 27 return audit_fd; in get_audit_fd() 30 audit_fd = audit_open(); in get_audit_fd() 32 if (audit_fd < 0) { in get_audit_fd() 36 audit_fd = errno ? -errno : -EINVAL; in get_audit_fd() 42 return audit_fd; in get_audit_fd() 47 if (initialized && audit_fd >= 0) in close_audit_fd() 48 safe_close(audit_fd); in close_audit_fd() 51 audit_fd = -ECONNRESET; in close_audit_fd()
|
D | manager.c | 3154 int audit_fd, r; in manager_send_unit_audit() local 3159 audit_fd = get_audit_fd(); in manager_send_unit_audit() 3160 if (audit_fd < 0) in manager_send_unit_audit() 3178 … if (audit_log_user_comm_message(audit_fd, type, msg, "systemd", NULL, NULL, NULL, success) < 0) { in manager_send_unit_audit()
|
/systemd-251/src/update-utmp/ |
D | update-utmp.c | 32 int audit_fd; member 41 if (c->audit_fd >= 0) in context_clear() 42 audit_close(c->audit_fd); in context_clear() 43 c->audit_fd = -1; in context_clear() 126 if (c->audit_fd >= 0) in on_reboot() 127 …if (audit_log_user_comm_message(c->audit_fd, AUDIT_SYSTEM_BOOT, "", "systemd-update-utmp", NULL, N… in on_reboot() 158 if (c->audit_fd >= 0) in on_shutdown() 159 …if (audit_log_user_comm_message(c->audit_fd, AUDIT_SYSTEM_SHUTDOWN, "", "systemd-update-utmp", NUL… in on_shutdown() 202 if (c->audit_fd >= 0) { in on_runlevel() 209 if (audit_log_user_comm_message(c->audit_fd, AUDIT_SYSTEM_RUNLEVEL, s, in on_runlevel() [all …]
|
/systemd-251/src/journal/ |
D | journald-audit.c | 508 if (s->audit_fd < 0) { in server_open_audit() 515 … s->audit_fd = socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, NETLINK_AUDIT); in server_open_audit() 516 if (s->audit_fd < 0) { in server_open_audit() 525 if (bind(s->audit_fd, &sa.sa, sizeof(sa.nl)) < 0) { in server_open_audit() 530 s->audit_fd = safe_close(s->audit_fd); in server_open_audit() 534 (void) fd_nonblock(s->audit_fd, true); in server_open_audit() 536 r = setsockopt_int(s->audit_fd, SOL_SOCKET, SO_PASSCRED, true); in server_open_audit() 540 …r = sd_event_add_io(s->event, &s->audit_event_source, s->audit_fd, EPOLLIN, server_process_datagra… in server_open_audit() 546 r = enable_audit(s->audit_fd, s->set_audit); in server_open_audit()
|
D | fuzz-journald.c | 14 .audit_fd = -1, in dummy_server_init()
|
D | journald-server.c | 1329 assert(fd == s->native_fd || fd == s->syslog_fd || fd == s->audit_fd); in server_process_datagram() 1402 assert(fd == s->audit_fd); in server_process_datagram() 2288 .audit_fd = -1, in server_init() 2425 if (s->audit_fd >= 0) in server_init() 2429 s->audit_fd = fd; in server_init() 2453 …no_sockets = s->native_fd < 0 && s->stdout_fd < 0 && s->syslog_fd < 0 && s->audit_fd < 0 && varlin… in server_init() 2478 if (s->audit_fd >= 0 || no_sockets) { in server_init() 2597 safe_close(s->audit_fd); in server_done()
|
D | journald-server.h | 70 int audit_fd; member
|