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
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
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
Lennart Poettering
cea72d53f8
efivars: add new helper efi_set_variable_string()
...
Let's make it easier to parse an UTF-16 string properly.
2018-11-16 15:52:22 +01:00
Lennart Poettering
c57ed5735f
logind: log correct error msg
2018-11-16 15:52:22 +01:00
Lennart Poettering
75100aeb9f
logind: sort includes
2018-11-16 15:52:22 +01:00
Lennart Poettering
80641a81b6
bootctl: display loader features in a pretty way.
2018-11-16 15:52:22 +01:00
Lennart Poettering
c027b67f53
util: force time multiplications to happen in longs
2018-11-16 15:52:22 +01:00
Lennart Poettering
52ecf1958d
locale-util: add special glyph support for check marks/cross marks
2018-11-16 15:52:22 +01:00
Lennart Poettering
3b42f34910
efi: NUL terminate strings read with efivar_get()
...
let's be more careful and NUL terminate everything we read from EFI
variables, in case it isn't already.
2018-11-16 15:47:18 +01:00
Lennart Poettering
996daf2fa9
sd-boot: make sure special menu items also work if menu is skipped
...
While it doesn't really make much sense to set "auto-reboot-to-firmware"
as oneshot boot item, let's still support it properly, by also
dispatching such a menu item if selected.
2018-11-16 15:47:18 +01:00
Lennart Poettering
aec1443aec
sd-boot: use structured initialization
2018-11-16 15:47:18 +01:00
Lennart Poettering
b58c7351c0
sd-boot: change name of automatic entry for rebooting into firmware
...
Let's stick to one nomenclature. In userspace we usually call this
"reboot to firmware setup", hence use the same name in sd-boot too.
This name was previously only relevant internally, but since the
addition of the LoaderEntries EFI var is exposed to userspace, hence
let's get this right with the first release adding this.
2018-11-16 15:47:18 +01:00
Lennart Poettering
5dd5f7cfa8
sd-boot: add new EFI variable exposing feature set of boot loader
...
We keep adding new features, let's advertise to the host OS what these
are in a new variable LoaderFeatures.
It works a bit like OsIndicationsSupported, but is about Loader
features.
2018-11-16 15:47:18 +01:00
Lennart Poettering
95a18e91db
efi: make sure parse_boolean() does something useful on a NULL parameter
2018-11-16 15:47:18 +01:00
Lennart Poettering
427ee7ec82
efi: add 'const' to various util.h API parameters
2018-11-16 15:47:18 +01:00
Lennart Poettering
fe2579dd9c
sd-boot: introduce a one-time override for the boot menu timeout
...
This is useful to allow userspace to request a "boot into boot menu"
feature.
2018-11-16 15:47:18 +01:00
Lennart Poettering
2366d92345
sd-boot: when converting menu timeout for UINTN to INTN saturate
...
Let's be a bit more careful and handle overly long timeouts in a
slightly more sensible way.
2018-11-16 15:47:18 +01:00
Lennart Poettering
b49dd00f8c
efi: add simple macros for MAX values of EFI's UINTN/INTN types
2018-11-16 15:47:18 +01:00
Lennart Poettering
8ac694710f
sd-boot: timeout_sec is unsigned hence show it with %u
2018-11-16 15:47:18 +01:00