1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00
Commit Graph

37806 Commits

Author SHA1 Message Date
LennartPoettering
3c31f15cdb 2018-12-11 10:58:40 +01:00
LennartPoettering
e2f9b633c4 2018-12-11 10:58:40 +01:00
LennartPoettering
afce8ff3af 2018-12-11 10:58:40 +01:00
LennartPoettering
d363512c92 2018-12-11 10:58:40 +01:00
LennartPoettering
ee83da3a75 2018-12-11 10:58:40 +01:00
LennartPoettering
b1661148ac 2018-12-11 10:58:39 +01:00
LennartPoettering
13f79279b2 2018-12-11 10:58:39 +01:00
LennartPoettering
fb30e224e7 2018-12-11 10:58:39 +01:00
LennartPoettering
1f6bee9328 2018-12-11 10:58:39 +01:00
LennartPoettering
f47346c3aa 2018-12-11 10:58:39 +01:00
LennartPoettering
ce7c9f453a 2018-12-11 10:58:39 +01:00
127.0.0.1
128faa63f2 typo fix 2018-12-11 10:58:39 +01:00
LennartPoettering
a5d1717c40 2018-12-11 10:58:39 +01:00
LennartPoettering
648f251ff9 2018-12-11 10:58:39 +01:00
LennartPoettering
2d2111748f 2018-12-11 10:58:39 +01:00
LennartPoettering
adb51bc84d 2018-12-11 10:58:39 +01:00
LennartPoettering
0adad03eb8 2018-12-11 10:58:39 +01:00
LennartPoettering
cd6c4dd571 2018-12-11 10:58:39 +01:00
LennartPoettering
80b0c64bcf 2018-12-11 10:58:39 +01:00
LennartPoettering
e13da0ac1e 2018-12-11 10:58:39 +01:00
LennartPoettering
93aae43890 2018-12-11 10:58:39 +01:00
LennartPoettering
6f99e67081 2018-12-11 10:58:39 +01:00
LennartPoettering
3c36dd1ca5 2018-12-11 10:58:39 +01:00
LennartPoettering
6dbee95541 2018-12-11 10:58:39 +01:00
LennartPoettering
5536de5cc4 2018-12-11 10:58:39 +01:00
LennartPoettering
7b1e4518e0 2018-12-11 10:58:39 +01:00
Zbigniew Jędrzejewski-Szmek
3c79311a6a udevadm: allow multiple arguments to "info"
This matches udevadm trigger, which allows multiple arguments since
80877656a5.
2018-12-11 09:29:21 +01:00
Zbigniew Jędrzejewski-Szmek
b6854081ff udevadm: allow a .device unit to be specified for query and trigger
This is convenient when working with device units in systemd. Instead of
converting the systemd unit name to a path to feed to udevadm, udevadm
info|trigger can be called directly on the unit name.

The man page is reworked a bit to describe the modern syntax with positional
arguments first. It's just simpler to use than the positional options.
2018-12-11 09:24:31 +01:00
Zbigniew Jędrzejewski-Szmek
d539f79176 udevadm: use path_startswith and shorten code a bit 2018-12-11 09:21:08 +01:00
Zbigniew Jędrzejewski-Szmek
668e7c0cfd udevadm: improve error output when a device is not specified or specified wrong
udevadm would dump help() output, instead of printing a message about what is
wrong. That's just bad UX. Let's use a different message if the argument is
missing, and a different one if it is invalid.

Also, rework the code to separate the business logic from argument parsing.
Let's not use "default:" in switch statements. This way, the compiler will warn
us if we miss one of the cases.
2018-12-11 07:29:51 +01:00
Emil Soleyman
9d9bf7aa7b Logitech MX Master 2S: Unifying Receiver and Bluetooth Connectivity (#11078)
* Logitech MX Master 2S: Unifying Receiver and Bluetooth Connectivity

Logitech MX Master 2S can connect through either the unifying receiver
or bluetooth. Clarify that the previous listing was for unifying
receiver and add listing for bluetooth. Note the MOUSE_DPI differences
between the two listings.
2018-12-11 11:18:20 +10:00
Lennart Poettering
52da1a8b48
Merge pull request #11109 from poettering/cgroup-cpu-acct-fixes
cgroup cpuacct controller handling fixes
2018-12-10 18:27:28 +01:00
Lennart Poettering
03ccc7f077 update TODO 2018-12-10 16:09:41 +01:00
Lennart Poettering
d742f4b54b cgroup: correct mangling of return values
Let's nor return the unmangled return value before we actually mangle
it.

Fixes: #11062
2018-12-10 16:09:41 +01:00
Lennart Poettering
92a993041a cgroup: call cg_all_unified() right before using the result
Let's not query it before we actually need it.
2018-12-10 16:09:41 +01:00
Lennart Poettering
8f3fd07ac0
Merge pull request #11105 from keszybz/path-parsing
Some tightening of our path parsing code
2018-12-10 15:50:08 +01:00
Thomas Haller
8217ed5ec3 network: fix handling of uninitialized and zero IAID setting
An earlier commit 0e408b82b (dhcp6-client: handle IAID with value zero)
introduced a flag to sd_dhcp6_client to distinguish between an unset
IAID and a value set to zero.

However, that was not sufficient and broke leaving the setting
uninitialized in networkd configuration. The configuration parsing
also must distinguish between the default, unset value and an
explict zero configuration.

Fixes: 0e408b82b8
2018-12-10 14:25:28 +01:00
Zbigniew Jędrzejewski-Szmek
1d4c6f5bef pid1: set Description even for devices which don't exist yet
We'd only set the description after the device appeared in sysfs, so
we'd always print
"A start job is running for dev-disk-by\x2duuid-aaaa ... aaaa.device (42s / 1min 30s)"
Let's make this
"A start job is running for /dev/disk/by-duuid/aaaa ... aaaa (42s / 1min 30s)"

https://bugzilla.redhat.com/show_bug.cgi?id=1655860
2018-12-10 14:00:42 +01:00
Cedric Viou
83f3e954c8 Add RF kill switch button for Zbook 15 G2 (#11060) 2018-12-10 13:20:46 +01:00
Lennart Poettering
60f1ec13ed nspawn: move most validation checks and configuration mangling into verify_arguments()
That's what the function is for after all, and only if it's done there
we can verify the effect of .nspawn files correctly too: after all we
should not just validate that everything configured on the command line
makes sense, but the stuff configured in the .nspawn files, too.
2018-12-10 12:54:56 +01:00
Lennart Poettering
d5455d2f98 nspawn: split out code parsing env vars into a function of its own
This then let's us to ensure it's called after we parsed the cmdline,
and after we loaded the settings file, so that it these env var settings
override everything loaded from there.
2018-12-10 12:54:56 +01:00
Lennart Poettering
5eee829043 nspawn: move cg_unified_flush() invocation out of parse_argv()
It has nothing to do with argument parsing, and hence shouldn't be
there.
2018-12-10 12:54:56 +01:00
Lennart Poettering
2327f95499
Merge pull request #10984 from fbuihuu/tmpfiles-be-more-explicit-with-unsafe-transition
tmpfiles: be more explicit when an unsafe path transition is met
2018-12-10 12:31:56 +01:00
Lennart Poettering
ec68d13789
Merge pull request #10897 from keszybz/etc-fstab-parsing
Forbid dashes in hostnames and /etc/fstab parsing improvements
2018-12-10 12:31:30 +01:00
Zbigniew Jędrzejewski-Szmek
a5dfc36ce6 fuzz-unit-file: add one more test case
There seems to be no error per se. RequiresMountsFor=%s%s%s..%s%s%s is expanded to
RequiresMountsFor=/bin/zsh/bin/zsh/bin/zsh/bin/zsh/..., which takes a bit of time,
and then we iterate over this a few times, creating a hashmap with a hashmap
for each prefix of the path, each with one item pointing back to the original unit.
Takes about 0.8 s on my machine.
2018-12-10 11:57:26 +01:00
Zbigniew Jędrzejewski-Szmek
4cb06c5949 Use VLA instead of alloca
The test is the same, but an array is more readable.
2018-12-10 11:57:26 +01:00
Zbigniew Jędrzejewski-Szmek
60473f0c23 pid1: fix (harmless) off-by-one in PATH_MAX comparison
PATH_MAX is supposed to include the terminating NUL byte. But we already
check that there is no NUL byte in the specified path. Hence the maximum
length we can expect is PATH_MAX - 1.

This doesn't change much, but makes this use of PATH_MAX consistent with the
rest of the codebase.
2018-12-10 11:57:26 +01:00
Zbigniew Jędrzejewski-Szmek
f8703ed7e5 basic/path-util: line-break PATH_FOREACH_PREFIX macros
Now I can see what they do :]
2018-12-10 11:57:26 +01:00
Zbigniew Jędrzejewski-Szmek
296acffe45 When parsing paths, reject anything above PATH_MAX
The check for length is done after path_simplify(), to be nice to paths which
are constructed using specifiers, and have duplicate slashes and stuff.
2018-12-10 11:57:26 +01:00
Lennart Poettering
ec9efbd9bc
Merge pull request #11093 from yuwata/update-python-scripts-for-lgtm
Update python scripts for lgtm
2018-12-10 11:13:21 +01:00