diff options
Diffstat (limited to 'src/grp-journal')
-rw-r--r-- | src/grp-journal/grp-remote/microhttpd-util.c | 328 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/microhttpd-util.h | 60 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-gatewayd/Makefile | 15 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-gatewayd/journal-gatewayd.c | 22 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-remote/Makefile | 19 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-parse.c | 10 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-write.c | 2 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.c | 32 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.h | 4 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-upload/Makefile | 3 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-upload/journal-upload-journal.c | 8 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.c | 28 | ||||
-rw-r--r-- | src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.h | 2 | ||||
-rw-r--r-- | src/grp-journal/journalctl/Makefile | 1 | ||||
-rw-r--r-- | src/grp-journal/journalctl/journalctl.c | 52 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/Makefile | 32 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-audit.h (renamed from src/grp-journal/libjournal-core/journald-audit.h) | 2 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-console.h (renamed from src/grp-journal/libjournal-core/journald-console.h) | 0 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-kmsg.h (renamed from src/grp-journal/libjournal-core/journald-kmsg.h) | 0 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-native.h (renamed from src/grp-journal/libjournal-core/journald-native.h) | 0 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-rate-limit.h (renamed from src/grp-journal/libjournal-core/journald-rate-limit.h) | 2 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-server.h (renamed from src/grp-journal/libjournal-core/journald-server.h) | 4 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-stream.h (renamed from src/grp-journal/libjournal-core/journald-stream.h) | 2 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-syslog.h (renamed from src/grp-journal/libjournal-core/journald-syslog.h) | 0 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/include/journal-core/journald-wall.h (renamed from src/grp-journal/libjournal-core/journald-wall.h) | 0 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/Makefile | 58 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-audit.c (renamed from src/grp-journal/libjournal-core/journald-audit.c) | 15 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-console.c (renamed from src/grp-journal/libjournal-core/journald-console.c) | 23 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-gperf.gperf (renamed from src/grp-journal/libjournal-core/journald-gperf.gperf) | 5 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-kmsg.c (renamed from src/grp-journal/libjournal-core/journald-kmsg.c) | 23 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-native.c (renamed from src/grp-journal/libjournal-core/journald-native.c) | 33 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-rate-limit.c (renamed from src/grp-journal/libjournal-core/journald-rate-limit.c) | 15 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-server.c (renamed from src/grp-journal/libjournal-core/journald-server.c) | 71 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-stream.c (renamed from src/grp-journal/libjournal-core/journald-stream.c) | 39 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-syslog.c (renamed from src/grp-journal/libjournal-core/journald-syslog.c) | 31 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/src/journald-wall.c (renamed from src/grp-journal/libjournal-core/journald-wall.c) | 15 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-audit-type.c (renamed from src/grp-journal/libjournal-core/test-audit-type.c) | 0 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-catalog.c (renamed from src/grp-journal/libjournal-core/test-catalog.c) | 14 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-compress-benchmark.c (renamed from src/grp-journal/libjournal-core/test-compress-benchmark.c) | 12 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-compress.c (renamed from src/grp-journal/libjournal-core/test-compress.c) | 12 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-enum.c (renamed from src/grp-journal/libjournal-core/test-journal-enum.c) | 4 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-flush.c (renamed from src/grp-journal/libjournal-core/test-journal-flush.c) | 6 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-init.c (renamed from src/grp-journal/libjournal-core/test-journal-init.c) | 8 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-interleaving.c (renamed from src/grp-journal/libjournal-core/test-journal-interleaving.c) | 10 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-match.c (renamed from src/grp-journal/libjournal-core/test-journal-match.c) | 8 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-send.c (renamed from src/grp-journal/libjournal-core/test-journal-send.c) | 2 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-stream.c (renamed from src/grp-journal/libjournal-core/test-journal-stream.c) | 12 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-syslog.c (renamed from src/grp-journal/libjournal-core/test-journal-syslog.c) | 9 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal-verify.c (renamed from src/grp-journal/libjournal-core/test-journal-verify.c) | 10 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-journal.c (renamed from src/grp-journal/libjournal-core/test-journal.c) | 4 | ||||
-rw-r--r-- | src/grp-journal/libjournal-core/test/test-mmap-cache.c (renamed from src/grp-journal/libjournal-core/test-mmap-cache.c) | 8 | ||||
-rw-r--r-- | src/grp-journal/systemd-cat/cat.c | 10 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/.gitignore (renamed from src/grp-journal/catalog/.gitignore) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/Makefile | 1 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/journald.c | 10 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.be.catalog.in (renamed from src/grp-journal/catalog/systemd.be.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.be@latin.catalog.in (renamed from src/grp-journal/catalog/systemd.be@latin.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.bg.catalog.in (renamed from src/grp-journal/catalog/systemd.bg.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.catalog.in (renamed from src/grp-journal/catalog/systemd.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.da.catalog.in (renamed from src/grp-journal/catalog/systemd.da.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.fr.catalog.in (renamed from src/grp-journal/catalog/systemd.fr.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.hr.catalog.in (renamed from src/grp-journal/catalog/systemd.hr.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.hu.catalog.in (renamed from src/grp-journal/catalog/systemd.hu.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.it.catalog.in (renamed from src/grp-journal/catalog/systemd.it.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.ko.catalog.in (renamed from src/grp-journal/catalog/systemd.ko.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.pl.catalog.in (renamed from src/grp-journal/catalog/systemd.pl.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.pt_BR.catalog.in (renamed from src/grp-journal/catalog/systemd.pt_BR.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.ru.catalog.in (renamed from src/grp-journal/catalog/systemd.ru.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.sr.catalog.in (renamed from src/grp-journal/catalog/systemd.sr.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.zh_CN.catalog.in (renamed from src/grp-journal/catalog/systemd.zh_CN.catalog.in) | 0 | ||||
-rw-r--r-- | src/grp-journal/systemd-journald/systemd.zh_TW.catalog.in (renamed from src/grp-journal/catalog/systemd.zh_TW.catalog.in) | 0 |
71 files changed, 355 insertions, 741 deletions
diff --git a/src/grp-journal/grp-remote/microhttpd-util.c b/src/grp-journal/grp-remote/microhttpd-util.c deleted file mode 100644 index 3fc5e13b71..0000000000 --- a/src/grp-journal/grp-remote/microhttpd-util.c +++ /dev/null @@ -1,328 +0,0 @@ -/*** - This file is part of systemd. - - Copyright 2012 Lennart Poettering - Copyright 2012 Zbigniew Jędrzejewski-Szmek - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. -***/ - -#include <stddef.h> -#include <stdio.h> -#include <string.h> - -#ifdef HAVE_GNUTLS -#include <gnutls/gnutls.h> -#include <gnutls/x509.h> -#endif - -#include "basic/alloc-util.h" -#include "basic/log.h" -#include "basic/macro.h" -#include "basic/string-util.h" -#include "basic/strv.h" -#include "basic/util.h" - -#include "microhttpd-util.h" - -void microhttpd_logger(void *arg, const char *fmt, va_list ap) { - char *f; - - f = strjoina("microhttpd: ", fmt); - - DISABLE_WARNING_FORMAT_NONLITERAL; - log_internalv(LOG_INFO, 0, NULL, 0, NULL, f, ap); - REENABLE_WARNING; -} - - -static int mhd_respond_internal(struct MHD_Connection *connection, - enum MHD_RequestTerminationCode code, - char *buffer, - size_t size, - enum MHD_ResponseMemoryMode mode) { - struct MHD_Response *response; - int r; - - assert(connection); - - response = MHD_create_response_from_buffer(size, buffer, mode); - if (!response) - return MHD_NO; - - log_debug("Queueing response %u: %s", code, buffer); - MHD_add_response_header(response, "Content-Type", "text/plain"); - r = MHD_queue_response(connection, code, response); - MHD_destroy_response(response); - - return r; -} - -int mhd_respond(struct MHD_Connection *connection, - enum MHD_RequestTerminationCode code, - const char *message) { - - return mhd_respond_internal(connection, code, - (char*) message, strlen(message), - MHD_RESPMEM_PERSISTENT); -} - -int mhd_respond_oom(struct MHD_Connection *connection) { - return mhd_respond(connection, MHD_HTTP_SERVICE_UNAVAILABLE, "Out of memory.\n"); -} - -int mhd_respondf(struct MHD_Connection *connection, - enum MHD_RequestTerminationCode code, - const char *format, ...) { - - char *m; - int r; - va_list ap; - - assert(connection); - assert(format); - - va_start(ap, format); - r = vasprintf(&m, format, ap); - va_end(ap); - - if (r < 0) - return respond_oom(connection); - - return mhd_respond_internal(connection, code, m, r, MHD_RESPMEM_MUST_FREE); -} - -#ifdef HAVE_GNUTLS - -static struct { - const char *const names[4]; - int level; - bool enabled; -} gnutls_log_map[] = { - { {"0"}, LOG_DEBUG }, - { {"1", "audit"}, LOG_WARNING, true}, /* gnutls session audit */ - { {"2", "assert"}, LOG_DEBUG }, /* gnutls assert log */ - { {"3", "hsk", "ext"}, LOG_DEBUG }, /* gnutls handshake log */ - { {"4", "rec"}, LOG_DEBUG }, /* gnutls record log */ - { {"5", "dtls"}, LOG_DEBUG }, /* gnutls DTLS log */ - { {"6", "buf"}, LOG_DEBUG }, - { {"7", "write", "read"}, LOG_DEBUG }, - { {"8"}, LOG_DEBUG }, - { {"9", "enc", "int"}, LOG_DEBUG }, -}; - -static void log_func_gnutls(int level, const char *message) { - assert_se(message); - - if (0 <= level && level < (int) ELEMENTSOF(gnutls_log_map)) { - if (gnutls_log_map[level].enabled) - log_internal(gnutls_log_map[level].level, 0, NULL, 0, NULL, "gnutls %d/%s: %s", level, gnutls_log_map[level].names[1], message); - } else { - log_debug("Received GNUTLS message with unknown level %d.", level); - log_internal(LOG_DEBUG, 0, NULL, 0, NULL, "gnutls: %s", message); - } -} - -static void log_reset_gnutls_level(void) { - int i; - - for (i = ELEMENTSOF(gnutls_log_map) - 1; i >= 0; i--) - if (gnutls_log_map[i].enabled) { - log_debug("Setting gnutls log level to %d", i); - gnutls_global_set_log_level(i); - break; - } -} - -static int log_enable_gnutls_category(const char *cat) { - unsigned i; - - if (streq(cat, "all")) { - for (i = 0; i < ELEMENTSOF(gnutls_log_map); i++) - gnutls_log_map[i].enabled = true; - log_reset_gnutls_level(); - return 0; - } else - for (i = 0; i < ELEMENTSOF(gnutls_log_map); i++) - if (strv_contains((char**)gnutls_log_map[i].names, cat)) { - gnutls_log_map[i].enabled = true; - log_reset_gnutls_level(); - return 0; - } - log_error("No such log category: %s", cat); - return -EINVAL; -} - -int setup_gnutls_logger(char **categories) { - char **cat; - int r; - - gnutls_global_set_log_function(log_func_gnutls); - - if (categories) { - STRV_FOREACH(cat, categories) { - r = log_enable_gnutls_category(*cat); - if (r < 0) - return r; - } - } else - log_reset_gnutls_level(); - - return 0; -} - -static int verify_cert_authorized(gnutls_session_t session) { - unsigned status; - gnutls_certificate_type_t type; - gnutls_datum_t out; - int r; - - r = gnutls_certificate_verify_peers2(session, &status); - if (r < 0) - return log_error_errno(r, "gnutls_certificate_verify_peers2 failed: %m"); - - type = gnutls_certificate_type_get(session); - r = gnutls_certificate_verification_status_print(status, type, &out, 0); - if (r < 0) - return log_error_errno(r, "gnutls_certificate_verification_status_print failed: %m"); - - log_debug("Certificate status: %s", out.data); - gnutls_free(out.data); - - return status == 0 ? 0 : -EPERM; -} - -static int get_client_cert(gnutls_session_t session, gnutls_x509_crt_t *client_cert) { - const gnutls_datum_t *pcert; - unsigned listsize; - gnutls_x509_crt_t cert; - int r; - - assert(session); - assert(client_cert); - - pcert = gnutls_certificate_get_peers(session, &listsize); - if (!pcert || !listsize) { - log_error("Failed to retrieve certificate chain"); - return -EINVAL; - } - - r = gnutls_x509_crt_init(&cert); - if (r < 0) { - log_error("Failed to initialize client certificate"); - return r; - } - - /* Note that by passing values between 0 and listsize here, you - can get access to the CA's certs */ - r = gnutls_x509_crt_import(cert, &pcert[0], GNUTLS_X509_FMT_DER); - if (r < 0) { - log_error("Failed to import client certificate"); - gnutls_x509_crt_deinit(cert); - return r; - } - - *client_cert = cert; - return 0; -} - -static int get_auth_dn(gnutls_x509_crt_t client_cert, char **buf) { - size_t len = 0; - int r; - - assert(buf); - assert(*buf == NULL); - - r = gnutls_x509_crt_get_dn(client_cert, NULL, &len); - if (r != GNUTLS_E_SHORT_MEMORY_BUFFER) { - log_error("gnutls_x509_crt_get_dn failed"); - return r; - } - - *buf = malloc(len); - if (!*buf) - return log_oom(); - - gnutls_x509_crt_get_dn(client_cert, *buf, &len); - return 0; -} - -static inline void gnutls_x509_crt_deinitp(gnutls_x509_crt_t *p) { - gnutls_x509_crt_deinit(*p); -} - -int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) { - const union MHD_ConnectionInfo *ci; - gnutls_session_t session; - _cleanup_(gnutls_x509_crt_deinitp) gnutls_x509_crt_t client_cert = NULL; - _cleanup_free_ char *buf = NULL; - int r; - - assert(connection); - assert(code); - - *code = 0; - - ci = MHD_get_connection_info(connection, - MHD_CONNECTION_INFO_GNUTLS_SESSION); - if (!ci) { - log_error("MHD_get_connection_info failed: session is unencrypted"); - *code = mhd_respond(connection, MHD_HTTP_FORBIDDEN, - "Encrypted connection is required"); - return -EPERM; - } - session = ci->tls_session; - assert(session); - - r = get_client_cert(session, &client_cert); - if (r < 0) { - *code = mhd_respond(connection, MHD_HTTP_UNAUTHORIZED, - "Authorization through certificate is required"); - return -EPERM; - } - - r = get_auth_dn(client_cert, &buf); - if (r < 0) { - *code = mhd_respond(connection, MHD_HTTP_UNAUTHORIZED, - "Failed to determine distinguished name from certificate"); - return -EPERM; - } - - log_debug("Connection from %s", buf); - - if (hostname) { - *hostname = buf; - buf = NULL; - } - - r = verify_cert_authorized(session); - if (r < 0) { - log_warning("Client is not authorized"); - *code = mhd_respond(connection, MHD_HTTP_UNAUTHORIZED, - "Client certificate not signed by recognized authority"); - } - return r; -} - -#else -int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) { - return -EPERM; -} - -int setup_gnutls_logger(char **categories) { - if (categories) - log_notice("Ignoring specified gnutls logging categories — gnutls not available."); - return 0; -} -#endif diff --git a/src/grp-journal/grp-remote/microhttpd-util.h b/src/grp-journal/grp-remote/microhttpd-util.h deleted file mode 100644 index 178e78f892..0000000000 --- a/src/grp-journal/grp-remote/microhttpd-util.h +++ /dev/null @@ -1,60 +0,0 @@ -#pragma once - -/*** - This file is part of systemd. - - Copyright 2012 Zbigniew Jędrzejewski-Szmek - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. -***/ - -#include <microhttpd.h> -#include <stdarg.h> - -#include "basic/macro.h" - -/* Compatiblity with libmicrohttpd < 0.9.38 */ -#ifndef MHD_HTTP_NOT_ACCEPTABLE -#define MHD_HTTP_NOT_ACCEPTABLE MHD_HTTP_METHOD_NOT_ACCEPTABLE -#endif - -#if MHD_VERSION < 0x00094203 -#define MHD_create_response_from_fd_at_offset64 MHD_create_response_from_fd_at_offset -#endif - -void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_(2, 0); - -/* respond_oom() must be usable with return, hence this form. */ -#define respond_oom(connection) log_oom(), mhd_respond_oom(connection) - -int mhd_respondf(struct MHD_Connection *connection, - unsigned code, - const char *format, ...) _printf_(3,4); - -int mhd_respond(struct MHD_Connection *connection, - unsigned code, - const char *message); - -int mhd_respond_oom(struct MHD_Connection *connection); - -int check_permissions(struct MHD_Connection *connection, int *code, char **hostname); - -/* Set gnutls internal logging function to a callback which uses our - * own logging framework. - * - * gnutls categories are additionally filtered by our internal log - * level, so it should be set fairly high to capture all potentially - * interesting events without overwhelming detail. - */ -int setup_gnutls_logger(char **categories); diff --git a/src/grp-journal/grp-remote/systemd-journal-gatewayd/Makefile b/src/grp-journal/grp-remote/systemd-journal-gatewayd/Makefile index 1daedbd8dd..723dfa7ac7 100644 --- a/src/grp-journal/grp-remote/systemd-journal-gatewayd/Makefile +++ b/src/grp-journal/grp-remote/systemd-journal-gatewayd/Makefile @@ -30,21 +30,12 @@ rootlibexec_PROGRAMS += \ systemd-journal-gatewayd systemd_journal_gatewayd_SOURCES = \ - src/journal-remote/journal-gatewayd.c \ - src/journal-remote/microhttpd-util.h \ - src/journal-remote/microhttpd-util.c + src/journal-remote/journal-gatewayd.c systemd_journal_gatewayd_LDADD = \ + libsystemd-internal.la \ libsystemd-shared.la \ - $(MICROHTTPD_LIBS) - -ifneq ($(HAVE_GNUTLS),) -systemd_journal_gatewayd_LDADD += \ - $(GNUTLS_LIBS) -endif # HAVE_GNUTLS - -systemd_journal_gatewayd_CFLAGS = \ - $(MICROHTTPD_CFLAGS) + libsystemd-microhttpd.la systemd_journal_gatewayd_CPPFLAGS = \ -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" diff --git a/src/grp-journal/grp-remote/systemd-journal-gatewayd/journal-gatewayd.c b/src/grp-journal/grp-remote/systemd-journal-gatewayd/journal-gatewayd.c index 76b241a14b..b92945455b 100644 --- a/src/grp-journal/grp-remote/systemd-journal-gatewayd/journal-gatewayd.c +++ b/src/grp-journal/grp-remote/systemd-journal-gatewayd/journal-gatewayd.c @@ -31,17 +31,17 @@ #include <systemd/sd-daemon.h> #include <systemd/sd-journal.h> -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/hostname-util.h" -#include "basic/log.h" -#include "basic/parse-util.h" -#include "basic/sigbus.h" -#include "basic/util.h" -#include "microhttpd-util.h" -#include "shared/bus-util.h" -#include "shared/logs-show.h" +#include "sd-bus/bus-util.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/hostname-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/sigbus.h" +#include "systemd-basic/util.h" +#include "systemd-microhttpd/microhttpd-util.h" +#include "systemd-shared/logs-show.h" #define JOURNAL_WAIT_TIMEOUT (10*USEC_PER_SEC) diff --git a/src/grp-journal/grp-remote/systemd-journal-remote/Makefile b/src/grp-journal/grp-remote/systemd-journal-remote/Makefile index ebfa101c97..601bad9b5f 100644 --- a/src/grp-journal/grp-remote/systemd-journal-remote/Makefile +++ b/src/grp-journal/grp-remote/systemd-journal-remote/Makefile @@ -36,28 +36,14 @@ systemd_journal_remote_SOURCES = \ src/journal-remote/journal-remote.c systemd_journal_remote_LDADD = \ + libsystemd-microhttpd.la \ libjournal-core.la -systemd_journal_remote_SOURCES += \ - src/journal-remote/microhttpd-util.h \ - src/journal-remote/microhttpd-util.c - -systemd_journal_remote_CFLAGS = \ - $(MICROHTTPD_CFLAGS) - -systemd_journal_remote_LDADD += \ - $(MICROHTTPD_LIBS) - ifneq ($(ENABLE_TMPFILES),) dist_tmpfiles_DATA += \ tmpfiles.d/systemd-remote.conf endif # ENABLE_TMPFILES -ifneq ($(HAVE_GNUTLS),) -systemd_journal_remote_LDADD += \ - $(GNUTLS_LIBS) -endif # HAVE_GNUTLS - # systemd-journal-remote make sense mostly with full crypto stack dist_systemunit_DATA += \ units/systemd-journal-remote.socket @@ -81,4 +67,7 @@ EXTRA_DIST += \ src/journal-remote/log-generator.py endif # HAVE_MICROHTTPD +sd.CPPFLAGS += -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" +sd.CPPFLAGS += -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" + include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-parse.c b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-parse.c index c71fedd816..fdfa692214 100644 --- a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-parse.c +++ b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-parse.c @@ -17,11 +17,11 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/parse-util.h" -#include "basic/string-util.h" -#include "journald-native.h" +#include "journal-core/journald-native.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/string-util.h" #include "journal-remote-parse.h" diff --git a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-write.c b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-write.c index 4e05eda103..31abdc76d2 100644 --- a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-write.c +++ b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote-write.c @@ -17,7 +17,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/alloc-util.h" +#include "systemd-basic/alloc-util.h" #include "journal-remote.h" diff --git a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.c b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.c index ac1ba30310..b77abfc184 100644 --- a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.c +++ b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.c @@ -33,23 +33,23 @@ #include <systemd/sd-daemon.h> -#include "basic/alloc-util.h" -#include "basic/def.h" -#include "basic/escape.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/macro.h" -#include "basic/parse-util.h" -#include "basic/signal-util.h" -#include "basic/socket-util.h" -#include "basic/stat-util.h" -#include "basic/stdio-util.h" -#include "basic/string-table.h" -#include "basic/string-util.h" -#include "basic/strv.h" -#include "journald-native.h" +#include "journal-core/journald-native.h" #include "sd-journal/journal-file.h" -#include "shared/conf-parser.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/def.h" +#include "systemd-basic/escape.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/signal-util.h" +#include "systemd-basic/socket-util.h" +#include "systemd-basic/stat-util.h" +#include "systemd-basic/stdio-util.h" +#include "systemd-basic/string-table.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/strv.h" +#include "systemd-shared/conf-parser.h" #include "journal-remote-write.h" #include "journal-remote.h" diff --git a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.h b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.h index 6abfc1019d..1c090ccdfc 100644 --- a/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.h +++ b/src/grp-journal/grp-remote/systemd-journal-remote/journal-remote.h @@ -21,8 +21,8 @@ #include <systemd/sd-event.h> -#include "basic/hashmap.h" -#include "microhttpd-util.h" +#include "systemd-basic/hashmap.h" +#include "systemd-microhttpd/microhttpd-util.h" #include "journal-remote-parse.h" #include "journal-remote-write.h" diff --git a/src/grp-journal/grp-remote/systemd-journal-upload/Makefile b/src/grp-journal/grp-remote/systemd-journal-upload/Makefile index acfcbd22df..bc272e52da 100644 --- a/src/grp-journal/grp-remote/systemd-journal-upload/Makefile +++ b/src/grp-journal/grp-remote/systemd-journal-upload/Makefile @@ -54,4 +54,7 @@ EXTRA_DIST += \ units/systemd-journal-upload.service.in \ src/journal-remote/journal-upload.conf.in +sd.CPPFLAGS += -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" +sd.CPPFLAGS += -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" + include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload-journal.c b/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload-journal.c index 61d287da97..3a5e450e35 100644 --- a/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload-journal.c +++ b/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload-journal.c @@ -22,10 +22,10 @@ #include <systemd/sd-daemon.h> -#include "basic/alloc-util.h" -#include "basic/log.h" -#include "basic/utf8.h" -#include "basic/util.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/utf8.h" +#include "systemd-basic/util.h" #include "journal-upload.h" diff --git a/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.c b/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.c index 82d8331e76..52964bd03a 100644 --- a/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.c +++ b/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.c @@ -25,20 +25,20 @@ #include <systemd/sd-daemon.h> -#include "basic/alloc-util.h" -#include "basic/def.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/formats-util.h" -#include "basic/glob-util.h" -#include "basic/log.h" -#include "basic/mkdir.h" -#include "basic/parse-util.h" -#include "basic/sigbus.h" -#include "basic/signal-util.h" -#include "basic/string-util.h" -#include "basic/util.h" -#include "shared/conf-parser.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/def.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/formats-util.h" +#include "systemd-basic/glob-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/mkdir.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/sigbus.h" +#include "systemd-basic/signal-util.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/util.h" +#include "systemd-shared/conf-parser.h" #include "journal-upload.h" diff --git a/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.h b/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.h index 9eeb8d2123..f1fd95e22c 100644 --- a/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.h +++ b/src/grp-journal/grp-remote/systemd-journal-upload/journal-upload.h @@ -6,7 +6,7 @@ #include <systemd/sd-event.h> #include <systemd/sd-journal.h> -#include "basic/time-util.h" +#include "systemd-basic/time-util.h" typedef enum { ENTRY_CURSOR = 0, /* Nothing actually written yet. */ diff --git a/src/grp-journal/journalctl/Makefile b/src/grp-journal/journalctl/Makefile index 11cfe17107..880827b85d 100644 --- a/src/grp-journal/journalctl/Makefile +++ b/src/grp-journal/journalctl/Makefile @@ -30,6 +30,7 @@ journalctl_SOURCES = \ src/journal/journalctl.c journalctl_LDADD = \ + libsystemd-internal.la \ libsystemd-shared.la \ libudev-core.la diff --git a/src/grp-journal/journalctl/journalctl.c b/src/grp-journal/journalctl/journalctl.c index e50c21d681..4317c05b33 100644 --- a/src/grp-journal/journalctl/journalctl.c +++ b/src/grp-journal/journalctl/journalctl.c @@ -37,39 +37,39 @@ #include <systemd/sd-bus.h> #include <systemd/sd-journal.h> -#include "basic/alloc-util.h" -#include "basic/chattr-util.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/fs-util.h" -#include "basic/glob-util.h" -#include "basic/hostname-util.h" -#include "basic/io-util.h" -#include "basic/locale-util.h" -#include "basic/log.h" -#include "basic/mkdir.h" -#include "basic/parse-util.h" -#include "basic/path-util.h" -#include "basic/rlimit-util.h" -#include "basic/set.h" -#include "basic/sigbus.h" -#include "basic/strv.h" -#include "basic/syslog-util.h" -#include "basic/terminal-util.h" -#include "basic/unit-name.h" -#include "basic/user-util.h" #include "sd-bus/bus-error.h" +#include "sd-bus/bus-util.h" #include "sd-journal/catalog.h" #include "sd-journal/fsprg.h" #include "sd-journal/journal-def.h" #include "sd-journal/journal-internal.h" #include "sd-journal/journal-vacuum.h" #include "sd-journal/journal-verify.h" -#include "shared/acl-util.h" -#include "shared/bus-util.h" -#include "shared/logs-show.h" -#include "shared/pager.h" -#include "shared/udev-util.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/chattr-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/fs-util.h" +#include "systemd-basic/glob-util.h" +#include "systemd-basic/hostname-util.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/locale-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/mkdir.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/path-util.h" +#include "systemd-basic/rlimit-util.h" +#include "systemd-basic/set.h" +#include "systemd-basic/sigbus.h" +#include "systemd-basic/strv.h" +#include "systemd-basic/syslog-util.h" +#include "systemd-basic/terminal-util.h" +#include "systemd-basic/unit-name.h" +#include "systemd-basic/user-util.h" +#include "systemd-shared/acl-util.h" +#include "systemd-shared/logs-show.h" +#include "systemd-shared/pager.h" +#include "systemd-shared/udev-util.h" #include "udev.h" #include "journal-qrcode.h" diff --git a/src/grp-journal/libjournal-core/Makefile b/src/grp-journal/libjournal-core/Makefile index 330620bbd9..76e6e9ddee 100644 --- a/src/grp-journal/libjournal-core/Makefile +++ b/src/grp-journal/libjournal-core/Makefile @@ -23,36 +23,6 @@ include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk include $(topsrcdir)/build-aux/Makefile.head.mk -libjournal_core_la_SOURCES = \ - src/journal/journald-kmsg.c \ - src/journal/journald-kmsg.h \ - src/journal/journald-syslog.c \ - src/journal/journald-syslog.h \ - src/journal/journald-stream.c \ - src/journal/journald-stream.h \ - src/journal/journald-server.c \ - src/journal/journald-server.h \ - src/journal/journald-console.c \ - src/journal/journald-console.h \ - src/journal/journald-wall.c \ - src/journal/journald-wall.h \ - src/journal/journald-native.c \ - src/journal/journald-native.h \ - src/journal/journald-audit.c \ - src/journal/journald-audit.h \ - src/journal/journald-rate-limit.c \ - src/journal/journald-rate-limit.h \ - src/journal/journal-internal.h - -nodist_libjournal_core_la_SOURCES = \ - src/journal/journald-gperf.c - -libjournal_core_la_LIBADD = \ - libsystemd-shared.la - -noinst_LTLIBRARIES += \ - libjournal-core.la - -sd.CPPFLAGS += -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" +nested.subdirs += src include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-journal/libjournal-core/journald-audit.h b/src/grp-journal/libjournal-core/include/journal-core/journald-audit.h index 98c07e95e4..4d5d359d6a 100644 --- a/src/grp-journal/libjournal-core/journald-audit.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-audit.h @@ -19,7 +19,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/socket-util.h" +#include "systemd-basic/socket-util.h" #include "journald-server.h" diff --git a/src/grp-journal/libjournal-core/journald-console.h b/src/grp-journal/libjournal-core/include/journal-core/journald-console.h index dda07e2c28..dda07e2c28 100644 --- a/src/grp-journal/libjournal-core/journald-console.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-console.h diff --git a/src/grp-journal/libjournal-core/journald-kmsg.h b/src/grp-journal/libjournal-core/include/journal-core/journald-kmsg.h index dab49f1e8c..dab49f1e8c 100644 --- a/src/grp-journal/libjournal-core/journald-kmsg.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-kmsg.h diff --git a/src/grp-journal/libjournal-core/journald-native.h b/src/grp-journal/libjournal-core/include/journal-core/journald-native.h index c13b80aa4f..c13b80aa4f 100644 --- a/src/grp-journal/libjournal-core/journald-native.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-native.h diff --git a/src/grp-journal/libjournal-core/journald-rate-limit.h b/src/grp-journal/libjournal-core/include/journal-core/journald-rate-limit.h index 533dd0f013..4f7764eb1d 100644 --- a/src/grp-journal/libjournal-core/journald-rate-limit.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-rate-limit.h @@ -19,7 +19,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/util.h" +#include "systemd-basic/util.h" typedef struct JournalRateLimit JournalRateLimit; diff --git a/src/grp-journal/libjournal-core/journald-server.h b/src/grp-journal/libjournal-core/include/journal-core/journald-server.h index 5f1af1e50b..a621d707ca 100644 --- a/src/grp-journal/libjournal-core/journald-server.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-server.h @@ -24,9 +24,9 @@ #include <systemd/sd-event.h> -#include "basic/hashmap.h" -#include "basic/list.h" #include "sd-journal/journal-file.h" +#include "systemd-basic/hashmap.h" +#include "systemd-basic/list.h" typedef struct Server Server; diff --git a/src/grp-journal/libjournal-core/journald-stream.h b/src/grp-journal/libjournal-core/include/journal-core/journald-stream.h index fe88cc34f5..ff38effb1d 100644 --- a/src/grp-journal/libjournal-core/journald-stream.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-stream.h @@ -19,7 +19,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "shared/fdset.h" +#include "systemd-shared/fdset.h" typedef struct StdoutStream StdoutStream; diff --git a/src/grp-journal/libjournal-core/journald-syslog.h b/src/grp-journal/libjournal-core/include/journal-core/journald-syslog.h index 46ad715314..46ad715314 100644 --- a/src/grp-journal/libjournal-core/journald-syslog.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-syslog.h diff --git a/src/grp-journal/libjournal-core/journald-wall.h b/src/grp-journal/libjournal-core/include/journal-core/journald-wall.h index ebc2b89fa8..ebc2b89fa8 100644 --- a/src/grp-journal/libjournal-core/journald-wall.h +++ b/src/grp-journal/libjournal-core/include/journal-core/journald-wall.h diff --git a/src/grp-journal/libjournal-core/src/Makefile b/src/grp-journal/libjournal-core/src/Makefile new file mode 100644 index 0000000000..429c6ddbb7 --- /dev/null +++ b/src/grp-journal/libjournal-core/src/Makefile @@ -0,0 +1,58 @@ +# -*- Mode: makefile; indent-tabs-mode: t -*- +# +# This file is part of systemd. +# +# Copyright 2010-2012 Lennart Poettering +# Copyright 2010-2012 Kay Sievers +# Copyright 2013 Zbigniew Jędrzejewski-Szmek +# Copyright 2013 David Strauss +# Copyright 2016 Luke Shumaker +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# systemd is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with systemd; If not, see <http://www.gnu.org/licenses/>. +include $(dir $(lastword $(MAKEFILE_LIST)))/../../../../config.mk +include $(topsrcdir)/build-aux/Makefile.head.mk + +libjournal_core_la_SOURCES = \ + src/journal/journald-kmsg.c \ + src/journal/journald-kmsg.h \ + src/journal/journald-syslog.c \ + src/journal/journald-syslog.h \ + src/journal/journald-stream.c \ + src/journal/journald-stream.h \ + src/journal/journald-server.c \ + src/journal/journald-server.h \ + src/journal/journald-console.c \ + src/journal/journald-console.h \ + src/journal/journald-wall.c \ + src/journal/journald-wall.h \ + src/journal/journald-native.c \ + src/journal/journald-native.h \ + src/journal/journald-audit.c \ + src/journal/journald-audit.h \ + src/journal/journald-rate-limit.c \ + src/journal/journald-rate-limit.h \ + src/journal/journal-internal.h + +nodist_libjournal_core_la_SOURCES = \ + src/journal/journald-gperf.c + +libjournal_core_la_LIBADD = \ + libsystemd-shared.la + +noinst_LTLIBRARIES += \ + libjournal-core.la + +sd.CPPFLAGS += -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" + +include $(topsrcdir)/build-aux/Makefile.tail.mk diff --git a/src/grp-journal/libjournal-core/journald-audit.c b/src/grp-journal/libjournal-core/src/journald-audit.c index 74ad0c017e..65f925fdc4 100644 --- a/src/grp-journal/libjournal-core/journald-audit.c +++ b/src/grp-journal/libjournal-core/src/journald-audit.c @@ -17,15 +17,14 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/hexdecoct.h" -#include "basic/io-util.h" -#include "basic/missing.h" -#include "basic/string-util.h" +#include "journal-core/journald-audit.h" #include "sd-journal/audit-type.h" - -#include "journald-audit.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/hexdecoct.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/missing.h" +#include "systemd-basic/string-util.h" typedef struct MapField { const char *audit_field; diff --git a/src/grp-journal/libjournal-core/journald-console.c b/src/grp-journal/libjournal-core/src/journald-console.c index b1e6828dc2..d6d25841f2 100644 --- a/src/grp-journal/libjournal-core/journald-console.c +++ b/src/grp-journal/libjournal-core/src/journald-console.c @@ -21,18 +21,17 @@ #include <sys/socket.h> #include <time.h> -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/formats-util.h" -#include "basic/io-util.h" -#include "basic/parse-util.h" -#include "basic/process-util.h" -#include "basic/stdio-util.h" -#include "basic/terminal-util.h" - -#include "journald-console.h" -#include "journald-server.h" +#include "journal-core/journald-console.h" +#include "journal-core/journald-server.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/formats-util.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/process-util.h" +#include "systemd-basic/stdio-util.h" +#include "systemd-basic/terminal-util.h" static bool prefix_timestamp(void) { diff --git a/src/grp-journal/libjournal-core/journald-gperf.gperf b/src/grp-journal/libjournal-core/src/journald-gperf.gperf index 7c5c68862a..b56872918d 100644 --- a/src/grp-journal/libjournal-core/journald-gperf.gperf +++ b/src/grp-journal/libjournal-core/src/journald-gperf.gperf @@ -2,9 +2,8 @@ #include <stddef.h> #include <sys/socket.h> -#include "shared/conf-parser.h" - -#include "journald-server.h" +#include "journal-core/journald-server.h" +#include "systemd-shared/conf-parser.h" %} struct ConfigPerfItem; %null_strings diff --git a/src/grp-journal/libjournal-core/journald-kmsg.c b/src/grp-journal/libjournal-core/src/journald-kmsg.c index 946318c184..598c2d6c80 100644 --- a/src/grp-journal/libjournal-core/journald-kmsg.c +++ b/src/grp-journal/libjournal-core/src/journald-kmsg.c @@ -26,18 +26,17 @@ #include <libudev.h> #include <systemd/sd-messages.h> -#include "basic/escape.h" -#include "basic/fd-util.h" -#include "basic/formats-util.h" -#include "basic/io-util.h" -#include "basic/parse-util.h" -#include "basic/process-util.h" -#include "basic/stdio-util.h" -#include "basic/string-util.h" - -#include "journald-kmsg.h" -#include "journald-server.h" -#include "journald-syslog.h" +#include "journal-core/journald-kmsg.h" +#include "journal-core/journald-server.h" +#include "journal-core/journald-syslog.h" +#include "systemd-basic/escape.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/formats-util.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/process-util.h" +#include "systemd-basic/stdio-util.h" +#include "systemd-basic/string-util.h" void server_forward_kmsg( Server *s, diff --git a/src/grp-journal/libjournal-core/journald-native.c b/src/grp-journal/libjournal-core/src/journald-native.c index 9bfea935ad..536765f414 100644 --- a/src/grp-journal/libjournal-core/journald-native.c +++ b/src/grp-journal/libjournal-core/src/journald-native.c @@ -23,23 +23,22 @@ #include <sys/statvfs.h> #include <unistd.h> -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/fs-util.h" -#include "basic/io-util.h" -#include "basic/memfd-util.h" -#include "basic/parse-util.h" -#include "basic/path-util.h" -#include "basic/selinux-util.h" -#include "basic/socket-util.h" -#include "basic/string-util.h" - -#include "journald-console.h" -#include "journald-kmsg.h" -#include "journald-native.h" -#include "journald-server.h" -#include "journald-syslog.h" -#include "journald-wall.h" +#include "journal-core/journald-console.h" +#include "journal-core/journald-kmsg.h" +#include "journal-core/journald-native.h" +#include "journal-core/journald-server.h" +#include "journal-core/journald-syslog.h" +#include "journal-core/journald-wall.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fs-util.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/memfd-util.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/path-util.h" +#include "systemd-basic/selinux-util.h" +#include "systemd-basic/socket-util.h" +#include "systemd-basic/string-util.h" bool valid_user_field(const char *p, size_t l, bool allow_protected) { const char *a; diff --git a/src/grp-journal/libjournal-core/journald-rate-limit.c b/src/grp-journal/libjournal-core/src/journald-rate-limit.c index 22603bf8e6..a3f17da16d 100644 --- a/src/grp-journal/libjournal-core/journald-rate-limit.c +++ b/src/grp-journal/libjournal-core/src/journald-rate-limit.c @@ -20,14 +20,13 @@ #include <errno.h> #include <string.h> -#include "basic/alloc-util.h" -#include "basic/hashmap.h" -#include "basic/list.h" -#include "basic/random-util.h" -#include "basic/string-util.h" -#include "basic/util.h" - -#include "journald-rate-limit.h" +#include "journal-core/journald-rate-limit.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/hashmap.h" +#include "systemd-basic/list.h" +#include "systemd-basic/random-util.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/util.h" #define POOLS_MAX 5 #define BUCKETS_MAX 127 diff --git a/src/grp-journal/libjournal-core/journald-server.c b/src/grp-journal/libjournal-core/src/journald-server.c index c314b74ac2..b3702d99a6 100644 --- a/src/grp-journal/libjournal-core/journald-server.c +++ b/src/grp-journal/libjournal-core/src/journald-server.c @@ -32,46 +32,45 @@ #include <systemd/sd-journal.h> #include <systemd/sd-messages.h> -#include "basic/alloc-util.h" -#include "basic/audit-util.h" -#include "basic/cgroup-util.h" -#include "basic/dirent-util.h" -#include "basic/extract-word.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/formats-util.h" -#include "basic/fs-util.h" -#include "basic/hashmap.h" -#include "basic/hostname-util.h" -#include "basic/io-util.h" -#include "basic/log.h" -#include "basic/missing.h" -#include "basic/mkdir.h" -#include "basic/parse-util.h" -#include "basic/proc-cmdline.h" -#include "basic/process-util.h" -#include "basic/rm-rf.h" -#include "basic/selinux-util.h" -#include "basic/signal-util.h" -#include "basic/socket-util.h" -#include "basic/stdio-util.h" -#include "basic/string-table.h" -#include "basic/string-util.h" -#include "basic/user-util.h" +#include "journal-core/journald-audit.h" +#include "journal-core/journald-kmsg.h" +#include "journal-core/journald-native.h" +#include "journal-core/journald-rate-limit.h" +#include "journal-core/journald-server.h" +#include "journal-core/journald-stream.h" +#include "journal-core/journald-syslog.h" #include "sd-journal/journal-authenticate.h" #include "sd-journal/journal-file.h" #include "sd-journal/journal-internal.h" #include "sd-journal/journal-vacuum.h" -#include "shared/acl-util.h" -#include "shared/conf-parser.h" - -#include "journald-audit.h" -#include "journald-kmsg.h" -#include "journald-native.h" -#include "journald-rate-limit.h" -#include "journald-server.h" -#include "journald-stream.h" -#include "journald-syslog.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/audit-util.h" +#include "systemd-basic/cgroup-util.h" +#include "systemd-basic/dirent-util.h" +#include "systemd-basic/extract-word.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/formats-util.h" +#include "systemd-basic/fs-util.h" +#include "systemd-basic/hashmap.h" +#include "systemd-basic/hostname-util.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/missing.h" +#include "systemd-basic/mkdir.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/proc-cmdline.h" +#include "systemd-basic/process-util.h" +#include "systemd-basic/rm-rf.h" +#include "systemd-basic/selinux-util.h" +#include "systemd-basic/signal-util.h" +#include "systemd-basic/socket-util.h" +#include "systemd-basic/stdio-util.h" +#include "systemd-basic/string-table.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/user-util.h" +#include "systemd-shared/acl-util.h" +#include "systemd-shared/conf-parser.h" #define USER_JOURNALS_MAX 1024 diff --git a/src/grp-journal/libjournal-core/journald-stream.c b/src/grp-journal/libjournal-core/src/journald-stream.c index e90dfac1cd..1c56cce0fc 100644 --- a/src/grp-journal/libjournal-core/journald-stream.c +++ b/src/grp-journal/libjournal-core/src/journald-stream.c @@ -27,26 +27,25 @@ #include <systemd/sd-daemon.h> #include <systemd/sd-event.h> -#include "basic/alloc-util.h" -#include "basic/dirent-util.h" -#include "basic/escape.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/io-util.h" -#include "basic/mkdir.h" -#include "basic/parse-util.h" -#include "basic/selinux-util.h" -#include "basic/socket-util.h" -#include "basic/stdio-util.h" -#include "basic/string-util.h" -#include "basic/syslog-util.h" - -#include "journald-console.h" -#include "journald-kmsg.h" -#include "journald-server.h" -#include "journald-stream.h" -#include "journald-syslog.h" -#include "journald-wall.h" +#include "journal-core/journald-console.h" +#include "journal-core/journald-kmsg.h" +#include "journal-core/journald-server.h" +#include "journal-core/journald-stream.h" +#include "journal-core/journald-syslog.h" +#include "journal-core/journald-wall.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/dirent-util.h" +#include "systemd-basic/escape.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/mkdir.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/selinux-util.h" +#include "systemd-basic/socket-util.h" +#include "systemd-basic/stdio-util.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/syslog-util.h" #define STDOUT_STREAMS_MAX 4096 diff --git a/src/grp-journal/libjournal-core/journald-syslog.c b/src/grp-journal/libjournal-core/src/journald-syslog.c index bc793235d4..054a44b39f 100644 --- a/src/grp-journal/libjournal-core/journald-syslog.c +++ b/src/grp-journal/libjournal-core/src/journald-syslog.c @@ -23,22 +23,21 @@ #include <systemd/sd-messages.h> -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/formats-util.h" -#include "basic/io-util.h" -#include "basic/process-util.h" -#include "basic/selinux-util.h" -#include "basic/socket-util.h" -#include "basic/stdio-util.h" -#include "basic/string-util.h" -#include "basic/syslog-util.h" - -#include "journald-console.h" -#include "journald-kmsg.h" -#include "journald-server.h" -#include "journald-syslog.h" -#include "journald-wall.h" +#include "journal-core/journald-console.h" +#include "journal-core/journald-kmsg.h" +#include "journal-core/journald-server.h" +#include "journal-core/journald-syslog.h" +#include "journal-core/journald-wall.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/formats-util.h" +#include "systemd-basic/io-util.h" +#include "systemd-basic/process-util.h" +#include "systemd-basic/selinux-util.h" +#include "systemd-basic/socket-util.h" +#include "systemd-basic/stdio-util.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/syslog-util.h" /* Warn once every 30s if we missed syslog message */ #define WARN_FORWARD_SYSLOG_MISSED_USEC (30 * USEC_PER_SEC) diff --git a/src/grp-journal/libjournal-core/journald-wall.c b/src/grp-journal/libjournal-core/src/journald-wall.c index 0c816de55f..242e69f6c3 100644 --- a/src/grp-journal/libjournal-core/journald-wall.c +++ b/src/grp-journal/libjournal-core/src/journald-wall.c @@ -17,14 +17,13 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/alloc-util.h" -#include "basic/formats-util.h" -#include "basic/process-util.h" -#include "basic/string-util.h" -#include "shared/utmp-wtmp.h" - -#include "journald-server.h" -#include "journald-wall.h" +#include "journal-core/journald-server.h" +#include "journal-core/journald-wall.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/formats-util.h" +#include "systemd-basic/process-util.h" +#include "systemd-basic/string-util.h" +#include "systemd-shared/utmp-wtmp.h" void server_forward_wall( Server *s, diff --git a/src/grp-journal/libjournal-core/test-audit-type.c b/src/grp-journal/libjournal-core/test/test-audit-type.c index 812a3953ea..812a3953ea 100644 --- a/src/grp-journal/libjournal-core/test-audit-type.c +++ b/src/grp-journal/libjournal-core/test/test-audit-type.c diff --git a/src/grp-journal/libjournal-core/test-catalog.c b/src/grp-journal/libjournal-core/test/test-catalog.c index 73ffb16104..8adc3832a6 100644 --- a/src/grp-journal/libjournal-core/test-catalog.c +++ b/src/grp-journal/libjournal-core/test/test-catalog.c @@ -25,14 +25,14 @@ #include <systemd/sd-messages.h> -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/log.h" -#include "basic/macro.h" -#include "basic/string-util.h" -#include "basic/util.h" #include "sd-journal/catalog.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/log.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/util.h" static const char *catalog_dirs[] = { CATALOG_DIR, diff --git a/src/grp-journal/libjournal-core/test-compress-benchmark.c b/src/grp-journal/libjournal-core/test/test-compress-benchmark.c index 4292e4f8cb..e3f45a5d67 100644 --- a/src/grp-journal/libjournal-core/test-compress-benchmark.c +++ b/src/grp-journal/libjournal-core/test/test-compress-benchmark.c @@ -17,13 +17,13 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/alloc-util.h" -#include "basic/macro.h" -#include "basic/parse-util.h" -#include "basic/random-util.h" -#include "basic/string-util.h" -#include "basic/util.h" #include "sd-journal/compress.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/random-util.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/util.h" typedef int (compress_t)(const void *src, uint64_t src_size, void *dst, size_t dst_alloc_size, size_t *dst_size); diff --git a/src/grp-journal/libjournal-core/test-compress.c b/src/grp-journal/libjournal-core/test/test-compress.c index 5682c28e8c..ad9ca34796 100644 --- a/src/grp-journal/libjournal-core/test-compress.c +++ b/src/grp-journal/libjournal-core/test/test-compress.c @@ -21,13 +21,13 @@ #include <lz4.h> #endif -#include "basic/alloc-util.h" -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/macro.h" -#include "basic/random-util.h" -#include "basic/util.h" #include "sd-journal/compress.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/random-util.h" +#include "systemd-basic/util.h" #ifdef HAVE_XZ # define XZ_OK 0 diff --git a/src/grp-journal/libjournal-core/test-journal-enum.c b/src/grp-journal/libjournal-core/test/test-journal-enum.c index 588e12c800..2c529f0544 100644 --- a/src/grp-journal/libjournal-core/test-journal-enum.c +++ b/src/grp-journal/libjournal-core/test/test-journal-enum.c @@ -21,9 +21,9 @@ #include <systemd/sd-journal.h> -#include "basic/log.h" -#include "basic/macro.h" #include "sd-journal/journal-internal.h" +#include "systemd-basic/log.h" +#include "systemd-basic/macro.h" int main(int argc, char *argv[]) { unsigned n = 0; diff --git a/src/grp-journal/libjournal-core/test-journal-flush.c b/src/grp-journal/libjournal-core/test/test-journal-flush.c index 66ae8f83c4..0ebec91563 100644 --- a/src/grp-journal/libjournal-core/test-journal-flush.c +++ b/src/grp-journal/libjournal-core/test/test-journal-flush.c @@ -21,11 +21,11 @@ #include <systemd/sd-journal.h> -#include "basic/alloc-util.h" -#include "basic/macro.h" -#include "basic/string-util.h" #include "sd-journal/journal-file.h" #include "sd-journal/journal-internal.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/string-util.h" int main(int argc, char *argv[]) { _cleanup_free_ char *fn = NULL; diff --git a/src/grp-journal/libjournal-core/test-journal-init.c b/src/grp-journal/libjournal-core/test/test-journal-init.c index c5f1d345e9..719b99ab77 100644 --- a/src/grp-journal/libjournal-core/test-journal-init.c +++ b/src/grp-journal/libjournal-core/test/test-journal-init.c @@ -19,10 +19,10 @@ #include <systemd/sd-journal.h> -#include "basic/log.h" -#include "basic/parse-util.h" -#include "basic/rm-rf.h" -#include "basic/util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/rm-rf.h" +#include "systemd-basic/util.h" int main(int argc, char *argv[]) { sd_journal *j; diff --git a/src/grp-journal/libjournal-core/test-journal-interleaving.c b/src/grp-journal/libjournal-core/test/test-journal-interleaving.c index 004394d18a..4bf541d2b3 100644 --- a/src/grp-journal/libjournal-core/test-journal-interleaving.c +++ b/src/grp-journal/libjournal-core/test/test-journal-interleaving.c @@ -23,13 +23,13 @@ #include <systemd/sd-journal.h> -#include "basic/alloc-util.h" -#include "basic/log.h" -#include "basic/parse-util.h" -#include "basic/rm-rf.h" -#include "basic/util.h" #include "sd-journal/journal-file.h" #include "sd-journal/journal-vacuum.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/rm-rf.h" +#include "systemd-basic/util.h" /* This program tests skipping around in a multi-file journal. */ diff --git a/src/grp-journal/libjournal-core/test-journal-match.c b/src/grp-journal/libjournal-core/test/test-journal-match.c index 967e30c46a..4d3731b3be 100644 --- a/src/grp-journal/libjournal-core/test-journal-match.c +++ b/src/grp-journal/libjournal-core/test/test-journal-match.c @@ -21,11 +21,11 @@ #include <systemd/sd-journal.h> -#include "basic/alloc-util.h" -#include "basic/log.h" -#include "basic/string-util.h" -#include "basic/util.h" #include "sd-journal/journal-internal.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/util.h" int main(int argc, char *argv[]) { _cleanup_(sd_journal_closep) sd_journal*j = NULL; diff --git a/src/grp-journal/libjournal-core/test-journal-send.c b/src/grp-journal/libjournal-core/test/test-journal-send.c index 192e12c887..bca76fc4df 100644 --- a/src/grp-journal/libjournal-core/test-journal-send.c +++ b/src/grp-journal/libjournal-core/test/test-journal-send.c @@ -23,7 +23,7 @@ #include <systemd/sd-journal.h> -#include "basic/macro.h" +#include "systemd-basic/macro.h" int main(int argc, char *argv[]) { char huge[4096*1024]; diff --git a/src/grp-journal/libjournal-core/test-journal-stream.c b/src/grp-journal/libjournal-core/test/test-journal-stream.c index b71c44ef56..84db1eeeb4 100644 --- a/src/grp-journal/libjournal-core/test-journal-stream.c +++ b/src/grp-journal/libjournal-core/test/test-journal-stream.c @@ -22,14 +22,14 @@ #include <systemd/sd-journal.h> -#include "basic/alloc-util.h" -#include "basic/log.h" -#include "basic/macro.h" -#include "basic/parse-util.h" -#include "basic/rm-rf.h" -#include "basic/util.h" #include "sd-journal/journal-file.h" #include "sd-journal/journal-internal.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/rm-rf.h" +#include "systemd-basic/util.h" #define N_ENTRIES 200 diff --git a/src/grp-journal/libjournal-core/test-journal-syslog.c b/src/grp-journal/libjournal-core/test/test-journal-syslog.c index 4756126478..f86cfb2677 100644 --- a/src/grp-journal/libjournal-core/test-journal-syslog.c +++ b/src/grp-journal/libjournal-core/test/test-journal-syslog.c @@ -17,11 +17,10 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include "basic/alloc-util.h" -#include "basic/macro.h" -#include "basic/string-util.h" - -#include "journald-syslog.h" +#include "journal-core/journald-syslog.h" +#include "systemd-basic/alloc-util.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/string-util.h" static void test_syslog_parse_identifier(const char* str, const char *ident, const char*pid, int ret) { diff --git a/src/grp-journal/libjournal-core/test-journal-verify.c b/src/grp-journal/libjournal-core/test/test-journal-verify.c index 485315c118..8a1aa45901 100644 --- a/src/grp-journal/libjournal-core/test-journal-verify.c +++ b/src/grp-journal/libjournal-core/test/test-journal-verify.c @@ -21,13 +21,13 @@ #include <stdio.h> #include <unistd.h> -#include "basic/fd-util.h" -#include "basic/log.h" -#include "basic/rm-rf.h" -#include "basic/terminal-util.h" -#include "basic/util.h" #include "sd-journal/journal-file.h" #include "sd-journal/journal-verify.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/log.h" +#include "systemd-basic/rm-rf.h" +#include "systemd-basic/terminal-util.h" +#include "systemd-basic/util.h" #define N_ENTRIES 6000 #define RANDOM_RANGE 77 diff --git a/src/grp-journal/libjournal-core/test-journal.c b/src/grp-journal/libjournal-core/test/test-journal.c index 05de15f0c0..0792750a61 100644 --- a/src/grp-journal/libjournal-core/test-journal.c +++ b/src/grp-journal/libjournal-core/test/test-journal.c @@ -20,11 +20,11 @@ #include <fcntl.h> #include <unistd.h> -#include "basic/log.h" -#include "basic/rm-rf.h" #include "sd-journal/journal-authenticate.h" #include "sd-journal/journal-file.h" #include "sd-journal/journal-vacuum.h" +#include "systemd-basic/log.h" +#include "systemd-basic/rm-rf.h" static bool arg_keep = false; diff --git a/src/grp-journal/libjournal-core/test-mmap-cache.c b/src/grp-journal/libjournal-core/test/test-mmap-cache.c index 3eb5444480..636be8c2e3 100644 --- a/src/grp-journal/libjournal-core/test-mmap-cache.c +++ b/src/grp-journal/libjournal-core/test/test-mmap-cache.c @@ -22,11 +22,11 @@ #include <sys/mman.h> #include <unistd.h> -#include "basic/fd-util.h" -#include "basic/fileio.h" -#include "basic/macro.h" -#include "basic/util.h" #include "sd-journal/mmap-cache.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/fileio.h" +#include "systemd-basic/macro.h" +#include "systemd-basic/util.h" int main(int argc, char *argv[]) { int x, y, z, r; diff --git a/src/grp-journal/systemd-cat/cat.c b/src/grp-journal/systemd-cat/cat.c index 8ab4febd53..105d42591e 100644 --- a/src/grp-journal/systemd-cat/cat.c +++ b/src/grp-journal/systemd-cat/cat.c @@ -26,11 +26,11 @@ #include <systemd/sd-journal.h> -#include "basic/fd-util.h" -#include "basic/parse-util.h" -#include "basic/string-util.h" -#include "basic/syslog-util.h" -#include "basic/util.h" +#include "systemd-basic/fd-util.h" +#include "systemd-basic/parse-util.h" +#include "systemd-basic/string-util.h" +#include "systemd-basic/syslog-util.h" +#include "systemd-basic/util.h" static const char *arg_identifier = NULL; static int arg_priority = LOG_INFO; diff --git a/src/grp-journal/catalog/.gitignore b/src/grp-journal/systemd-journald/.gitignore index ff695342e3..ff695342e3 100644 --- a/src/grp-journal/catalog/.gitignore +++ b/src/grp-journal/systemd-journald/.gitignore diff --git a/src/grp-journal/systemd-journald/Makefile b/src/grp-journal/systemd-journald/Makefile index 4f05218d88..b75a248ea1 100644 --- a/src/grp-journal/systemd-journald/Makefile +++ b/src/grp-journal/systemd-journald/Makefile @@ -60,6 +60,7 @@ nodist_catalog_DATA = \ EXTRA_DIST += \ $(nodist_catalog_DATA:.catalog=.catalog.in) +EXTRA_DIST := $(EXTRA_DIST) # Note that we don't use @@ for replacement markers here, but %%. This is # because the catalog uses @@ already for its runtime replacement handling and diff --git a/src/grp-journal/systemd-journald/journald.c b/src/grp-journal/systemd-journald/journald.c index cd887feed8..7306b5f43d 100644 --- a/src/grp-journal/systemd-journald/journald.c +++ b/src/grp-journal/systemd-journald/journald.c @@ -22,12 +22,12 @@ #include <systemd/sd-daemon.h> #include <systemd/sd-messages.h> -#include "basic/formats-util.h" -#include "basic/sigbus.h" -#include "journald-kmsg.h" -#include "journald-server.h" -#include "journald-syslog.h" +#include "journal-core/journald-kmsg.h" +#include "journal-core/journald-server.h" +#include "journal-core/journald-syslog.h" #include "sd-journal/journal-authenticate.h" +#include "systemd-basic/formats-util.h" +#include "systemd-basic/sigbus.h" int main(int argc, char *argv[]) { Server server; diff --git a/src/grp-journal/catalog/systemd.be.catalog.in b/src/grp-journal/systemd-journald/systemd.be.catalog.in index 5b237f0558..5b237f0558 100644 --- a/src/grp-journal/catalog/systemd.be.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.be.catalog.in diff --git a/src/grp-journal/catalog/systemd.be@latin.catalog.in b/src/grp-journal/systemd-journald/systemd.be@latin.catalog.in index fc9f7cad16..fc9f7cad16 100644 --- a/src/grp-journal/catalog/systemd.be@latin.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.be@latin.catalog.in diff --git a/src/grp-journal/catalog/systemd.bg.catalog.in b/src/grp-journal/systemd-journald/systemd.bg.catalog.in index 76b0ce8f17..76b0ce8f17 100644 --- a/src/grp-journal/catalog/systemd.bg.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.bg.catalog.in diff --git a/src/grp-journal/catalog/systemd.catalog.in b/src/grp-journal/systemd-journald/systemd.catalog.in index 8de8597fe9..8de8597fe9 100644 --- a/src/grp-journal/catalog/systemd.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.catalog.in diff --git a/src/grp-journal/catalog/systemd.da.catalog.in b/src/grp-journal/systemd-journald/systemd.da.catalog.in index bc7d94476f..bc7d94476f 100644 --- a/src/grp-journal/catalog/systemd.da.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.da.catalog.in diff --git a/src/grp-journal/catalog/systemd.fr.catalog.in b/src/grp-journal/systemd-journald/systemd.fr.catalog.in index 573b288e74..573b288e74 100644 --- a/src/grp-journal/catalog/systemd.fr.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.fr.catalog.in diff --git a/src/grp-journal/catalog/systemd.hr.catalog.in b/src/grp-journal/systemd-journald/systemd.hr.catalog.in index 7502aed741..7502aed741 100644 --- a/src/grp-journal/catalog/systemd.hr.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.hr.catalog.in diff --git a/src/grp-journal/catalog/systemd.hu.catalog.in b/src/grp-journal/systemd-journald/systemd.hu.catalog.in index f538b7f958..f538b7f958 100644 --- a/src/grp-journal/catalog/systemd.hu.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.hu.catalog.in diff --git a/src/grp-journal/catalog/systemd.it.catalog.in b/src/grp-journal/systemd-journald/systemd.it.catalog.in index 86e44a604d..86e44a604d 100644 --- a/src/grp-journal/catalog/systemd.it.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.it.catalog.in diff --git a/src/grp-journal/catalog/systemd.ko.catalog.in b/src/grp-journal/systemd-journald/systemd.ko.catalog.in index 8a053254ee..8a053254ee 100644 --- a/src/grp-journal/catalog/systemd.ko.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.ko.catalog.in diff --git a/src/grp-journal/catalog/systemd.pl.catalog.in b/src/grp-journal/systemd-journald/systemd.pl.catalog.in index 33c2122974..33c2122974 100644 --- a/src/grp-journal/catalog/systemd.pl.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.pl.catalog.in diff --git a/src/grp-journal/catalog/systemd.pt_BR.catalog.in b/src/grp-journal/systemd-journald/systemd.pt_BR.catalog.in index e461c2b2ba..e461c2b2ba 100644 --- a/src/grp-journal/catalog/systemd.pt_BR.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.pt_BR.catalog.in diff --git a/src/grp-journal/catalog/systemd.ru.catalog.in b/src/grp-journal/systemd-journald/systemd.ru.catalog.in index df55478592..df55478592 100644 --- a/src/grp-journal/catalog/systemd.ru.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.ru.catalog.in diff --git a/src/grp-journal/catalog/systemd.sr.catalog.in b/src/grp-journal/systemd-journald/systemd.sr.catalog.in index 06a0ff648c..06a0ff648c 100644 --- a/src/grp-journal/catalog/systemd.sr.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.sr.catalog.in diff --git a/src/grp-journal/catalog/systemd.zh_CN.catalog.in b/src/grp-journal/systemd-journald/systemd.zh_CN.catalog.in index ba7c697c16..ba7c697c16 100644 --- a/src/grp-journal/catalog/systemd.zh_CN.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.zh_CN.catalog.in diff --git a/src/grp-journal/catalog/systemd.zh_TW.catalog.in b/src/grp-journal/systemd-journald/systemd.zh_TW.catalog.in index f7b42fa1c7..f7b42fa1c7 100644 --- a/src/grp-journal/catalog/systemd.zh_TW.catalog.in +++ b/src/grp-journal/systemd-journald/systemd.zh_TW.catalog.in |