summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fix memory protection default setting"revert-16058-fix-memory-protection-defaultLennart Poettering2020-06-094-144/+61
|
* Merge pull request #16058 from Werkov/fix-memory-protection-defaultLennart Poettering2020-06-094-61/+144
|\ | | | | Fix memory protection default setting
| * cgroup: Allow empty assignments of Memory{Low,Min}=Michal Koutný2020-06-023-60/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, an empty assignment of Memory{Low,Min}= directives would be interpretted as setting it to global default, i.e. zero. However, if we set a runtime protection value on a unit that inherits parent's DefaultMemory{Low,Min}=, it is not possible to revert it back to the state where the DefaultMemory{Low,Min}= is propagated from parent slice(s). This patch changes the semantics of the empty assignments to explicitly nullify any value set by the user previously. Since DBus API uses uint64_t where 0 is a valid configuration, the patch modifies DBus API by exploiting the variant type of property value to pass the NULL value.
| * cgroup: Make empty assignments reset to defaultMichal Koutný2020-06-022-9/+22
| | | | | | | | | | | | | | | | | | | | When MemoryLow= or MemoryMin= is set, it is interpretted as setting the values to infinity. This is inconsistent with the default initialization to 0. It'd be nice to interpret the empty assignment as fallback to DefaultMemory* of parent slice, however, current DBus API cannot convey such a NULL value, so stick to simply interpretting that as hard-wired default.
| * tests: Fix description of test unitsMichal Koutný2020-06-021-1/+1
| | | | | | | | Corrected reference to non-existent unit.
* | Merge pull request #16046 from bluca/dissect_squashfs_verityLennart Poettering2020-06-0914-98/+276
|\ \ | | | | | | dissect: single-filesystem verity images with external hashdevice
| * | dissect: support single-filesystem verity images with external verity hashLuca Boccassi2020-06-0914-93/+271
| | | | | | | | | | | | | | | | | | | | | | | | dm-verity support in dissect-image at the moment is restricted to GPT volumes. If the image a single-filesystem type without a partition table (eg: squashfs) and a roothash/verity file are passed, set the verity flag and mark as read-only.
| * | dissect-image: wait for udev for single filesystem images tooLuca Boccassi2020-06-081-5/+5
| | | | | | | | | | | | | | | | | | Single filesystem images are mounted from the /dev/block/X:Y symlink rather than /dev/loopZ, so we need to wait for udev to create it or mounting will be racy and occasionally fail.
* | | man: udevadm: mention non-zero exit code on settleYigal Korman2020-06-091-1/+3
| | | | | | | | | | | | | | | 'udevadm settle --timeout=XY' will return 1 in case the timeout was reached and the event queue was not empty. The manpage should mention it.
* | | test-network: wait 2min for the bridge being in configured stateYu Watanabe2020-06-091-1/+2
| | | | | | | | | | | | | | | | | | On some CIs, it may takes more than 40 seconds. Hopefully fixes #16105.
* | | doc: Try to clarify automount dependency confusionChris Down2020-06-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Arch recently upgraded systemd to 245.6. Shortly afterwards, users began reporting[0] that systemd detected an ordering cycle, and they were unable to log in. The reason they were unable to log in was because of ordering cycle resolution: [...] systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start systemd[1]: sysinit.target: Job systemd-journal-catalog-update.service/start deleted to break ordering cycle starting with sysinit.target/start systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start [...] Whether the resolution did the right thing here or not is a longer-term discussion, but in the interim we should at least make this distinction between automount dependencies and mount dependencies clearer in the documentation, so that users and distribution maintainers know what's acceptable. In this case Arch actually backed out b3d7aef5 entirely and released a new version due to the confusion. Also see https://github.com/systemd/systemd-stable/issues/69. 0: https://bugs.archlinux.org/task/66908
* | | docs: use bool in varlink interface definitionMichał Bartoszkiewicz2020-06-091-2/+2
| | | | | | | | | Boolean type in varlink is named bool, not boolean.
* | | Merge pull request #16074 from msekletar/freezer-test-flakesLennart Poettering2020-06-092-1/+5
|\ \ \ | | | | | | | | Freezer test flakes
| * | | core: fix the return value in order to make sure we don't dipatch method ↵Michal Sekletár2020-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | return too early Actually, it is the same kind of problem as in d910f4c . Basically, we need to return 1 on success code path in slice_freezer_action(). Otherwise we dispatch DBus return message too soon. Fixes: #16050
| * | | tests: sleep a bit and give kernel time to perform the action after manual ↵Michal Sekletár2020-06-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | freeze/thaw Fixes: #16050
* | | | hwbd entry for Dell Inspiron Chromebook 14 2-in-1 sensor (#16109)Yegor Vialov2020-06-091-0/+4
| | | |
* | | | login: allow individual USB ports to be assigned to seatsAdam Nielsen2020-06-091-0/+5
| | | | | | | | | | | | | | | | | | | | Assigning seats to specific USB ports lets the devices plugged into them inherit the port's seat assignment.
* | | | Merge pull request #16080 from YmrDtnJu/9pLennart Poettering2020-06-093-2/+13
|\ \ \ \ | | | | | | | | | | 9p is a network filesystem
| * | | | mount-tool: Replace fstype_is_{network,api_vfs} with fstype_is_blockdev_backedYmrDtnJu2020-06-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Not every filesystem that is not a network filesystem and also not an API VFS filesystem has a corresponding block device.
| * | | | basic: New function fstype_is_blockdev_backed for fstypes that need a blockdevYmrDtnJu2020-06-082-0/+11
| | | | | | | | | | | | | | | | | | | | The function returns true if the specified filesystem requires a block device.
* | | | | core: let user define start-/stop-timeout behaviourJan Klötzke2020-06-0910-42/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The usual behaviour when a timeout expires is to terminate/kill the service. This is what user usually want in production systems. To debug services that fail to start/stop (especially sporadic failures) it might be necessary to trigger the watchdog machinery and write core dumps, though. Likewise, it is usually just a waste of time to gracefully stop a stuck service. Instead it might save time to go directly into kill mode. This commit adds two new options to services: TimeoutStartFailureMode= and TimeoutStopFailureMode=. Both take the same values and tweak the behavior of systemd when a start/stop timeout expires: * 'terminate': is the default behaviour as it has always been, * 'abort': triggers the watchdog machinery and will send SIGABRT (unless WatchdogSignal was changed) and * 'kill' will directly send SIGKILL. To handle the stop failure mode in stop-post state too a new final-watchdog state needs to be introduced.
* | | | | Merge pull request #16073 from keszybz/shell-completionLennart Poettering2020-06-093-3/+194
|\ \ \ \ \ | | | | | | | | | | | | Bash completion for homectl and help improvement for kernel-install
| * | | | | shell-completion: add homectl for bashZbigniew Jędrzejewski-Szmek2020-06-052-1/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The difference between verbs that take one user and multiple users is not handled. I don't know how to do this.
| * | | | | kernel-install: extend --helpZbigniew Jędrzejewski-Szmek2020-06-051-2/+5
| | | | | |
* | | | | | Merge pull request #15953 from keszybz/gdb-scriptLennart Poettering2020-06-098-221/+219
|\ \ \ \ \ \ | | | | | | | | | | | | | | Update gdb script to match current sources and other hashmap improvements
| * | | | | | strv: propagate location info from the call site tooZbigniew Jędrzejewski-Szmek2020-05-302-6/+8
| | | | | | |
| * | | | | | basic/hashmap,set: change "internal_" to "_" as the prefixZbigniew Jędrzejewski-Szmek2020-05-304-134/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "internal" is a lot of characters. Let's take a leaf out of the Python's book and simply use _ to mean private. Much less verbose, but the meaning is just as clear, or even more.
| * | | | | | gdb: make output a bit nicerZbigniew Jędrzejewski-Szmek2020-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now: set, 0x7f19be8f7c20 <string_hash_ops>, False, 1, 1, 4, unit_new, src/core/unit.c:96
| * | | | | | gitignore: ignore mypy cacheZbigniew Jędrzejewski-Szmek2020-05-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | mypy is occasionally useful for checking python scripts.
| * | | | | | basic/hashmap: drop unneeded macroZbigniew Jędrzejewski-Szmek2020-05-301-7/+5
| | | | | | |
| * | | | | | gdb: update accessors for bucket counts and entry sizesZbigniew Jędrzejewski-Szmek2020-05-301-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Afaict, this code never worked, since even when this code was added in 2ea8c08306c7e33f8217a878cf990fc491c9432c, neither all_entry_sizes nor all_direct_buckets were defined.
| * | | | | | gdb: drop python2 supportZbigniew Jędrzejewski-Szmek2020-05-301-12/+11
| | | | | | |
| * | | | | | hashmap: don't allow hashmap_type_info table to be optimized awayZbigniew Jędrzejewski-Szmek2020-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes debugging hashmaps harder, because we can't query the size. Make sure that table is always present.
| * | | | | | tools/gdb: decrese indentation to 4 spacesZbigniew Jędrzejewski-Szmek2020-05-301-69/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This follows PEP 8 and matces other python code in systemd.
| * | | | | | basic/hashmap: update commentZbigniew Jędrzejewski-Szmek2020-05-301-1/+1
| | | | | | |
* | | | | | | Merge pull request #16047 from poettering/udev-ro-blockLennart Poettering2020-06-096-16/+107
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | udev: optionally mark all block devices popping up read-only by default
| * | | | | | | man: single-char parameters take no '='Lennart Poettering2020-06-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The suggested syntax is simply not valid and results in an error.
| * | | | | | | units: tweak udev unit descriptionsLennart Poettering2020-06-083-3/+3
| | | | | | | |
| * | | | | | | udev: optionally mark all block devices read-only as they pop upLennart Poettering2020-06-083-9/+100
| | |_|_|_|/ / | |/| | | | |
* | | | | | | update TODOLennart Poettering2020-06-091-0/+8
| | | | | | |
* | | | | | | Merge pull request #16085 from ssahani/network-client-idYu Watanabe2020-06-094-1/+29
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | networkctl: add support to display DHCPv4 client ID
| * | | | | | | networkctl: Display DHCP4 client IDSusant Sahani2020-06-081-1/+11
| | | | | | | |
| * | | | | | | sd-network: Introduce API to access DHCP4 client IDSusant Sahani2020-06-082-0/+7
| | | | | | | |
| * | | | | | | network: DHCP4 client ID save in state fileSusant Sahani2020-06-081-0/+11
| | | | | | | |
* | | | | | | | Add 'bitlk' option to mount Bitlocker drives with cryptsetup.Maxim Fomin2020-06-092-3/+24
| | | | | | | |
* | | | | | | | hwdb: add HP Spectre x360's mic mute switchNiccolò Maggioni2020-06-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tested on HP Spectre x360 Convertible 13-aw0xxx
* | | | | | | | Merge pull request #16092 from yuwata/network-accept-local-16090Lennart Poettering2020-06-088-0/+34
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | network: introduce IPv4AcceptLocal= setting
| * | | | | | | test-network: add test for IPv4AcceptLocal=Yu Watanabe2020-06-082-0/+2
| | | | | | | |
| * | | | | | | network: introduce IPv4AcceptLocal= settingYu Watanabe2020-06-086-0/+32
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Closes #16090.
* | | | | | | homed help --uid short optionlayderv2020-06-071-1/+1
|/ / / / / /