Systemd/src
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
..
ac-power coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
activate util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
analyze verify: ignore nonexistent executables if required 2020-04-14 21:23:31 +02:00
ask-password Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
backlight util-lib: move shall_restore_state() to shared/reboot-util 2019-09-16 18:08:01 +02:00
basic cgroup-util: check for SYSFS_MAGIC when detecting cgroup format 2020-04-25 10:00:43 +02:00
binfmt binfmt: also unregister binfmt entries from unit 2020-04-23 17:14:45 +02:00
boot tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
busctl busctl: wrap long lines 2020-04-10 16:40:48 +02:00
cgls tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
cgroups-agent tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
cgtop Remove path_compare_func() alias for path_compare() 2019-11-15 14:47:45 +01:00
core Merge pull request #15563 from keszybz/wait-callback-tweak 2020-04-23 19:50:36 +02:00
coredump tree-wide: use cmsg_find() helper at various places where appropriate 2020-04-23 19:41:15 +02:00
cryptsetup tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
debug-generator initrd: fix systemd.debug-shell & friends 2019-12-03 14:48:27 +01:00
delta tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
detect-virt Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
dissect dissect: add --fsck= option to systemd-dissect tool 2020-01-29 19:29:52 +01:00
environment-d-generator sd-path: rename the two functions 2020-03-27 20:12:44 +01:00
escape Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
firstboot tree-wide: use "hostname" spelling everywhere 2020-04-21 16:58:04 +02:00
fsck tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
fstab-generator fstab-generator: handle systemd.swap= command-line argument 2020-03-12 17:52:43 +01:00
fuzz ci: turn off FuzzBuzz 2020-03-30 14:57:22 +02:00
getty-generator tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
gpt-auto-generator units: introduce blockdev@.target for properly ordering mounts/swaps against cryptsetup 2020-01-21 20:23:13 +01:00
hibernate-resume Fix generator name in hibernate-resume-generator's drop-in 2020-02-04 14:49:04 +09:00
home home: fix strv NUL termination 2020-04-23 21:15:02 +02:00
hostname Merge pull request #15472 from keszybz/dbus-api-docs 2020-04-23 17:01:11 +02:00
hwdb tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
id128 id128: change table header from "uuid" to just "id" 2020-01-29 15:32:26 +01:00
import socket-util: introduce type-safe, dereferencing wrapper CMSG_FIND_DATA around cmsg_find() 2020-04-23 19:41:15 +02:00
initctl tree-wide: use structured initialization at various places 2020-04-24 07:44:42 +02:00
journal tests: various small fixes for strict systems 2020-04-26 20:18:48 +02:00
journal-remote Support journal-upload HTTPS without key and certificate 2020-04-16 14:05:41 +03:00
kernel-install Add meson build option to prevent building kernel-install 2020-04-14 20:22:32 +02:00
libsystemd Merge pull request #15570 from poettering/cmsg-find 2020-04-24 07:45:07 +02:00
libsystemd-network dhcp6: make string argument to sd_dhcp6_client_set_request_mud_url() const 2020-04-24 10:13:33 +02:00
libudev tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
locale tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
login tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
machine tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
machine-id-setup machine-id-setup: avoid unexpected aborting 2019-10-25 13:35:37 +09:00
modules-load tree-wide: drop libkmod.h when module-util.h is included 2019-11-04 00:30:32 +09:00
mount systemd: Fix busctl crash on aarch64 when setting output table format 2020-02-16 02:09:26 +09:00
network networkd: don't do lldp rx nor tx on bond devices 2020-04-23 20:01:30 +02:00
notify notify: add color to --help 2019-11-28 11:41:24 +01:00
nspawn socket-util: introduce type-safe, dereferencing wrapper CMSG_FIND_DATA around cmsg_find() 2020-04-23 19:41:15 +02:00
nss-myhostname tree-wide: use "hostname" spelling everywhere 2020-04-21 16:58:04 +02:00
nss-mymachines meson: make nologin path build time configurable 2019-07-18 12:46:35 +02:00
nss-resolve tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
nss-systemd nss-systemd: don't synthesize root/nobody when iterating 2020-04-23 23:07:08 +02:00
partition tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
path path: log at debug level when we can't query a variable 2020-03-27 20:12:45 +01:00
portable tree-wide: use recvmsg_safe() at various places 2020-04-23 09:41:47 +02:00
pstore tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
quotacheck headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
random-seed random-seed: add missing header for GRND_NONBLOCK (#14988) 2020-03-02 14:48:21 +09:00
rc-local-generator Drop support for /usr/sbin/halt.local 2019-05-23 10:19:01 +02:00
remount-fs Allow overriding /etc/fstab with $SYSTEMD_FSTAB 2019-11-13 22:04:51 +01:00
reply-password tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
resolve Merge pull request #15504 from poettering/cmsg-find-pure 2020-04-23 17:28:19 +02:00
rfkill util-lib: move shall_restore_state() to shared/reboot-util 2019-09-16 18:08:01 +02:00
run run: don't wait for start job to complete when running interactively anyway 2020-04-23 09:47:20 +02:00
run-generator core: use SPECIAL_DEFAULT_TARGET more 2019-11-28 09:13:45 +01:00
shared Merge pull request #15570 from poettering/cmsg-find 2020-04-24 07:45:07 +02:00
shutdown shutdown: unregister all binfmt_misc entries before entering shutdown loop 2020-04-23 17:14:38 +02:00
sleep sleep: automatically lock all home directories when suspending 2020-01-28 22:36:56 +01:00
socket-proxy tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
stdio-bridge stdio-bridge: slightly optimize formatting of structure 2019-03-19 15:29:44 +01:00
sulogin-shell tree-wide: normalize includes of public headers 2019-11-28 09:14:22 +01:00
sysctl sysctl: fix segfault 2020-02-06 23:49:32 +09:00
system-update-generator util-lib: move runlevel_to_target() to shared/unit-file 2019-09-16 18:08:00 +02:00
systemctl sd-bus: work around ubsan warning 2020-04-23 08:54:30 +02:00
systemd dhcp6: make string argument to sd_dhcp6_client_set_request_mud_url() const 2020-04-24 10:13:33 +02:00
sysusers sysusers,tmpfiles: always mention error when failing to replace specifiers 2020-04-23 14:50:07 +02:00
sysv-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
test tests: various small fixes for strict systems 2020-04-26 20:18:48 +02:00
time-wait-sync tree-wide: drop signal.h when signal-util.h is included 2019-11-04 00:30:32 +09:00
timedate tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
timesync tree-wide: use recvmsg_safe() at various places 2020-04-23 09:41:47 +02:00
tmpfiles tmpfiles: if we get ENOENT when opening /proc/self/fd/, check if /proc is mounted 2020-04-23 14:52:10 +02:00
tty-ask-password-agent tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
udev Merge pull request #15570 from poettering/cmsg-find 2020-04-24 07:45:07 +02:00
update-done headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
update-utmp Remove unneded {}s 2020-04-13 09:31:49 +02:00
user-sessions headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
userdb tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
vconsole tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
veritysetup id128: introduce ID128_UUID_STRING_MAX for sizing UUID buffers 2019-12-10 11:56:18 +01:00
version tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
volatile-root basic/fs-util: change CHASE_OPEN flag into a separate output parameter 2019-10-24 22:44:24 +09:00