Systemd/src/test
Lennart Poettering 30874dda3a dev-setup: generalize logic we use to create "inaccessible" device nodes
Let's generalize this, so that we can use this in nspawn later on, which
is pretty useful as we need to be able to mask files from the inner
child of nspawn too, where the host's /run/systemd/inaccessible
directory is not visible anymore. Moreover, if nspawn can create these
nodes on its own before the payload this means the payload can run with
fewer privileges.
2018-11-29 20:21:40 +01:00
..
generate-sym-test.py Mark python scripts executable 2017-05-07 20:16:47 -04:00
meson.build dev-setup: generalize logic we use to create "inaccessible" device nodes 2018-11-29 20:21:40 +01:00
test-acl-util.c user-util: rework get_user_creds() 2018-08-20 15:58:21 +02:00
test-af-list.c util: make *_from_name() returns negative errno on error 2018-11-28 20:20:50 +09:00
test-alloc-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-architecture.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-arphrd-list.c util: make *_from_name() returns negative errno on error 2018-11-28 20:20:50 +09:00
test-ask-password-api.c ask-password: check keyring in ask_password_tty and ask_password_agent 2018-10-31 18:26:58 +01:00
test-async.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-barrier.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-bitmap.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-boot-timestamps.c test: shorten test-boot-timestamps a bit 2018-10-08 21:40:44 +02:00
test-bpf.c manager: rework test flags set 2018-10-09 19:43:43 +02:00
test-btrfs.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-bus-util.c bus-util: drop now-unused functions 2018-09-20 16:52:02 +02:00
test-calendarspec.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-cap-list.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-capability.c tests: keep SYS_PTRACE when running under ASan 2018-11-09 16:26:19 +01:00
test-cgroup-mask.c cgroup v2: Don't require CPU controller for CPU accounting in 4.15+ 2018-11-18 12:21:41 +00:00
test-cgroup-util.c Merge pull request #10059 from yuwata/env-exec-directory 2018-09-25 12:34:30 +02:00
test-cgroup.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-chown-rec.c test-chown-rec: use logging helper here too 2018-10-28 23:28:34 +01:00
test-clock.c test: _cleanup_(unlink_tempfilep) in two more places 2018-10-26 12:56:53 +02:00
test-condition.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-conf-files.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-conf-parser.c core: remove JoinControllers= configuration setting 2018-11-16 14:54:13 +01:00
test-copy.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-cpu-set-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-daemon.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-date.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-dev-setup.c dev-setup: generalize logic we use to create "inaccessible" device nodes 2018-11-29 20:21:40 +01:00
test-device-nodes.c tree-wide: drop copyright lines for more authors 2018-06-22 16:39:45 +02:00
test-dissect-image.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-dlopen.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
test-dns-domain.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-ellipsize.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-emergency-action.c units: allow and use SuccessAction=exit-force in system systemd-exit.service 2018-10-17 19:32:07 +02:00
test-engine.c tests: add a helper function to skip with errno 2018-09-14 09:29:57 +02:00
test-env-util.c Move LONG_LINE_MAX definition to fileio.h 2018-11-14 16:25:32 +01:00
test-escape.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-exec-util.c strv: wrap strv_new() in a macro so that NULL sentinel is implicit 2018-10-31 18:00:52 +01:00
test-execute.c tests: skip test-execute on TravisCI under ASan 2018-11-24 06:05:23 +03:00
test-extract-word.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-fd-util.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-fdset.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-fileio.c fileio: automatically add NULL sentinel to parse_env_file() 2018-11-14 17:01:55 +01:00
test-firewall-util.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-format-table.c test: add a reproducer of issue #9549 2018-07-15 17:07:18 +09:00
test-fs-util.c test: fix memleak in test-fs-util 2018-10-04 16:24:44 +09:00
test-fstab-util.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
test-gcrypt-util.c Fix SPDX license tags 2018-06-14 13:05:41 +02:00
test-glob-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-hash.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-hashmap-ordered.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
test-hashmap-plain.c tests: centralize check for slow tests 2018-09-13 12:07:27 +02:00
test-hashmap.c tree-wide: drop copyright lines for more authors 2018-06-22 16:39:45 +02:00
test-helper.c tests: skip test_exec_ambientcapabilities on Travis CI under ASan 2018-11-20 20:23:19 +01:00
test-helper.h tests: skip test_exec_ambientcapabilities on Travis CI under ASan 2018-11-20 20:23:19 +01:00
test-hexdecoct.c tree-wide: some automatic coccinelle fixes (#10463) 2018-10-20 00:07:46 +09:00
test-hostname-util.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-hostname.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-id128.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-in-addr-util.c in-addr-util: make in_addr_default_prefix_from_string() or friend set 0 to prefixlen when family == AF_INET6 (#10665) 2018-11-07 15:31:26 +09:00
test-install-root.c shared/install: avoid overwriting 'r' counter with a partial result 2018-10-02 15:36:24 +02:00
test-install.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-io-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-ipcrm.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-job-type.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-journal-importer.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-json.c json: teach json builder "conditional" object fields 2018-11-28 08:38:55 +01:00
test-libudev.c test: add tests for libudev-list 2018-11-22 23:42:07 +09:00
test-list.c tree-wide: beautify remaining copyright statements 2018-06-14 10:20:21 +02:00
test-locale-util.c locale-util: add unicode bullet to special glyphs 2018-11-28 08:43:47 +01:00
test-log.c basic/log: add concept of "synthethic errnos" 2018-11-22 10:45:08 +01:00
test-loopback.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-mount-util.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-namespace.c test: skip various tests if namespacing is not available 2018-10-24 19:40:24 +02:00
test-netlink-manual.c tests: add a helper function to skip with errno 2018-09-14 09:29:57 +02:00
test-ns.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-nss.c strv: wrap strv_new() in a macro so that NULL sentinel is implicit 2018-10-31 18:00:52 +01:00
test-os-util.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-parse-util.c parse-util: rework parse_dev() based on safe_atou() and DEVICE_MAJOR_VALID()/DEVICE_MINOR_VALID() 2018-11-29 20:02:39 +01:00
test-path-lookup.c Merge pull request #10070 from keszybz/test-reporting 2018-09-15 15:55:15 +09:00
test-path-util.c path-util: add new path_join_many() API 2018-11-29 20:03:56 +01:00
test-path.c tests: always use the right vtable wrapper calls 2018-11-20 05:34:29 +03:00
test-pretty-print.c Split out pretty-print.c and move pager.c and main-func.h to shared/ 2018-11-20 18:40:02 +01:00
test-prioq.c test: add one more test for prioq_remove() 2018-10-17 01:18:10 +09:00
test-proc-cmdline.c veritysetup-generator: treat '-' and '_' as equivalent 2018-11-20 13:19:08 +01:00
test-process-util.c test: skip various tests if namespacing is not available 2018-10-24 19:40:24 +02:00
test-procfs-util.c Correct a number of trivial typos. 2018-06-18 22:44:44 +02:00
test-random-util.c random-util: allow RDRAND to be used in 32-bit x86 binaries 2018-11-10 14:56:53 +01:00
test-ratelimit.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-replace-var.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-rlimit-util.c tree-wide: drop 'This file is part of systemd' blurb 2018-06-14 10:20:20 +02:00
test-sched-prio.c tests: add a helper function to skip with errno 2018-09-14 09:29:57 +02:00
test-sd-hwdb.c test: initialize hwdb so that the test won't try to free memory it has never allocated 2018-11-08 13:49:45 +01:00
test-seccomp.c test: skip various tests if namespacing is not available 2018-10-24 19:40:24 +02:00
test-selinux.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-serialize.c Move LONG_LINE_MAX definition to fileio.h 2018-11-14 16:25:32 +01:00
test-set-disable-mempool.c test: add tests for $SYSTEMD_MEMPOOL= 2018-10-12 17:54:23 +09:00
test-set.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
test-sigbus.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-signal-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-siphash24.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-sizeof.c test-sizeof: another aproach to _Float128 availability detection 2018-06-20 17:06:21 +02:00
test-sleep.c strv: wrap strv_new() in a macro so that NULL sentinel is implicit 2018-10-31 18:00:52 +01:00
test-socket-util.c socket-util: include trailing NUL byte in SOCKADDR_UN_LEN() count for fs sockets 2018-10-15 19:40:51 +02:00
test-specifier.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-stat-util.c stat-util: add new APIs device_path_make_{major_minor|canonical}() and device_path_parse_major_minor() 2018-11-29 20:21:39 +01:00
test-strbuf.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-string-util.c Introduce free_and_strndup and use it in bus-message.c 2018-10-02 11:42:45 +02:00
test-strip-tab-ansi.c Split out pretty-print.c and move pager.c and main-func.h to shared/ 2018-11-20 18:40:02 +01:00
test-strv.c strv: add new macro STARTSWITH_SET() 2018-11-26 14:06:01 +01:00
test-strxcpyx.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-systemd-tmpfiles.py shared: add %g, %G specifiers for group / gid (#10368) 2018-10-13 17:26:48 +09:00
test-tables.c Merge pull request #9685 from yuwata/fix-9663 2018-07-23 21:17:07 +02:00
test-terminal-util.c Split out pretty-print.c and move pager.c and main-func.h to shared/ 2018-11-20 18:40:02 +01:00
test-time-util.c time-util: make parse_sec() not accept "12.34.56" 2018-11-06 19:24:47 +03:00
test-tmpfiles.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-udev.c udev: rename udev_rules_unref() to udev_rules_free() 2018-11-23 00:07:40 +09:00
test-uid-range.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-umount.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-unaligned.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
test-unit-file.c fileio: drop "newline" parameter for env file parsers 2018-11-14 17:01:54 +01:00
test-unit-name.c shared: add %g, %G specifiers for group / gid (#10368) 2018-10-13 17:26:48 +09:00
test-user-util.c user-util: rework get_user_creds() 2018-08-20 15:58:21 +02:00
test-utf8.c utf8: add utf8_to_utf16() helper 2018-09-25 15:57:47 +02:00
test-util.c basic/util: import memeqzero from casync 2018-11-18 16:12:53 +01:00
test-verbs.c Drop copyrights tags for "systemd authors" 2018-06-20 12:11:12 +02:00
test-watch-pid.c manager: rework test flags set 2018-10-09 19:43:43 +02:00
test-watchdog.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-web-util.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-xattr-util.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-xml.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00