summaryrefslogtreecommitdiffstats
path: root/test/TEST-40-EXEC-COMMAND-EX (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-07-12NEWS: mention source mode for MACVLAN or MACVTAPYu Watanabe1-0/+3
2020-07-11bus: use bus_log_parse_error to print messagefangxiuning4-4/+4
2020-07-11namespace: unify logging in mount_tmpfsChristian Göttsche1-1/+1
Fixes: abad72be4df9d5a13ceecd5b4d073adb370882b7 Follow up: #16426
2020-07-11shared: fix error handling in make_inaccessible_nodesChristian Göttsche1-2/+2
_label wrappers return -errno on failure instead of returning -1 and setting global errno. Fixes: 8d9cbd809db492df9d94c0c664bd0d2e53416531 Follow up: #16426
2020-07-11man: fix some manvolnumAnita Zhang21-24/+24
2020-07-11namespace: fix MAC labels of TemporaryFileSystem=Christian Göttsche1-4/+12
Reproducible with: systemd-run -p TemporaryFileSystem=/root -t /bin/bash ls -dZ /root Prior: root:object_r:tmpfs_t:s0 /root Past: root:object_r:user_home_dir_t:s0 /root
2020-07-10selinux: create standard user-runtime nodes with default contextChristian Göttsche1-2/+2
Currently systemd-user-runtime-dir does not create the files in /run/user/$UID/systemd/inaccessible with the default SELinux label. The user and role part of these labels should be based on the user related to $UID and not based on the process context of systemd-user-runtime-dir. Since v246-rc1 (9664be199af6) /run/user/$UID/systemd is also created by systemd-user-runtime-dir and should also be created with the default SELinux context.
2020-07-10basic: add helper function mknod_label()Christian Göttsche2-0/+21
2020-07-10NEWS: grammar improvements (#16413)Clinton Roy1-8/+8
2020-07-10Added MSI Prestige15 A10SC specific keycodesFilippo Falezza1-0/+5
This commit enables the microphone mute button and the screen rotate button, even if the latter is improperly linked. I have documented how to achieve this in https://wiki.archlinux.org/index.php/MSI_P15#Fn_Keys .
2020-07-10Add support for HP Elitebook x360 1040 G6 micmute buttonSurhud More1-0/+2
2020-07-10Explain how to determine hierarchy type from shellFlorian Mayer1-0/+2
This makes it easier for people than just recommending the syscall.
2020-07-10basic/cap-list: reduce scope of variablesZbigniew Jędrzejewski-Szmek2-7/+3
2020-07-10basic/capability-util: let cap_last_cap() return unsigned integerZbigniew Jędrzejewski-Szmek5-27/+18
We never return anything higher than 63, so using "long unsigned" as the type only confused the reader. (We can still use "long unsigned" and safe_atolu() to parse the kernel file.)
2020-07-10basic/cap-list: parse/print numerical capabilitiesZbigniew Jędrzejewski-Szmek2-4/+10
We would refuse to print capabilities which were didn't have a name for. The kernel adds new capabilities from time to time, most recently cap_bpf. 'systmectl show -p CapabilityBoundingSet ...' would fail with "Failed to parse bus message: Invalid argument" because capability_set_to_string_alloc() would fail with -EINVAL. So let's print such capabilities in hexadecimal: CapabilityBoundingSet=cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a ... For symmetry, also allow capabilities that we don't know to be specified. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1853736.
2020-07-10install: fix wrong data typefangxiuning2-2/+2
2020-07-10NEWS: drop duplicate entry, add --image= entryLennart Poettering1-9/+4
2020-07-09NEWS: add datev246-rc1Zbigniew Jędrzejewski-Szmek1-0/+2
2020-07-09userdb: fix dlopen callZbigniew Jędrzejewski-Szmek1-1/+1
The call would always fail with: systemd-userwork[780]: Failed to dlopen(libnss_systemd.so.2), ignoring: /usr/lib64libnss_systemd.so.2: cannot open shared object file: No such file or directory
2020-07-09NEWS: add blurb about os-release and $container_host_*Zbigniew Jędrzejewski-Szmek1-0/+8
2020-07-08test-netowrk: in test_bridge_configure_without_carrier, avoid strange test ↵Dan Streetman1-3/+2
failures For some reason the wait-online is failing intermittently; it's unclear exactly why, but this hopefully avoids the failure for unrelated PR. This is a workaround (not fix) for #16105
2020-07-08test-network: don't print networkctl output for passing subtestsDan Streetman1-1/+0
This just clutters up the logs.
2020-07-08test: bump the TEST-47 sleeps once againFrantisek Sumsal1-2/+2
Several recent failed runs show that the test is still racy in two ways: 1) Sometimes it takes a while before the PID file is created, leading to: ``` [ 10.950540] testsuite-47.sh[308]: ++ cat /leakedtestpid [ 10.959712] testsuite-47.sh[308]: cat: /leakedtestpid: No such file or directory [ 10.959824] testsuite-47.sh[298]: + leaked_pid= ``` 2) Again, sometimes we check the leaked PID before the unit is actually stopped, leading to a false negative: ``` [ 18.099599] testsuite-47.sh[346]: ++ cat /leakedtestpid [ 18.116462] testsuite-47.sh[333]: + leaked_pid=342 [ 18.117101] testsuite-47.sh[333]: + systemctl stop testsuite-47-repro ... [ 20.033907] testsuite-47.sh[333]: + ps -p 342 [ 20.080050] testsuite-47.sh[351]: PID TTY TIME CMD [ 20.080050] testsuite-47.sh[351]: 342 ? 00:00:00 sleep [ 20.082040] testsuite-47.sh[333]: + exit 42 ```
2020-07-08network: add support for MACVLAN source modeAlvin Šipraga8-2/+72
Add support for creating a MACVLAN interface in "source" mode by specifying Mode=source in the [MACVLAN] section of a .netdev file. A list of allowed MAC addresses for the corresponding MACVLAN can also be specified with the SourceMACAddress= option of the [MACVLAN] section. An example .netdev file: [NetDev] Name=macvlan0 Kind=macvlan MACAddress=02:DE:AD:BE:EF:00 [MACVLAN] Mode=source SourceMACAddress=02:AB:AB:AB:AB:01 02:CD:CD:CD:CD:01 SourceMACAddress=02:EF:EF:EF:EF:01 The same keys can also be specified in [MACVTAP] for MACVTAP kinds of interfaces, with the same semantics.
2020-07-08meson: bump version numbers for v246Zbigniew Jędrzejewski-Szmek1-3/+3
2020-07-08NEWS: update contributors list for v246-rcZbigniew Jędrzejewski-Szmek2-1/+39
2020-07-08git-contrib: simplify implementation a bitZbigniew Jędrzejewski-Szmek1-4/+1
2020-07-08sd-device: use log_device_debug_errno()Yu Watanabe1-1/+1
2020-07-08table use table_log_print_error() instead of table_log_show_errorfangxiuning14-26/+26
2020-07-08table add table_log_sort_error()fangxiuning6-5/+8
2020-07-08table add table_log_show_error()fangxiuning10-14/+17
2020-07-07docs: update information where to file bugs against RHEL/CentOS versions of ↵Lukas Nykryn1-1/+1
systemd
2020-07-07add error message when bind mount src missingAlan Perry2-5/+8
2020-07-07network: make address_handler() staticYu Watanabe2-2/+1
2020-07-07network: introduce own address handler for dhcp6 delegated prefixYu Watanabe1-3/+26
Fixes #16365.
2020-07-07xdg-autostart: ignore all empty entries in multi-string entriesZbigniew Jędrzejewski-Szmek2-12/+11
The desktop file specification allows entries like ";;;;;;", full of empty strings. But looking at the actual list of supported keys [1], empty entries are meaningless (unless we would allow e.g. the desktop name to be the empty string. But that doesn't seem very useful either). So let's just simplify our life and skip any empty substrings entirely. This would also resolve the fuzzer case: $ valgrind build/fuzz-xdg-desktop test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812 test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812... ok ==2899241== HEAP SUMMARY: ==2899241== in use at exit: 0 bytes in 0 blocks ==2899241== total heap usage: 484,385 allocs, 484,385 frees, 12,411,330 bytes allocated ↓ ==2899650== HEAP SUMMARY: ==2899650== in use at exit: 0 bytes in 0 blocks ==2899650== total heap usage: 1,325 allocs, 1,325 frees, 1,463,602 bytes allocated
2020-07-07man: match parenthesesTopi Miettinen9-10/+10
Files found with: for f in *; do \ l=`tr -d '[^(]' < $f | wc -c`; \ r=`tr -d '[^)]' < $f | wc -c`; \ if [ $l -ne $r ]; then \ echo $f $l $r; \ fi; \ done
2020-07-07xdg-autostart: avoid quadratic behaviour in strv parsingZbigniew Jędrzejewski-Szmek2-20/+48
The fuzzer test case has a giant line with ";;;;;;;;;;;..." which is turned into a strv of empty strings. Unfortunately, when pushing each string, strv_push() needs to walk the whole array, which leads to quadratic behaviour. So let's use greedy_allocation here and also keep location in the string to avoid iterating. build/fuzz-xdg-desktop test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812 51.10s user 0.01s system 99% cpu 51.295 total ↓ build/fuzz-xdg-desktop test/fuzz/fuzz-xdg-desktop/oss-fuzz-22812 0.07s user 0.01s system 96% cpu 0.083 total Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22812. Other minor changes: - say "was already defined" instead of "defined multiple times" to make it clear that we're ignoring this second definition, and not all definitions of the key - unescaping needs to be done also for the last entry
2020-07-07journald: minor wording tweak in messageZbigniew Jędrzejewski-Szmek1-1/+1
For a user "from the kernel" might be rather unclear.
2020-07-07tree-wide: more repeated wordsZbigniew Jędrzejewski-Szmek8-10/+10
2020-07-07networkd: use capitalized "IP" and "TOS" in messagesZbigniew Jędrzejewski-Szmek3-16/+16
2020-07-07journal/compress: drop "future" code in zstd compressionZbigniew Jędrzejewski-Szmek119-819/+352
We generally don't include stuff that is not used. This can be easily ressurected if ever needed. Fixes CID#1430210.
2020-07-07all: fix minor typosYuri Chornoivan6-6/+6
[thaller@redhat.com: original patch by Yuri, extracted from [1]] [1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/565
2020-07-07update NEWSLennart Poettering1-1/+24
2020-07-07update TODOLennart Poettering1-4/+8
2020-07-07TODOLennart Poettering1-2/+6
2020-07-07firstboot: add option to turn off welcome text displayLennart Poettering2-0/+23
2020-07-07man: document the new --image= switch of systemd-firstbootLennart Poettering1-0/+12
2020-07-07firstboot: add --image= switchLennart Poettering1-6/+108
This is like --root=, but takes an image file path or device node path and dissects the image directly, mounting it internally.
2020-07-07mount-util: use UMOUNT_NOFOLLOW in recursive umounterLennart Poettering1-3/+2
When we only want to unmount mount points below some path then it is against our interest to follow symlinks. Hence don't.