Lennart Poettering
b08020893a
Merge pull request #10809 from keszybz/unit-log-result
...
Add helper function for logging unit results
2018-11-19 11:07:07 +01:00
Lennart Poettering
431957c959
Merge pull request #10814 from poettering/logind-suspend-fallback
...
if we need to hibernate/suspend-then-hibernate/hybrid-sleep due to keypress/lid switch but can't, fallback to regular suspend
2018-11-19 11:05:48 +01:00
Lennart Poettering
a44088f10f
Merge pull request #10825 from keszybz/advertize-followup
...
udev link advertizing followup
2018-11-19 11:05:18 +01:00
Lennart Poettering
2b38a8ea80
Merge pull request #10507 from cdown/cpu_acct
...
cgroup v2: Don't require CPU controller for CPU accounting in 4.15+
2018-11-19 10:57:48 +01:00
Evgeny Vereshchagin
f7f8e8cbb9
test: kill all processes launched by test-execute before exiting
...
As was shown in https://github.com/systemd/systemd/issues/10696#issuecomment-439613204 ,
currently `meson` waits for 1080 seconds (which is three times the global timeout) for the
test to fail completely even though it takes just two minutes for it to really fail. This
happens because the test itself leaves the services it has launched behind, which, in turn, makes
meson think that the test is still in progress. KILL_ALL with SIGKILL should make the issue
go away.
2018-11-19 09:24:22 +01:00
Piotr Drąg
85b18dbec5
catalog: update Polish translation
2018-11-19 09:23:04 +01:00
Xi Ruoyao
b0fbf9bd40
test: let the shell find "touch" instead of hard-coded "/bin/touch"
2018-11-19 08:37:36 +01:00
Zbigniew Jędrzejewski-Szmek
64d9f7568b
basic/missing: drop _ETHTOOL_LINK_MODE_MAX
...
It was only used in one place, where we don't actually need it, and
it is too easy to forget to update it when adding new items to the table.
Let's just drop it.
2018-11-18 16:14:21 +01:00
Zbigniew Jędrzejewski-Szmek
5dd101186b
udev: use an "inline" array instead of allocating for advertise mode
...
The code is a bit shorter and we don't allocate the uint32_t[127] array.
2018-11-18 16:14:19 +01:00
Zbigniew Jędrzejewski-Szmek
7f6bfc561f
basic/util: import memeqzero from casync
2018-11-18 16:12:53 +01:00
Chris Down
a88c5b8ac4
cgroup v2: DefaultCPUAccounting=yes if CPU controller isn't required
...
We now don't enable the CPU controller just for CPU accounting if we are
on 4.15+ and using pure unified hierarchy, as this is provided
externally to the CPU controller. This makes CPUAccounting=yes
essentially free, so enabling it by default when it's cheap seems like a
good idea.
2018-11-18 12:21:41 +00:00
Chris Down
94ddb08d74
cgtop: Still try to get CPU statistics if controller-free
...
If CPU accounting is cheap, no controller necessarily needs to be
enabled here for us to be able to read statistics.
2018-11-18 12:21:41 +00:00
Chris Down
f98c25850f
cgroup v2: Don't require CPU controller for CPU accounting in 4.15+
...
systemd only uses functions that are as of Linux 4.15+ provided
externally to the CPU controller (currently usage_usec), so if we have a
new enough kernel, we don't need to set CGROUP_MASK_CPU for
CPUAccounting=true as the CPU controller does not need to necessarily be
enabled in this case.
Part of this patch is modelled on an earlier patch by Ryutaroh Matsumoto
(see PR #9665 ).
2018-11-18 12:21:41 +00:00
Zbigniew Jędrzejewski-Szmek
09c984c6f7
test-util: modernize
2018-11-18 10:47:16 +01:00
Zbigniew Jędrzejewski-Szmek
b8cb5effeb
Merge pull request #10819 from yuwata/fix-10807
...
ethtool: drop NetDevAdvertise
2018-11-18 10:27:29 +01:00
Yu Watanabe
2d18ac4491
ethtool: drop NetDevAdvertise
...
Fixes #10807 .
2018-11-18 14:33:50 +09:00
Yu Watanabe
8a716f26ef
missing: add ETHTOOL_LINK_MODE_* and struct ethtool_link_settings
2018-11-18 14:33:50 +09:00
Zbigniew Jędrzejewski-Szmek
f921797d61
Merge pull request #10817 from evverx/audit-fuzzer
...
Add a fuzzer for process_audit_string
2018-11-17 18:26:54 +01:00
Yu Watanabe
af18705f8e
test: also tests enumerating subsystems
2018-11-17 18:18:22 +01:00
Evgeny Vereshchagin
ed62712dc6
tests: introduce dummy_server_init and use it in all journald fuzzers
2018-11-17 13:02:26 +01:00
Evgeny Vereshchagin
b6b35f0e0b
travis: make the ASan & UBsan job a little bit stricter
2018-11-17 14:20:49 +03:00
Evgeny Vereshchagin
1dab14aba7
journald: check whether sscanf has changed the value corresponding to %n
...
It's possible for sscanf to receive strings containing all three fields
and not matching the template at the same time. When this happens the
value of k doesn't change, which basically means that process_audit_string
tries to access memory randomly. Sometimes it works and sometimes it doesn't :-)
See also https://bugzilla.redhat.com/show_bug.cgi?id=1059314 .
2018-11-17 11:25:19 +01:00
Lennart Poettering
4472fa6d2c
conf-parse: use strjoina() where appropriate
2018-11-17 08:47:27 +01:00
Lennart Poettering
46f2d09f31
conf-parse: drop unused prototype
2018-11-17 08:47:27 +01:00
Lennart Poettering
222c8d4e22
macro: remove double evaluation in FLAGS_SET()
2018-11-17 08:45:24 +01:00
Lennart Poettering
bca89fe84d
rc-local-generator: add comment explaining the background of the generator
...
This is not obvious, hence it deserves some form of documentation.
However, it's also ultimately an implementation detail, hence let's not
add this to the man page, but as a code comment, that is visible right
at the top of source file.
Fixes : #10675
2018-11-17 08:43:57 +01:00
Evgeny Vereshchagin
090a20cfaf
tests: add a fuzzer for process_audit_string
2018-11-16 23:14:31 +01:00
asavah
6917857ed4
fix build with -Defi=false
2018-11-16 21:51:47 +01:00
Lennart Poettering
07be866903
logind: voidify more things
2018-11-16 21:50:37 +01:00
Lennart Poettering
c282daed68
logind: when we need to execute a sleep operation we don't support, fall back to suspend
...
If suspend-then-hibernate, hybrid-sleep or plain hibernation is
supposed to be execute due to a key press/lid switch but is not
supported, automatically fall back to plain suspend (and log about it).
Fixes : #10558
2018-11-16 21:50:24 +01:00
Zbigniew Jędrzejewski-Szmek
3151a11061
TODO: add entry
2018-11-16 19:47:07 +01:00
Zbigniew Jędrzejewski-Szmek
aac99f303a
core: introduce a helper function to wrap unit_log_{success,failure}
...
It's inline so that the compiler can easily optimize away the call to get
status string.
2018-11-16 19:47:07 +01:00
Lennart Poettering
14c4da2ffe
Merge pull request #10805 from poettering/migrate-boot-loader-interface
...
migrate boot loader interface doc from wiki into markdown (split out of #10495 )
2018-11-16 17:55:08 +01:00
Lennart Poettering
464e48f495
Merge pull request #10751 from yuwata/sd-event-util
...
Reuse sd_event_source object for timer event
2018-11-16 17:54:43 +01:00
Lennart Poettering
ae3cc6ec0d
Merge pull request #10770 from poettering/unit-done-log
...
improvements to structure log events from PID1
2018-11-16 17:54:19 +01:00
Lennart Poettering
ca0e33734e
Merge pull request #10777 from poettering/seccomp-filter-others
...
list syscalls supported by the local kernel but not in any syscall groups explicitly in "systemd-analyze syscall-filter"
2018-11-16 17:53:50 +01:00
Lennart Poettering
6415fecd4c
Merge pull request #10785 from poettering/cgroup-join-removal
...
remove JoinControllers= setting
2018-11-16 17:53:26 +01:00
Lennart Poettering
3382cf28b6
Merge pull request #10802 from poettering/hide-only-on
...
man: let's deprecate PermissionsStartOnly=
2018-11-16 17:53:01 +01:00
Lennart Poettering
1b259a5bf3
Merge pull request #10804 from poettering/sd-boot-updates
...
various sd-boot/EFI fixes (split out from #10495 )
2018-11-16 17:52:37 +01:00
Lennart Poettering
db0ba2a4a4
Merge pull request #10806 from poettering/logind-many-fixes
...
various smaller fixes and improvements to logind (split out of #10495 )
2018-11-16 17:52:11 +01:00
Lennart Poettering
6fdc4831bb
docs: tweak index.md generation and run it again
2018-11-16 17:44:27 +01:00
Lennart Poettering
2fe8213230
docs: migrate boot loader interface from fdo wiki to git
...
This imports
https://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface/
into our sources, and extends it substantially with various variables
now supported.
2018-11-16 17:43:59 +01:00
Zbigniew Jędrzejewski-Szmek
2640b77356
docs/TRANSIENT-SETTINGS: drop PermissionsStartOnly= from
2018-11-16 16:21:21 +01:00
Lennart Poettering
a9bfb3eff2
analyze: add some minimal ANSI highlighting of syscall-filter output
2018-11-16 16:10:57 +01:00
Lennart Poettering
a05cfe230f
seccomp: add some missing syscalls to filter sets
2018-11-16 16:10:57 +01:00
Lennart Poettering
cdf6258c2e
analyze: show list of syscalls the kernel supports but not included in any group in the output
...
This is quite useful for making sure our list is complete.
2018-11-16 16:10:57 +01:00
Lennart Poettering
f20db19954
cocci: simplify some if checks
2018-11-16 16:05:29 +01:00
Henry Tung
0c093a62ef
logind: fix determination of CanHibernate() and other calls
...
As suggest here:
https://github.com/systemd/systemd/issues/10250#issuecomment-426788301
Fixes : #10250
(This suggested patch has been converted into a proper commit by me,
Lennart, with attribution to the original author, @henryptung)
2018-11-16 15:52:22 +01:00
Lennart Poettering
c78e6f9e7b
logind: imply right to reboot when user has right to set reboot-to-firmware flag
...
Let's reduce the number of actions the user has to acquire.
2018-11-16 15:52:22 +01:00
Lennart Poettering
68d7c268f8
efivars: let's add some validation of boot menu entry name syntax
2018-11-16 15:52:22 +01:00