summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Fix openSUSE image declarationMichal Koutný2020-05-041-0/+4
| | | | | | | | User accounts of given names are necessary for the build script and tests to succeed. (Fixup of #15527, too keen cleaning of dependencies and cached image caused this.)
* Add Kensington SlimBlade TrackballLukas Klingsbo2020-05-041-0/+4
|
* catalog,po: update Polish translationPiotr Drąg2020-05-042-10/+40
|
* test: fix potential use-after-freeFrantisek Sumsal2020-05-041-1/+1
| | | | CID#1428676.
* Merge pull request #15422 from nolange/add_zstd_coredumpEvgeny Vereshchagin2020-05-0416-59/+357
|\ | | | | coredump: add zstandard support for coredumps
| * install libzstd-dev for CI buildsNorbert Lange2020-05-045-1/+10
| |
| * coredump: add zstandard support for coredumpsNorbert Lange2020-05-0411-58/+347
| | | | | | | | | | this will hook libzstd into coredump, using this format as default.
* | basic: add STRCASE_IN_SET() which is to STR_IN_SET() what strcaseeq() is to ↵Lennart Poettering2020-05-045-19/+60
|/ | | | streq()
* man: fix few spelling errorsFrantisek Sumsal2020-05-033-3/+3
| | | | Reported by Fossies.org.
* test: Fix build with !HAVE_LZ4 && HAVE_XZMichal Koutný2020-05-021-1/+2
| | | | | | | | | | HUGE_SIZE was defined inconsistently. > In file included from ../src/basic/alloc-util.h:9, > from ../src/journal/test-compress.c:9: > ../src/journal/test-compress.c: In function ‘main’: > ../src/journal/test-compress.c:280:33: error: ‘HUGE_SIZE’ undeclared (first use in this function) > 280 | assert_se(huge = malloc(HUGE_SIZE));
* cifuzz: upload artifacts only when the "run fuzzers" step failsEvgeny Vereshchagin2020-05-021-1/+2
|
* repart: fix partition maximum size segfaultEmmanuel Garette2020-05-011-1/+1
| | | | | | | | | | Discovered, tracked down and fix proposed by Emmanuel Garette. See: https://lists.freedesktop.org/archives/systemd-devel/2020-April/044435.html (Lennart turned this into a PR) Fixes: #15608
* Merge pull request #15652 from MadMcCrow/masterZbigniew Jędrzejewski-Szmek2020-05-011-0/+4
|\ | | | | Fix Chromebook Caroline board accelerometer not having correct orientation
| * Fix Chromebook Caroline board accelerometer not having correct orientationMadMcCrow2020-04-301-0/+4
| |
* | Merge pull request #15547 from kkdwivedi/notify-barrierLennart Poettering2020-05-019-12/+163
|\ \ | | | | | | Introduce sd_notify_barrier
| * | man: sd_notify() race is gone with sd_notify_barrier()Kumar Kartikeya Dwivedi2020-05-013-11/+33
| | | | | | | | | | | | | | | | | | | | | Add note for change of behaviour in systemd-notify, where parent pid trick is only used when --no-block is passed, and with enough privileges ofcourse. Also, fix a small error in systemd(1).
| * | Introduce sd_notify_barrierKumar Kartikeya Dwivedi2020-05-016-1/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the sd_notify_barrier function, to allow users to synchronize against the reception of sd_notify(3) status messages. It acts as a synchronization point, and a successful return gurantees that all previous messages have been consumed by the manager. This can be used to eliminate race conditions where the sending process exits too early for systemd to associate its PID to a cgroup and attribute the status message to a unit correctly. systemd-notify now uses this function for proper notification delivery and be useful for NotifyAccess=all units again in user mode, or in cases where it doesn't have a control process as parent. Fixes: #2739
* | | Merge pull request #13512 from msekletar/freezerZbigniew Jędrzejewski-Szmek2020-05-0127-24/+926
|\ \ \ | |/ / |/| | core: introduce support for cgroup freezer
| * | test: add test for cgroup v2 freezer supportMichal Sekletár2020-04-306-0/+310
| | |
| * | core: introduce support for cgroup freezerMichal Sekletár2020-04-3019-14/+566
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With cgroup v2 the cgroup freezer is implemented as a cgroup attribute called cgroup.freeze. cgroup can be frozen by writing "1" to the file and kernel will send us a notification through "cgroup.events" after the operation is finished and processes in the cgroup entered quiescent state, i.e. they are not scheduled to run. Writing "0" to the attribute file does the inverse and process execution is resumed. This commit exposes above low-level functionality through systemd's DBus API. Each unit type must provide specialized implementation for these methods, otherwise, we return an error. So far only service, scope, and slice unit types provide the support. It is possible to check if a given unit has the support using CanFreeze() DBus property. Note that DBus API has a synchronous behavior and we dispatch the reply to freeze/thaw requests only after the kernel has notified us that requested operation was completed.
| * | basic/cgroup-util: introduce cg_get_keyed_attribute_full()Michal Sekletár2020-04-293-4/+53
| | | | | | | | | | | | | | | | | | Callers of cg_get_keyed_attribute_full() can now specify via the flag whether the missing keyes in cgroup attribute file are OK or not. Also the wrappers for both strict and graceful version are provided.
| * | selinux: do preprocessor check only in selinux-access.cMichal Sekletár2020-04-291-9/+0
| | | | | | | | | | | | | | | | | | | | | This has the advantage that mac_selinux_access_check() can be used as a function in all contexts. For example, parameters passed to it won't be reported as unused if the "function" call is replaced with 0 on SELinux disabled builds.
* | | test: find path for systemd-journal-remoteDan Streetman2020-04-301-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As Debian/Ubuntu use /lib/systemd instead of /usr/lib/systemd, add systemd-journal-remote to the list of programs that test-functions detects the correct path to, and replace its direct usage with $SYSTEMD_JOURNAL_REMOTE Also use $JOURNALCTL instead of journalctl. Also minor correction in install_plymouth() to look in /lib/... as well as /usr/lib/... and /etc/...
* | | Merge pull request #15592 from kennylevinsen/fdpoll-standaloneLennart Poettering2020-04-303-31/+51
|\ \ \ | | | | | | | | Introduce FDPOLL=0
| * | | core: (De-)Serialize poll flag for fds in fdstoreKenny Levinsen2020-04-302-18/+26
| | | | | | | | | | | | | | | | | | | | This replaces manual string splitting and unescaping with extract_first_word.
| * | | core: Add optional FDPOLL=0 argument to fdstoreKenny Levinsen2020-04-302-14/+26
| | |/ | |/| | | | | | | | | | | | | | | | | | | A service can specify FDSTORE=1 FDPOLL=0 to request that PID1 does not poll the fd to remove them on error. If set, fds will only be removed on FDSTOREREMOVE=1 or when the service is done. Fixes: #12086
* | | Add SetType method to login Session interfaceCorey Hinshaw2020-04-305-2/+68
|/ /
* | notify: beef up --pid= logicLennart Poettering2020-04-302-12/+56
| | | | | | | | Prompted by the discussions on #15547.
* | efi: honour SYSTEMD_EFI_OPTIONS even if we wouldn't honour SystemdOptions ↵Lennart Poettering2020-04-302-14/+25
| | | | | | | | | | | | EFI var due to SecureBoot Fixes: #14864
* | efi: cache test results of boolean EFI state functionsLennart Poettering2020-04-301-5/+21
| | | | | | | | | | | | | | | | EFI variable access is nowadays subject to rate limiting by the kernel. Thus, let's cache the results of checking them, in order to minimize how often we access them. Fixes: #14828
* | Merge pull request #15630 from nabijaczleweli/symmetric-buffersLennart Poettering2020-04-306-13/+49
|\ \ | | | | | | link: Allow configuring RX mini and jumbo ring sizes, too
| * | link: Allow configuring RX mini and jumbo ring sizes, toonabijaczleweli2020-04-296-1/+39
| | | | | | | | | | | | | | | This now covers all ethtool_ringparam configurables (as of v5.6; https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/ethtool.h?h=v5.6#n488)
| * | link: Add units and fix typo in (Rx|Tx)BufferSize= manpage. Clean up the ↵nabijaczleweli2020-04-292-12/+10
|/ / | | | | | | implementation slightly
* | docs: reorder the section about security reporting to emphasize the sekrit listZbigniew Jędrzejewski-Szmek2020-04-291-1/+3
|/
* Merge pull request #15626 from poettering/more-specifiersFrantisek Sumsal2020-04-2915-23/+181
|\ | | | | tmpfiles,sysusers,pid1: add a bunch of more specifiers
| * update TODOLennart Poettering2020-04-281-3/+0
| |
| * man: document new specifiersLennart Poettering2020-04-285-8/+69
| |
| * tree-wide: support a bunch of additional specifiersLennart Poettering2020-04-289-12/+112
| |
* | Merge pull request #15628 from poettering/tmpfiles-fuzz-fixLennart Poettering2020-04-291-50/+37
|\ \ | |/ |/| systemd-tmpfiles fuzz issue fix
| * tmpfiles: remove unnecessary assertLennart Poettering2020-04-291-3/+1
| | | | | | | | | | | | | | if we parse an xattr line that has no valid assignment, we might end up with an empty ->xattr list. Don't hit assert on that, just go on. Fixes: #15610
| * tmpfiles: use log_syntax() for all parse errorsLennart Poettering2020-04-291-47/+36
|/
* update TODOLennart Poettering2020-04-281-0/+2
|
* main: bump RLIMIT_MEMLOCK by physical RAM sizeLennart Poettering2020-04-281-2/+6
| | | | | | | | | | Let's allow more memory to be locked on beefy machines than on small ones. The previous limit of 64M is the lower bound still. This effectively means on a 4GB machine we can lock 512M, which should be more than enough, but still not lock up the machine entirely under pressure. Fixes: #15053
* nspawn: be more careful with creating/chowning directories to overmountLennart Poettering2020-04-282-19/+22
| | | | | | We should never re-chown selinuxfs. Fixes: #15475
* update TODOLennart Poettering2020-04-281-4/+3
|
* sd-bus: Add sd_bus_query_sender_creds/privilege docsDaan De Meyer2020-04-284-2/+138
|
* Merge pull request #15618 from keszybz/help-outputZbigniew Jędrzejewski-Szmek2020-04-283-1106/+1179
|\ | | | | Small adjustments to --help output
| * homectl: say "home area" in more placesZbigniew Jędrzejewski-Szmek2020-04-281-12/+12
| | | | | | | | Follow-up for b5947b5b100f694c93857a82018fb0656d08be34.
| * meson: test userdbctl and homectl --helpZbigniew Jędrzejewski-Szmek2020-04-281-2/+2
| |
| * userdbctl: make --help fit in 80 columnsZbigniew Jędrzejewski-Szmek2020-04-281-16/+16
| |