Systemd/src/test
Lennart Poettering d944dc9553 namespace: chase symlinks for mounts to set up in userspace
This adds logic to chase symlinks for all mount points that shall be created in
a namespace environment in userspace, instead of leaving this to the kernel.
This has the advantage that we can correctly handle absolute symlinks that
shall be taken relative to a specific root directory. Moreover, we can properly
handle mounts created on symlinked files or directories as we can merge their
mounts as necessary.

(This also drops the "done" flag in the namespace logic, which was never
actually working, but was supposed to permit a partial rollback of the
namespace logic, which however is only mildly useful as it wasn't clear in
which case it would or would not be able to roll back.)

Fixes: #3867
2016-09-25 10:42:18 +02:00
..
.gitignore
Makefile
test-acl-util.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-af-list.c
test-alloc-util.c tests: move alloc related tests to test-alloc-util.c 2016-03-03 18:46:58 +01:00
test-architecture.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-arphrd-list.c
test-ask-password-api.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-async.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-barrier.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-bitmap.c
test-boot-timestamps.c shared/acpi-fpdt: use ENODATA for missing data and skip test 2016-03-04 21:45:45 -05:00
test-btrfs.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-calendarspec.c util-lib: make timestamp generation and parsing reversible (#3869) 2016-08-03 19:04:53 -04:00
test-cap-list.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-capability.c
test-cgroup-mask.c Merge pull request #3290 from htejun/cgroup2-io-compat 2016-05-20 18:53:11 +02:00
test-cgroup-util.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-cgroup.c core: when forcibly killing/aborting left-over unit processes log about it 2016-07-20 14:35:15 +02:00
test-clock.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-condition.c test: always check whether condition allocation worked 2016-08-19 16:00:51 +02:00
test-conf-files.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-conf-parser.c tests: move conf-parser related tests to test-conf-parser.c 2016-03-03 19:04:06 +01:00
test-copy.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-cpu-set-util.c tests: move cpu-set-util related tests to test-cpu-set-util.c 2016-03-03 18:46:58 +01:00
test-daemon.c Enable test-daemon, test-log, test-watchdog by default 2016-03-04 21:45:45 -05:00
test-date.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-device-nodes.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-dns-domain.c shared: recognize DNS names with more than one trailing dot as invalid (#4111) 2016-09-09 16:11:54 +01:00
test-ellipsize.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-engine.c tests: get rid of strerror 2016-09-13 20:10:57 -04:00
test-env-util.c test-env-util: test env_{value,assignment}_is_valid 2016-03-21 16:49:42 -04:00
test-escape.c tests: move escape related tests to test-escape.c 2016-03-03 18:46:58 +01:00
test-execute.c test-execute: fix %n typo (#4153) 2016-09-15 14:21:42 +02:00
test-extract-word.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-fd-util.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-fdset.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-fileio.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-firewall-util.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-fs-util.c namespace: chase symlinks for mounts to set up in userspace 2016-09-25 10:42:18 +02:00
test-fstab-util.c tests: move fstab-util related tests to test-fstab-util.c 2016-03-03 19:04:06 +01:00
test-glob-util.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-hashmap-plain.c test-hashmap: fix undefined behaviour on string constants 2016-02-18 19:39:10 -05:00
test-hashmap.c
test-helper.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-hexdecoct.c tests: move hexdecoct tests to test-hexdecoct.c 2016-03-03 18:46:58 +01:00
test-hostname-util.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-hostname.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-id128.c test: fix stack overflow reported by ASAN 2016-08-06 02:14:51 +00:00
test-install-root.c shared/install: allow "enable" on linked unit files (#3790) 2016-07-25 16:20:16 +02:00
test-install.c core: Filter by unit name behind the D-Bus, instead on the client side (#3142) 2016-04-29 15:59:51 +02:00
test-io-util.c tests: move io-util related tests to test-io-util 2016-03-03 19:04:06 +01:00
test-ipcrm.c core: add RemoveIPC= setting 2016-08-19 00:37:25 +02:00
test-job-type.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-libudev.c test-libudev: disable monitor mode by default and add to automatic tests 2016-03-04 21:45:45 -05:00
test-list.c
test-locale-util.c
test-log.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-loopback.c Move test-loopback to normal tests 2016-03-04 21:45:44 -05:00
test-namespace.c tests: don't silently skip test-namespace 2016-04-10 23:41:04 +00:00
test-netlink-manual.c tree-wide: minor formatting inconsistency cleanups 2016-02-23 14:20:34 -08:00
test-ns.c namespace: chase symlinks for mounts to set up in userspace 2016-09-25 10:42:18 +02:00
test-nss.c tree-wide: htonl() is weird, let's use htobe32() instead (#3538) 2016-06-15 01:26:01 +02:00
test-parse-util.c util-lib: unify parsing of nice level values 2016-08-05 11:18:32 +02:00
test-path-lookup.c systemctl: don't confuse sysv code with generated units 2016-04-12 13:43:32 +02:00
test-path-util.c test-path-util: check for /lt-test-path-util or /test-path-util (#3841) 2016-07-31 21:50:50 -04:00
test-path.c tests: get rid of strerror 2016-09-13 20:10:57 -04:00
test-prioq.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-proc-cmdline.c core: parse rd.rescue and rd.emergency as initrd-specific shorthands (#3488) 2016-06-13 16:28:42 +02:00
test-process-util.c tests: skip process 1 tests if systemd not is running 2016-07-29 14:30:46 -07:00
test-ratelimit.c
test-replace-var.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-rlimit-util.c core: make parsing of RLIMIT_NICE aware of actual nice levels 2016-04-29 16:27:49 +02:00
test-sched-prio.c tests: get rid of strerror 2016-09-13 20:10:57 -04:00
test-selinux.c test-selinux: use yes_no() and strnull() 2016-03-04 21:45:58 -05:00
test-set.c
test-sigbus.c test: test-sigbus must be skipped when -fsanitize=address is used 2016-08-06 02:14:51 +00:00
test-signal-util.c tests: move signal-util related tests to test-signal-util.c 2016-03-03 18:46:58 +01:00
test-siphash24.c test-siphash24: add a test for concatenating very short buffers 2016-02-20 16:34:59 -05:00
test-sizeof.c test-sizeof: add a helper which prints variable sizes and signedness 2016-03-02 10:42:27 -05:00
test-sleep.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-socket-util.c tree-wide: htonl() is weird, let's use htobe32() instead (#3538) 2016-06-15 01:26:01 +02:00
test-stat-util.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-strbuf.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-string-util.c tests: move string related tests to test-string-util.c 2016-03-03 18:46:58 +01:00
test-strip-tab-ansi.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-strv.c basic/strv: add an extra NUL after strings in strv_make_nulstr 2016-07-17 15:34:57 -04:00
test-strxcpyx.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-tables.c remove bus-proxyd 2016-02-12 19:10:01 +01:00
test-terminal-util.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-time.c util-lib: make timestamp generation and parsing reversible (#3869) 2016-08-03 19:04:53 -04:00
test-tmpfiles.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-udev.c tests: port udev-test to log_*_errno (#3015) 2016-04-11 21:31:57 +02:00
test-uid-range.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-unaligned.c util-lib: add accessors for unaligned native endian words 2016-06-06 19:59:09 +02:00
test-unit-file.c Merge pull request #4133 from keszybz/strerror-removal 2016-09-14 11:17:58 +02:00
test-unit-name.c core: remove ManagerRunningAs enum 2016-04-12 13:43:30 +02:00
test-user-util.c sysusers: move various user credential validity checks to src/basic/ 2016-07-22 15:53:45 +02:00
test-utf8.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-util.c core: support percentage specifications on TasksMax= 2016-07-22 15:33:12 +02:00
test-verbs.c
test-watchdog.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-web-util.c tests: move web-util related tests to test-web-util.c 2016-03-03 18:46:58 +01:00
test-xattr-util.c tests: move xattr-util related tests to test-xattr-util.c 2016-03-03 19:04:07 +01:00
test-xml.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00