Zbigniew Jędrzejewski-Szmek
b453c447e0
inhibit: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
634a0ad3e5
cat: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
5272ae42ce
import: define mains through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
3c79f0b3ce
id128: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
06213aae94
hwdb: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
43ead4114b
hostnamectl: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
9013653e3c
fsck: configure logging before use and define main through macro
...
There's a slight change in logic: before, when rebooting the machine, we could
also request quotacheck (by touching /run/systemd/quotacheck) if the fsck
helper set FSCK_ERROR_CORRECTED. This is just a race, and doesn't matter much
in practice.
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
c88f45e744
escape: use free_and_replace
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
5f200747f6
escape: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
bdab09849e
detect-virt: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
4515a95ee0
coredump: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
02434ea263
boot-check-no-failures: define main through macro
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
9a5cedc319
ac-power: define main through macro
...
I decided to use a separate definition for this because it's too easy to return
positive from functions which don't need this distinction and only return
negative on error and success otherwise.
2018-11-17 09:13:35 +01:00
Zbigniew Jędrzejewski-Szmek
a974a6569e
Introduce main definer and use it in cgtop
...
This actually fixes one bogus return code in error path.
2018-11-17 09:03:54 +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
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