summaryrefslogtreecommitdiffstats
path: root/src/sulogin-shell (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-30dhcp4: use memdup_suffix0() instead of strndup() for binary dataYu Watanabe1-1/+1
C.f. ac0a94f7438b49a0890d9806db1fa211a5bca10a. Fixes #12693.
2019-05-30pager: Fix deadlock when using built-in pagerFelix Riemann1-1/+3
The parent is waiting for an EOF on the pipe transmitting the pager name before starting to send data. With external pagers this happens due to execlp() CLOEXEC'ing the pipe, so the internal pager needs to close it manually.
2019-05-30cryptsetup: Add dependency for detached headerRoberto Santalla1-24/+56
Fixes #12650 cryptsetup: Extract dependency check to a separate function cryptsetup: style improvements, error checking Return early on failure/nothing to do Removed braces from single-line ifs Check return value of fstab_filter_options cryptsetup: code style
2019-05-30tests: skip test-bpf only when we're 100% sure it's run in containersEvgeny Vereshchagin1-1/+1
This is just a follow-up to https://github.com/systemd/systemd/pull/12617.
2019-05-29shared/cpu-set-util: only force range printing one timeZbigniew Jędrzejewski-Szmek2-5/+12
The idea is to have at least one range to make the new format clearly distinguishable from the old. But it is enough to just do it once. In particular, in case the affinity would be specified like 0, 2, 4, 6…, this gives much shorter output.
2019-05-29systemctl: present CPUAffinity mask as a list of CPU index rangesMichal Sekletar1-0/+22
2019-05-29shared/cpu-set-util: introduce cpu_set_to_range()Michal Sekletar3-0/+89
2019-05-29test-cpu-set-util: add test for dbus conversionsZbigniew Jędrzejewski-Szmek1-0/+31
2019-05-29shared/cpu-set-util: make transfer of cpu_set_t over bus endian safeMichal Sekletar4-2/+53
2019-05-29hwdb: add axis range corrections for the Asus N53SVFeldwor1-0/+7
2019-05-29test-network: bump time limit for wait_address()Yu Watanabe1-1/+1
Maximum time interval of DHCPv4 request is 63sec. So, setting 100sec is enough.
2019-05-29shared/cpu-set-util: drop now-unused cleanup functionZbigniew Jędrzejewski-Szmek1-3/+0
2019-05-29test-execute: use CPUSet tooZbigniew Jędrzejewski-Szmek3-39/+8
cpu_set_malloc() was the last user. It doesn't seem useful to keep it just to save the allocation of a few hundred bytes in a test, so it is dropped and a fixed maximum is allocated (1024 bytes).
2019-05-29pid1: when reloading configuration, forget old settingsZbigniew Jędrzejewski-Szmek1-49/+97
If we had a configuration setting from a configuration file, and it was removed, we'd still remember the old value, because there's was no mechanism to "reset" everything, just to assign new values. Note that the effect of this is limited. For settings that have an "ongoing" effect, like systemd.confirm_spawn, the new value is simply used. But some settings can only be set at start. In particular, CPUAffinity= will be updated if set to a new value, but if CPUAffinity= is fully removed, it will not be reset, simply because we don't know what to reset it to. We might have inherited a setting, or we might have set it ourselves. In principle we could remember the "original" value that was set when we were executed, but propagate this over reloads and reexecs, but that would be a lot of work for little gain. So this corner case of removal of CPUAffinity= is not handled fully, and a reboot is needed to execute the change. As a work-around, a full mask of CPUAffinity=0-8191 can be specified.
2019-05-29pid1: don't reset setting from /proc/cmdline upon restartZbigniew Jędrzejewski-Szmek1-10/+16
We have settings which may be set on the kernel command line, and also in /proc/cmdline (for pid1). The settings in /proc/cmdline have higher priority of course. When a reload was done, we'd reload just the configuration file, losing the overrides. So read /proc/cmdline again during reload. Also, when initially reading the configuration file when program starts, don't treat any errors as fatal. The configuration done in there doesn't seem important enough to refuse boot.
2019-05-29pid1: parse CPUAffinity= in incremental fashionZbigniew Jędrzejewski-Szmek3-15/+35
This makes the handling of this option match what we do in unit files. I think consistency is important here. (As it happens, it is the only option in system.conf that is "non-atomic", i.e. where there's a list of things which can be split over multiple assignments. All other options are single-valued, so there's no issue of how to handle multiple assignments.)
2019-05-29test-cpu-set-util: add a smoke test for test_parse_cpu_set_extend()Zbigniew Jędrzejewski-Szmek1-0/+25
2019-05-29test-cpu-set-util: add simple test for cpus_in_affinity_mask()Zbigniew Jędrzejewski-Szmek1-0/+9
2019-05-29Move cpus_in_affinity_mask() to cpu-set-util.[ch]Zbigniew Jędrzejewski-Szmek6-39/+40
It just seems to fit better there and it's always better to have things in shared/ rather than basic/.
2019-05-29Rework cpu affinity parsingZbigniew Jędrzejewski-Szmek14-256/+295
The CPU_SET_S api is pretty bad. In particular, it has a parameter for the size of the array, but operations which take two (CPU_EQUAL_S) or even three arrays (CPU_{AND,OR,XOR}_S) still take just one size. This means that all arrays must be of the same size, or buffer overruns will occur. This is exactly what our code would do, if it received an array of unexpected size over the network. ("Unexpected" here means anything different from what cpu_set_malloc() detects as the "right" size.) Let's rework this, and store the size in bytes of the allocated storage area. The code will now parse any number up to 8191, independently of what the current kernel supports. This matches the kernel maximum setting for any architecture, to make things more portable. Fixes #12605.
2019-05-29man: re-indent systemd.netdev.xmlYu Watanabe1-347/+360
2019-05-29test-network: drop 25-nlmon.networkYu Watanabe3-8/+2
2019-05-29man: add vrf sectionFranz Pletz1-0/+15
2019-05-29tree-wide: replace if_indextoname() with format_ifname()Yu Watanabe7-22/+29
2019-05-29util: introduce format_ifname()Yu Watanabe3-0/+14
2019-05-29networkctl: use Table for 'lldp' commandYu Watanabe1-15/+43
2019-05-29networkctl: use Table for 'label' commandYu Watanabe1-3/+25
2019-05-29networkctl: use Table for 'status' commandYu Watanabe1-131/+323
2019-05-29networkctl: use Table for 'list' commandYu Watanabe1-11/+51
2019-05-29table: add TABLE_IFINDEX typeYu Watanabe2-0/+33
2019-05-29table: add more basic typesYu Watanabe2-0/+108
2019-05-29table: add teble_add_string_cell()Yu Watanabe2-0/+15
2019-05-29networkctl: use parse_ifindex_or_ifname()Yu Watanabe1-6/+3
2019-05-29resolvectl: use parse_ifindex_or_ifname()Yu Watanabe1-26/+12
2019-05-29util: add assertionsYu Watanabe1-0/+3
2019-05-29util: introduce parse_ifindex_or_ifname()Yu Watanabe2-0/+20
2019-05-29networkctl: add support to delete virtual netdevsSusant Sahani2-0/+68
We now don't have the support to delete netdevs and dependent upon iproute to delete. With this we can delete via networkctl and use in our test cases too. Note that it supports deleting multiple links at once. ``` sudo ./networkctl delete test1 test2 test3 test4 ```
2019-05-28systemd-sleep: replace rtc wakealarm with CLOCK_BOOTTIME_ALARM s2hZach Smith3-50/+29
refactor to use timerfd in place of rtc wakealarm confirm CLOCK_BOOTTIME_ALARM support in can_s2h Remove CLOCK_BOOTTIME_ALARM task from TODO remove unnecessary check on clock_supported return
2019-05-28seccomp: add new 5.1 syscall pidfd_send_signal() to filter set listLennart Poettering1-0/+1
2019-05-28test: exit cleanly on successLennart Poettering1-0/+1
2019-05-28test-network: add a basic test for nlmonYu Watanabe3-0/+17
2019-05-28network: add nlmon supportYu Watanabe9-3/+53
nlmon is a Netlink monitor device.
2019-05-28network: add NetDevVTable::generate_mac flagYu Watanabe16-1/+29
2019-05-28network: do not send DHCPRELEASE when CriticalConnection= is enabledYu Watanabe1-2/+15
2019-05-28test-network: use wait_online() in NetworkdDHCPServerTests or friendsYu Watanabe1-12/+8
2019-05-28test-network: move test_domain() to NetworkdNetworkTests classYu Watanabe1-17/+13
2019-05-28test-network: rename needlessly long class namesYu Watanabe1-7/+7
2019-05-28test-network: use wait_online() instead of waiting for 10 secondsYu Watanabe2-58/+72
But some tests requires both IPv4 and IPv6 addresses are configured. Only in that case wait for addresses to be configured.
2019-05-28test-network: drop unused linkYu Watanabe1-1/+0
2019-05-28test-network: rename link_remove() to remove_links()Yu Watanabe1-19/+19