summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-01-28Merge pull request #8030 from keszybz/another-news-updatev237Lennart Poettering1-5/+5
NEWS: reword one sentence
2018-01-28NEWS: add missing equal signZbigniew Jędrzejewski-Szmek1-1/+1
Important!
2018-01-28NEWS: reword one sentenceZbigniew Jędrzejewski-Szmek1-4/+4
2018-01-28NEWS: let's get this thing doneLennart Poettering1-1/+12
2018-01-28NEWS: mention --grep (#8029)Zbigniew Jędrzejewski-Szmek1-0/+6
2018-01-28Merge pull request #7881 from keszybz/pcreLennart Poettering12-87/+370
Add new --grep option to journalctl
2018-01-28journalctl: add highlighting for matched substringZbigniew Jędrzejewski-Szmek7-28/+114
Red is used for highligting, the same as grep does. Except when the line is highlighted red already, because it has high priority, in which case plain ansi highlight is used for the matched substring. Coloring is implemented for short and cat outputs, and not for other types. I guess we could also add it for verbose output in the future.
2018-01-28journalctl: make matching optionally case sensitiveZbigniew Jędrzejewski-Szmek3-75/+131
Case sensitive or case insensitive matching can be requested using --case-sensitive[=yes|no]. Unless specified, matching is case sensitive if the pattern contains any uppercase letters, and case insensitive otherwise. This matches what forward-search does in emacs, and recently also --ignore-case in less. This works surprisingly well, because usually when one is wants to do case-sensitive matching, the pattern is usually camel-cased. In the less frequent case when case-sensitive matching is required with an all-lowercase pattern, --case-sensitive can be used to override the automatic logic.
2018-01-28Slightly improve performance of startable/restartable unit completion (#7839)dana1-11/+10
2018-01-28NEWS: update NEWS again, we didn't release yesterday (#8027)Lennart Poettering1-30/+35
Fix tons of whitespace issues, also add a sysusers.d/ change and update to contributors list again
2018-01-28Merge pull request #8025 from sourcejedi/pid1_journal_or2Lennart Poettering5-23/+16
pid1: when we can't log to journal, remember our fallback log target
2018-01-28hwdb: Fix bouncing brightness keys on MSI-PR200Martin Pitt1-0/+1
Thanks to djfd for the patch! Fixes #6972
2018-01-28Merge pull request #8026 from phomes/NEWS-fixMichael Biebl1-1/+1
NEWS: typo fix
2018-01-28NEWS: typo fixThomas Hindoe Paaboel Andersen1-1/+1
2018-01-27systemd-shutdown: use log_set_prohibit_ipc(true)Alan Jenkins1-0/+1
Now we have log_set_prohibit_ipc(), let's use it to clarify that systemd-shutdown is not expected to try and log via journald (which it is about to kill). We avoided ever asking systemd-shutdown to do this, but it's more convenient for the reader if they don't have to think about that. In that sense, it's similar to using assert() to validate a function's arguments.
2018-01-27rationalize interface for opening/closing loggingAlan Jenkins5-24/+15
log_open_console() did not switch from stderr to /dev/console, when "always_reopen_console" was set. It was necessary to call log_close_console() first. By contrast, log_open() did switch between e.g. journald and kmsg according to the value of "prohibit_ipc". Let's fix log_open() to respect the values of all the log options, and we can make log_close_*() private. Also log_close_console() is changed. There was some precaution, avoiding closing the console fd if we are not PID 1. I think commit 48a601fe made a little mistake in leaving this in, and it only served to confuse readers :). Also I changed systemd-shutdown. Now we have log_set_prohibit_ipc(), let's use it to clarify that systemd-shutdown is not expected to try and log via journald (which it is about to kill). We avoided ever asking it to, but it's more convenient for the reader if they don't have to think about that. In that sense, it's similar to using assert() to validate a function's arguments.
2018-01-28Update NEWS to reflect changes made in #8020 (#8024)bleep_blop1-5/+13
2018-01-27[gdb-sd_dump_hashmaps.py] String Formatting Update (#7819)Batuhan Osman Taşkaya1-7/+7
Changes: % changed as .format()
2018-01-27NEWS: get ready for release today (#8019)Lennart Poettering1-19/+21
2018-01-27analyze: merge {get,set}-log-{level,target} to log-{level,target} (#8020)Yu Watanabe4-52/+64
Also, service-watchdogs now shows current watchdog state when no optional argument is provided.
2018-01-27journalctl: regexp matchingZbigniew Jędrzejewski-Szmek3-1/+121
2018-01-27Merge pull request #7933 from keszybz/fuzz-regressionEvgeny Vereshchagin7-3/+109
test: add fuzzer regression testing
2018-01-27login/meson.build: require ACL for uaccess rulesAndrew Jeddeloh2-13/+22
Don't install udev rules that requires the uaccess builtin if systemd is being built without the uaccess builtin.
2018-01-27journal: losen restrictions on journal file suffix (#8013)Lennart Poettering1-5/+2
Previously, we'd refuse open journal files with suffixes that aren't either .journal or .journal~. With this change we only care when we are creating the journal file. I looked over the sources to see whether we ever pass files discovered by directory enumeration to journal_file_open() without first checking the suffix (in which case the old check made sense), but I couldn't find any. hence I am pretty sure removing this check is safe. Fixes: #7972
2018-01-27Merge pull request #8006 from zx2c4-forks/jd/no-wg-llYu Watanabe2-1/+7
networkd: assume no link local addresses for where it isn't used
2018-01-27Merge pull request #7973 from mvo5/sysusers-uid-gidYu Watanabe20-85/+173
sysusers: allow uid:gid in sysusers.conf files
2018-01-27meson: use env object instead of string in tags targetsZbigniew Jędrzejewski-Szmek1-2/+2
I used 'tags' before because this way we avoided a unnecessary line about 'env' detection. But we cannot use 'env' in test(), so previous commit added 'env' detection. We might just as well use it in custom_target().
2018-01-27Hook up oss-fuzz test cases as testsZbigniew Jędrzejewski-Szmek4-1/+104
This is a bit painful because a separate build of systemd is necessary. The tests are guarded by tests!=false and slow-tests==true. Running them is not slow, but compilation certainly is. If this proves unwieldy, we can add a separate option controlling those builds later. The build for each sanitizer has its own directory, and we build all fuzzer tests there, and then pull them out one-by-one by linking into the target position as necessary. It would be nicer to just build the desired fuzzer, but we need to build the whole nested build as one unit. [I also tried making systemd and nested meson subproject. This would work nicely, but meson does not allow that because the nested target names are the same as the outer project names. If that is ever fixed, that would be the way to go.] v2: - make sure things still work if memory sanitizer is not available v3: - switch to syntax which works with meson 0.42.1 found in Ubuntu
2018-01-26pid1: when we can't log to journal, remember our fallback log targetAlan Jenkins1-0/+1
If we have to force the logging to close the journal fd, then we can open any fallback log target. E.g. kmsg, if the target was the default JOURNAL_OR_KMSG. This is the behaviour I would expect from the documentation. I couldn't find any justification in the code, for why we would want to start dropping log messages instead of sending them to the fallback target. This means we will match the behaviour of processes which we fork and which set `open_when_needed`, and with generators - which use log_set_prohibit_ipc(true) - which we fork+exec during a reload. IMO this illustrates that the log_open/log_close interface is too clunky. So with the behaviour settled, I will refactor the interface in the next commit :).
2018-01-26NEWS: add self to news file for this late commitJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-01-26networkd: assume no link local addresses for where it isn't usedJason A. Donenfeld1-0/+6
It turns out that link local doesn't make much sense in its context. Since link local is disabled by the kernel driver, it's important that networkd assumes it's off too, so that the link can reach the "configured" stage, without waiting indefinitely for link local addresses which will never come. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-01-26zsh: add service-watchdogsZbigniew Jędrzejewski-Szmek1-0/+7
A zsh counterpart to 21a6abdf0ea9ce1fa5b6edf3b9314347cc0dbca1.
2018-01-26News: some fixes and improvements (#8010)Clinton Roy1-8/+8
* missing whitespace. * NEWS: some small fixes and improvements.
2018-01-26Merge pull request #7738 from yuwata/fix-7721Yu Watanabe1-2/+15
core: manager logs firmware and loader time when startup finished
2018-01-26l10n: update Czech Translation (#8007)AsciiWolf1-1/+1
Fix typo
2018-01-26Merge pull request #7997 from poettering/systemctl-is-active-fixZbigniew Jędrzejewski-Szmek2-50/+16
systemctl is-active fix
2018-01-25sysusers: ensure GID in uid:gid syntax existsMichael Vogt10-10/+44
Ensure that the GID already exists or is created when the new "uid:gid" syntax is used. This ensures the behaviour is always predictable.
2018-01-26core: initalize bufferZbigniew Jędrzejewski-Szmek1-6/+4
2018-01-26core: manager logs firmware and loader time when startup finishedYu Watanabe1-2/+17
2018-01-25Merge pull request #7996 from poettering/v237-prepareZbigniew Jędrzejewski-Szmek13-7611/+12013
preparation for v237
2018-01-25firstboot: Include <crypt.h> for declaration of crypt() if needed (#7944)Björn Esser2-1/+15
Not every target system may provide a crypt() function in its stdlibc and may use an external or replacement library, like libxcrypt, for providing such functions. See https://fedoraproject.org/wiki/Changes/Replace_glibc_libcrypt_with_libxcrypt.
2018-01-25Revert "man: mention that systemctl is-active or is-failed do not load units"Lennart Poettering1-11/+0
This reverts commit c7612b20052d9151f60a96623b8743cbac88390d.
2018-01-25systemctl: load unit if needed in "systemctl is-active"Lennart Poettering1-39/+16
Previously, we'd explicitly use "GetUnit()" on the server side to convert a unit name into a bus path, as that function will return an error if the unit is not currently loaded. If we'd convert the path on the client side, and access the unit this way directly the unit would be loaded automatically in the background. The old logic was done in order to minimize the effect of "is-active" on the system, i.e. that a monoitoring command does not itself alter the state of the system. however, this is problematic as this can lead to confusing results if the queried unit name is an alias that currently is not loaded: we'd claim the unit wasn't active even though this isn't strictly true: the unit the name is an alias for might be. Hence, let's simplify the code, and accept that we might end up loading a unit briefly here, and let's make "systemctl is-active" skip the GetUnit() thing and calculate the unit path right away. Fixes: #7875
2018-01-25boot/efi: TPM V2 fix for GetEventLog EFI functionRaphael Vogelgsang1-1/+4
2018-01-25bus-util: fix format of NextElapseUSecRealtime= and LastTriggerUSec=Yu Watanabe1-1/+1
Before this, `systemctl show` for calendar type timer unit outputs something like below. ``` NextElapseUSecRealtime=48y 3w 3d 15h NextElapseUSecMonotonic=0 LastTriggerUSec=48y 3w 3d 3h 41min 44.093095s LastTriggerUSecMonotonic=0 ``` As both NextElapseUSecRealtime= and LastTriggerUSec= are not timespan but timestamp, this makes format these values by `format_timestamp()`.
2018-01-25gpt-auto: discard boot0/1 hw partitions along rpmbNicolas Chauvet1-1/+2
/dev/mmcblk0boot0 is a partition found in eMMC This is not relevant for mounting This complement the previous fix as reported in https://github.com/systemd/systemd/issues/5806 Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2018-01-25meson: bump so revision and systemd version in preparation for v237Lennart Poettering1-3/+3
2018-01-25hwdb: run "update-hwdb" in preparation for v237Lennart Poettering9-7593/+11863
2018-01-25update TODOLennart Poettering1-15/+3
2018-01-25NEWS: start putting together an entry for v237Lennart Poettering2-0/+144