Systemd/src/journal
Topi Miettinen 3c14dc61f7 tests: various small fixes for strict systems
Don't assume that 4MB can be allocated from stack since there could be smaller
DefaultLimitSTACK= in force, so let's use malloc(). NUL terminate the huge
strings by hand, also ensure termination in test_lz4_decompress_partial() and
optimize the memset() for the string.

Some items in /proc and /etc may not be accessible to poor unprivileged users
due to e.g. SELinux, BOFH or both, so check for EACCES and EPERM.

/var/tmp may be a symlink to /tmp and then path_compare() will always fail, so
let's stick to /tmp like elsewhere.

/tmp may be mounted with noexec option and then trying to execute scripts from
there would fail.

Detect and warn if seccomp is already in use, which could make seccomp test
fail if the syscalls are already blocked.

Unset $TMPDIR so it will not break specifier tests where %T is assumed to be
/tmp and %V /var/tmp.
2020-04-26 20:18:48 +02:00
..
audit-type.c journal: use missing_audit.h to generate audit_type-list.txt 2018-12-07 11:48:37 +09:00
audit-type.h tree-wide: drop alloca.h when alloc-util.h is included 2019-11-04 00:30:32 +09:00
audit_type-to-name.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
cat.c tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
catalog.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
catalog.h journal: Make the output of --update-catalog deterministic 2019-09-06 15:13:54 +02:00
compress.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
compress.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
fsprg.c tree-wide: drop gcrypt.h when gcrypt-util.h is included 2019-11-04 00:30:32 +09:00
fsprg.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
generate-audit_type-list.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
journal-authenticate.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
journal-authenticate.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journal-def.h tree-wide: drop duplicated blank lines 2019-07-15 18:41:27 +02:00
journal-file.c sd-journal: close journal files that were deleted by journald before we've setup inotify watch 2020-02-05 18:34:52 +01:00
journal-file.h sd-journal: close journal files that were deleted by journald before we've setup inotify watch 2020-02-05 18:34:52 +01:00
journal-internal.h journal: allow opening journal files specific to some namespace 2020-01-31 15:02:29 +01:00
journal-qrcode.c Add open_memstream_unlocked() wrapper 2019-04-12 11:44:57 +02:00
journal-qrcode.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journal-send.c tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
journal-vacuum.c util: introduce format_bytes_full() 2019-06-19 23:15:19 +09:00
journal-vacuum.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journal-verify.c journalctl: don't output ANSI sequences if disabled 2019-05-10 15:00:55 -04:00
journal-verify.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journalctl.c tree-wide: use structured initialization at various places 2020-04-24 07:44:42 +02:00
journald-audit.c errno-util: let's beef up ERRNO_IS_NOT_SUPPORTED() with socket not supported errors 2020-04-17 16:05:56 +02:00
journald-audit.h tree-wide: add whitespace between type and variable name 2018-12-04 09:29:54 +01:00
journald-console.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journald-console.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journald-context.c journald: allow running multiple instances of journald 2020-01-31 15:01:18 +01:00
journald-context.h tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-gperf.gperf journald: add configuration option for enabling/disabling audit during journald startup 2020-04-17 16:05:22 +02:00
journald-kmsg.c tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
journald-kmsg.h tests: add a fuzzer for dev_kmsg_record 2018-11-16 08:44:35 +01:00
journald-native.c tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
journald-native.h journald: allow running multiple instances of journald 2020-01-31 15:01:18 +01:00
journald-rate-limit.c journald: specifying _pure_ on static functions is unnecessary, compiler can figure that out on its own 2020-01-31 15:00:37 +01:00
journald-rate-limit.h tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-server.c Merge pull request #15504 from poettering/cmsg-find-pure 2020-04-23 17:28:19 +02:00
journald-server.h journald: add configuration option for enabling/disabling audit during journald startup 2020-04-17 16:05:22 +02:00
journald-stream.c socket-util: introduce type-safe, dereferencing wrapper CMSG_FIND_DATA around cmsg_find() 2020-04-23 19:41:15 +02:00
journald-stream.h journald: allow running multiple instances of journald 2020-01-31 15:01:18 +01:00
journald-syslog.c tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
journald-syslog.h journald: allow running multiple instances of journald 2020-01-31 15:01:18 +01:00
journald-wall.c journald: drop copyright headers for Sebastian Thorarensen 2018-07-03 01:32:25 +02:00
journald-wall.h headers: add missing includes 2019-03-28 19:59:56 +01:00
journald.c journal: drop unreachable path 2020-02-03 10:00:50 +01:00
journald.conf journald: add configuration option for enabling/disabling audit during journald startup 2020-04-17 16:05:22 +02:00
lookup3.c journal: also disable memory tricks when hashing under msan 2019-06-12 17:27:19 +02:00
lookup3.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
meson.build meson: create /var/log/journal/{,remote/} conditionally 2019-07-04 10:16:48 +02:00
mmap-cache.c tree-wide: use structured initialization at various places 2020-04-24 07:44:42 +02:00
mmap-cache.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
sd-journal.c sd-journal: don't check namespaces if we have no namespace to go by 2020-04-23 09:23:53 +02:00
test-audit-type.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
test-catalog.c Remove unneded {}s 2020-04-13 09:31:49 +02:00
test-compress-benchmark.c util: split out nulstr related stuff to nulstr-util.[ch] 2019-03-14 13:25:52 +01:00
test-compress.c tests: various small fixes for strict systems 2020-04-26 20:18:48 +02:00
test-journal-config.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-journal-enum.c tree-wide: add whitespace between type and variable name 2018-12-04 09:29:54 +01:00
test-journal-flush.c test-journal-flush: provide at least *some* logs 2019-08-20 12:01:23 +02:00
test-journal-init.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-journal-interleaving.c tree-wide: use PROJECT_FILE instead of __FILE__ 2019-07-04 10:36:00 +02:00
test-journal-match.c tree-wide: add whitespace between type and variable name 2018-12-04 09:29:54 +01:00
test-journal-send.c tests: various small fixes for strict systems 2020-04-26 20:18:48 +02:00
test-journal-stream.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-journal-syslog.c test-journal-syslog: initialize variable 2018-09-25 11:34:52 +02:00
test-journal-verify.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-journal.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-mmap-cache.c util-lib: split out all temporary file related calls into tmpfiles-util.c 2018-12-02 13:22:29 +01:00