summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* virt: Detect proot virtualisation by ptrace metadataprootChris Down2020-04-142-0/+20
| | | | | | | | | | | | | | | | proot provides userspace-powered emulation of chroot and mount --bind, lending it to be used on environments without unprivileged user namespaces, or in otherwise restricted environments like Android. In order to achieve this, proot makes use of the kernel's ptrace() facility, which we can use in order to detect its presence. Since it doesn't use any kind of namespacing, including PID namespacing, we don't need to do any tricks when trying to get the tracer's metadata. For our purposes, proot is listed as a "container", since we mostly use this also as the bucket for non-container-but-container-like technologies like WSL. As such, it seems like a good fit for this section as well.
* Merge pull request #15417 from poettering/fileno-can-failZbigniew Jędrzejewski-Szmek2020-04-145-26/+68
|\ | | | | fileio: fileno() can realistically return -1
| * hwdb: optimize isatty()-per-line awayLennart Poettering2020-04-131-1/+1
| | | | | | | | Fixes: #15407
| * fileio: extend comment a bitLennart Poettering2020-04-131-3/+5
| |
| * fileio: optionally allow telling read_line_full() whether we are processing ↵Lennart Poettering2020-04-132-6/+8
| | | | | | | | a tty or not
| * fileio: fileno() can realistically return -1Lennart Poettering2020-04-133-18/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | An stdio FILE* stream usually refers to something with a file descriptor, but that's just "usually". It doesn't have to, when taking fmemopen() and similar into account. Most of our calls to fileno() assumed the call couldn't fail. In most cases this was correct, but in some cases where we didn't know whether we work on files or memory we'd use the returned fd as if it was unconditionally valid while it wasn't, and passed it to a multitude of kernel syscalls. Let's fix that, and do something reasonably smart when encountering this case. (Running test-fileio with this patch applied will remove tons of ioctl() calls on -1).
* | Merge pull request #15414 from mrc0mmand/coredumpctl-fileAnita Zhang2020-04-132-0/+29
|\ \ | | | | | | coredumpctl: support --file=PATH
| * | coredumpctl: support --file=PATHFrantisek Sumsal2020-04-132-0/+29
| | | | | | | | | | | | | | | | | | Let's match journalctl's functionality by throwing --file for coredumpctl into the mix, so we can work on a single journal file as well.
* | | Fix pam_systemd_home's debug parameter to match man page descriptionJoel Shapiro2020-04-131-1/+4
| | |
* | | sd-network: DHCPv6 - Add status codesSusant Sahani2020-04-132-15/+51
| | | | | | | | | | | | https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#dhcpv6-parameters-5
* | | core: make sure ProtectHostname= is handled gracefully in containers lacking ↵Lennart Poettering2020-04-131-20/+40
| | | | | | | | | | | | | | | | | | seccomp Fixes: #15408
* | | update TODOLennart Poettering2020-04-131-0/+8
| |/ |/|
* | Merge pull request #15411 from ssahani/systemd-issue-15375Lennart Poettering2020-04-133-3/+5
|\ \ | | | | | | sd-network: DHCPv6 - Add NoPrefixAvail to error code
| * | sd-network: DHCP6 - Use readable error status rather than numericSusant Sahani2020-04-131-2/+2
| | | | | | | | | | | | value in the log message
| * | sd-network: DHCPv6 - Add NoPrefixAvail to error codeSusant Sahani2020-04-122-1/+3
| | |
* | | Merge pull request #15397 from ssahani/vxlanLennart Poettering2020-04-132-2/+22
|\ \ \ | | | | | | | | network: VXlan group and remote fixes
| * | | networkctl: Add support to display VXLan remote addressSusant Sahani2020-04-111-1/+9
| | | |
| * | | network: VXLan - Add support for remote addressSusant Sahani2020-04-111-0/+12
| | | |
| * | | network: VXLan - fix adding Group addressSusant Sahani2020-04-101-4/+4
| | | |
* | | | Remove unneded {}sZbigniew Jędrzejewski-Szmek2020-04-1311-28/+14
| | | | | | | | | | | | | | | | | | | | | | | | $ perl -i -0pe 's|\s+{\n([^\n]*;)\n\s+}\n|\n\1\n|gms' **/*.c Inspired by ea7cbf5bdd68d7861ebf1570c439e8bbabd83f6c.
* | | | Merge pull request #15281 from keszybz/functional-test-reworkZbigniew Jędrzejewski-Szmek2020-04-127-31/+77
|\ \ \ \ | | | | | | | | | | Post-merge tweaks to the functional tests
| * | | | run-integration-tests: only do the clean operation in the beginningZbigniew Jędrzejewski-Szmek2020-03-311-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When doing 'make clean', we remove the cached image. So doing 'make -C TEST-NN-foo clean setup run clean-again' in a loop is very slow. Let's filter out the 'clean' target (if specified), and do the cleaning in the beginning, and then run other targets in a loop as before.
| * | | | test: run loop device cleanup in more casesZbigniew Jędrzejewski-Szmek2020-03-311-1/+1
| | | | |
| * | | | run-integration-tests: print timesZbigniew Jędrzejewski-Szmek2020-03-311-5/+6
| | | | |
| * | | | TEST-13-*: remove containers created in test before running the testZbigniew Jędrzejewski-Szmek2020-03-312-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test would fail when run again from the same image. So let's rename the stuff we create to be more unique, and remove it before running the test. (Removing it after would be more elegant, but it's hard to make sure that everything is removed when things fail halfway. Cleanup *before* tests is much more rebust.)
| * | | | TEST-06-*: also try the installation path for DebianZbigniew Jędrzejewski-Szmek2020-03-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/debian/tests/upstream used sed to adjust the path. I think it's better to make our script more flexible.
| * | | | test: optionally print the journal after testsZbigniew Jędrzejewski-Szmek2020-03-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | This is hopefully the last bit of functionality from https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/debian/tests/upstream.
| * | | | test: use systemd-journal-remote for journal copying, support ↵Zbigniew Jędrzejewski-Szmek2020-03-311-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ARTIFACT_DIRECTORY Using s-j-remote fixes the following issue: when coalescing files from multiple inputs, simply copying all files with into the the same directory might potentially mess things up, because a newer system.journal might overwrite an older journal. This happens because we run multiple tests from the same image, and need to clean out the directory after each run. By using systemd-journal-remote, we nicely coalesce all files. This has the advantage that if there aren't too many logs, we end up with just one journal file. ARTIFACT_DIRECTORY is for ubuntuautopackagetests, where the journal files are copied to a separate directory to preserve after tests have been run. This functionality can now be recreated by setting ARTIFACT_DIRECTORY=$AUTOPKGTEST_ARTIFACTS.
| * | | | test: use a helper function to move the journal filesZbigniew Jędrzejewski-Szmek2020-03-313-13/+18
| | | | |
| * | | | run-integration-tests: add support for blacklistingZbigniew Jędrzejewski-Szmek2020-03-311-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was done downstream in debian and ubuntu [1]. I want to change the downstream file to use run-integration-tests so we can change the way tests work more easily. Let's start moving downstream functionality upstream. $ sudo BLACKLIST_MARKERS='blacklist-ubuntu-ci-arm64 blacklist-ubuntu-ci' \ BUILD_DIR=build test/run-integration-tests.sh [1] https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/debian/tests/upstream
| * | | | test: use systemd.status-unit-format=name in all but one testZbigniew Jędrzejewski-Szmek2020-03-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | We want to test the traditional output, but the non-default one is generally much nicer for debugging (and takes less space...).
* | | | | Merge pull request #15406 from DaanDeMeyer/sd-bus-set-exec-docsZbigniew Jędrzejewski-Szmek2020-04-124-7/+19
|\ \ \ \ \ | | | | | | | | | | | | Add sd_bus_set_exec docs
| * | | | | sd-bus: Add sd_bus_set_exec docsDaan De Meyer2020-04-122-5/+17
| | | | | |
| * | | | | sd-bus: Use pointer syntax for sd_bus_set_exec argv parameterDaan De Meyer2020-04-112-2/+2
| | | | | |
* | | | | | home: switch to BusLocator-oriented helpersVito Caputo2020-04-122-185/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove some unnecessary verbosity, largely mechanical change with no functional difference.
* | | | | | hwdb: Add accel orientation quirk for Geoflex laptopRoss Lagerwall2020-04-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a quirk to fix the accelerometer orientation on the Geoflex laptop so that the display is upright rather than upside-down.
* | | | | | Merge pull request #15365 from poettering/remount-fs-pstore-fixZbigniew Jędrzejewski-Szmek2020-04-126-7/+16
|\ \ \ \ \ \ | | | | | | | | | | | | | | pid1: automatically generate systemd-remount-fs.service deps, plus enable systemd-pstore from sysinit.target
| * | | | | | units: make sure systemd-pstore stops at shutdownLennart Poettering2020-04-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't matter too much given that the service doesn't do anything on shutdown, but let's still stop it to make things cleaner.
| * | | | | | units: drop systemd-remount-fs.service dependency from more servicesLennart Poettering2020-04-084-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All services using StateDirectory= don't need the explicit dep anymore, let's hence drop it everywhere.
| * | | | | | units: drop dependency on systemd-remount-fs.service from systemd-pstore.serviceLennart Poettering2020-04-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This dependency is now generated automatically given we use StateDirectory=. Moreover the combination of Wants= and After= was too strong anway, as whether remount-fs is pulled in or not should not be up to systemd-pstore.service, and in fact is part of the initial transaction anyway.
| * | | | | | core: automatically add dependency on systemd-remount-fs.service if ↵Lennart Poettering2020-04-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | StateDirectory= is used And similar for other settings that require a writable /var/. Rationale: if these options are used for early-boot services (such as systemd-pstore.service) we need /var/ writable. And if /var/ is on the root fs, then systemd-remount-fs.service is the service that ensures that /var/ is writable. This allows us to remove explicit deps in services such as systemd-pstore.service.
| * | | | | | units: pull in systemd-pstore.service from sysinit.targetLennart Poettering2020-04-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sysinit.target is the target our early boot services are generally pulled in from, make systemd-pstore.service not an exception of that. Effectively this doesn't mean much, either way our unit is part of the initial transaction.
* | | | | | | Merge pull request #15405 from DaanDeMeyer/sd-bus-can-send-docsZbigniew Jędrzejewski-Szmek2020-04-125-23/+131
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Add sd_bus_can_send docs
| * | | | | | | sd-bus: Add sd_bus_can_send docsDaan De Meyer2020-04-113-0/+95
| | | | | | | |
| * | | | | | | sd-bus: Fix sd_bus_close.xml line wrappingDaan De Meyer2020-04-111-22/+28
| | | | | | | |
| * | | | | | | meson: Exclude more deprecated functions from check-api-docsDaan De Meyer2020-04-111-1/+8
| | |/ / / / / | |/| | | | |
* | | | | | | Merge pull request #15399 from DaanDeMeyer/sd-bus-property-docsZbigniew Jędrzejewski-Szmek2020-04-125-2/+192
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | sd_bus_get/set_property docs
| * | | | | | sd-bus: Add sd_bus_get/set_property docsDaan De Meyer2020-04-114-1/+191
| | | | | | |
| * | | | | | sd-bus: sd_bus_message_append fixesDaan De Meyer2020-04-101-1/+1
| | | | | | |
* | | | | | | docs: introduce documentation category for user/group stuffLennart Poettering2020-04-118-8/+8
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | We have so many different docs on various facets of user/group stuff, let's add our own category for it.