summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* NEWS: mention that Address= assumes /32 or /128 prefix length if not specifiedYu Watanabe2023-01-191-0/+4
|
* in-addr-util: drop unused mode to parse prefix lengthYu Watanabe2023-01-193-46/+26
|
* network: assume prefix length is full address sizeYu Watanabe2023-01-193-9/+8
| | | | | | | | | | | The commit 0f707207b9fc04d45ad176930cfefc77c0068545 enables strong warning about missing prefix length in Address= setting. The change was done in v241, and was about 4 years ago. Let's drop the legacy assumption and make the parser consistent with 'ip address' command. C.f. #11307. Closes #26102.
* test-network: drop unused fileYu Watanabe2023-01-191-8/+0
|
* meson: ukify depends on GNU_EFILudwig Nussel2023-01-191-18/+18
| | | | | ukify is rather efi specific and the manpage is already conditional on HAVE_GNU_EFI so make the program also depend on HAVE_GNU_EFI
* testsuite-77: Fix race conditionDaan De Meyer2023-01-197-22/+18
| | | | | Use a socket unit to make sure the socket exists before we start the client that accesses it.
* Merge pull request #23706 from medhefgo/efi-clangLuca Boccassi2023-01-1828-322/+1091
|\ | | | | boot: Add printf functions
| * boot: Drop use of PrintJan Janssen2023-01-184-98/+102
| | | | | | | | | | | | | | The custom print helpers have been replaced with explicit checks at the call site to keep this in line with the way it is done in userspace. Any calls where the check has been ommited should not need them as the value is expected to alawys be around.
| * boot: Drop use of xpool_print/SPrintJan Janssen2023-01-186-44/+43
| |
| * tree-wide: Use __func__ in assertsJan Janssen2023-01-183-7/+7
| | | | | | | | | | | | clang puts the whole function signature in __PRETTY_FUNCTION__, which is a bit excessive for something that can already be figured out by using the line number.
| * boot: Add log_trace debugging helperJan Janssen2023-01-181-0/+1
| |
| * boot: Introduce log_waitJan Janssen2023-01-189-16/+46
| | | | | | | | | | Instead of stalling for every log message as it appears we now wait for several messages at strategic locations.
| * boot: Use printf for error loggingJan Janssen2023-01-1818-161/+148
| | | | | | | | This also drops the _stall suffix in anticipation of the next commit.
| * boot: Add printf functionsJan Janssen2023-01-186-0/+748
| |
* | tpm2: add salt to pinWilliam Roberts2023-01-1811-15/+230
| | | | | | | | | | | | | | | | | | | | Add a salt to the pin and store it in the TPM2 LUKS header for future this. This adds entropy to user supplied pins and helps brute forcing the passphrase on the key residing in the TPM or brute forcing bind key encrypted sessions with low entropy passphrases. Signed-off-by: malikabhi05 <abhishek.malik@intel.com> Signed-off-by: William Roberts <william.c.roberts@intel.com>
* | man: note that cgroup-based sandboxing is not bypassed by '+'Luca Boccassi2023-01-184-2/+29
| | | | | | | | | | | | | | | | DeviceAllow= and others are applied to the whole cgroup via bpf, so using '+' on an Exec line will not bypass them. Explain this in the manpage. Fixes https://github.com/systemd/systemd/issues/26035
* | Merge pull request #25790 from joshua-zivkovic/JZ/plotjson-mainLennart Poettering2023-01-187-58/+210
|\ \ | | | | | | systemd-analyze: Add JSON and table output to systemd-analyze's plot
| * | systemd-analyze: Add --json=, --table and -no-legend tests for plotjoshuazivkovic2023-01-181-0/+9
| | |
| * | systemd-analyze: Add tab complete logic for plotjoshuazivkovic2023-01-182-3/+19
| | |
| * | systemd-analyze: Update man/systemd-analyze.xml with Plot JSON and tablejoshuazivkovic2023-01-181-3/+28
| | |
| * | systemd-analyze: Add table and JSON output implementation to plotJoshua Zivkovic2023-01-183-52/+154
| |/
* | Merge pull request #26082 from kraxel/ukiLennart Poettering2023-01-185-0/+219
|\ \ | |/ |/| bootctl: add is-uki command
| * bootctl: add kernel-inspect commandGerd Hoffmann2023-01-184-0/+87
| | | | | | | | | | | | Takes a kernel image as argument. Prints details about the kernel. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
| * bootctl: add kernel-identity commandGerd Hoffmann2023-01-185-0/+132
| | | | | | | | | | The command takes a kernel as argument and checks what kind of kernel the image is. Returns one of uki, pe or unknown.
* | test-network: reprocess the loopback network interfaceYu Watanabe2023-01-181-0/+4
| | | | | | | | Fixes the issue reported at https://github.com/systemd/systemd-centos-ci/pull/585#issuecomment-1385537641.
* | Merge pull request #26021 from fbuihuu/some-journald-improvementsLennart Poettering2023-01-185-46/+135
|\ \ | | | | | | Some journald improvements
| * | journald: split find_journal() upFranck Bui2023-01-161-28/+44
| | | | | | | | | | | | No functional change.
| * | journald: introduce journal_file_parse_uid_from_filename() helperFranck Bui2023-01-165-16/+89
| | |
| * | journald: rename vacuum_offline_user_journals()Franck Bui2023-01-161-2/+2
| | | | | | | | | | | | | | | | | | | | | The name was misleading because the function actually archives offline journals, ie it doesn't try to remove them to make some room. No functional change.
* | | Merge pull request #26092 from poettering/dissect-sector-sizeLennart Poettering2023-01-1816-39/+310
|\ \ \ | | | | | | | | auto-detect intended sector size from DDI disk images, and configure loopback devices for it
| * | | repart: auto-probe sector size when not specifiedLennart Poettering2023-01-181-3/+17
| | | |
| * | | homework: when creating/resizing GPT partitions, also set sector size explicitlyLennart Poettering2023-01-186-14/+61
| | | |
| * | | dissect: show sector size in info outputLennart Poettering2023-01-181-0/+5
| | | |
| * | | loop-util: always tell kernel explicitly about loopback sector sizeLennart Poettering2023-01-1811-16/+102
| | | | | | | | | | | | | | | | | | | | | | | | Let's not leave the sector size unspecified: either set a user supplied value, or auto-detect the right size by probing the disk image accordingly.
| * | | dissect-image: add probe_sector_size() helper for detecting sector size of a ↵Lennart Poettering2023-01-182-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GPT disk image When we operate with DDIs with sector sizes != 512 we need to configure the loopback device to match it, otherwise the image and the kernel block device will disagree what things are. Let's add a prober that tries to determine the sector size of a GPT DDI. It does this by looking for the GPT partition table header at the various byte offsets they must be located on, given a specific sector size. It will try sector size 512, 1024, 2048 and 4096. Of these only the 512 and 4096 really make sense IRL I guess, but let's be thorough.
| * | | loop-util: insist on setting the sector size correctlyLennart Poettering2023-01-181-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | If we attach a disk image to a loopback device the sector size of the image must match the one of the loopback device, hence be more careful here.
| * | | blockdev-util: add simple wrapper around BLKSSZGETLennart Poettering2023-01-183-6/+23
| | | | | | | | | | | | | | | | | | | | Just adds some typesafety and generates an error if the field is not initialized in the block device yet.
* | | | core: add GetUnitByPIDFD method and use it in systemctlLuca Boccassi2023-01-185-13/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A pid can be recycled, but a pidfd is pinned. Add a new method that is safer as it takes a pidfd as input. Return not only the D-Bus object path, but also the unit id and the last recorded invocation id, as they are both useful (especially the id, as converting from a path object to a unit id from a script requires another round-trip via D-Bus). Note that the manager still tracks processes by pid, so theorethically this is not fully error-proof, but on the other hand the method response is synchronous and the manager is single-threaded, so once a call is being processed the unit database will not change anyway. Once the manager switches to use pidfds everywhere, this can be further hardened.
* | | | hwdb: Add mic mute key mappings for Dell G16 SeriesKoba Ko2023-01-181-0/+2
|/ / / | | | | | | | | | add Dell G16 series to use the mic mute hotkey.
* | | Merge pull request #26044 from DaanDeMeyer/repart-sector-sizeDaan De Meyer2023-01-1810-77/+112
|\ \ \ | | | | | | | | repart: Allow configuring sector size
| * | | repart: Allow configuring sector sizeDaan De Meyer2023-01-1710-41/+97
| | | | | | | | | | | | | | | | | | | | | | | | Let's allow users to configure the (logical) sector size of their image. This is required when building images for a 4k sector size disk on a 512b sector size host or vice-versa.
| * | | mkfs-util: Shorten strv operations error handlingDaan De Meyer2023-01-171-36/+15
| | | |
* | | | test: bump D-Bus service start timeout if we run without accelFrantisek Sumsal2023-01-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default (25s) doesn't seem to be enough in some cases (especially in VMs without acceleration), causing spurious timeouts: [ 174.297658] dbus-daemon[647]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.0' (uid=0 pid=645 comm="hostnamectl " label="kernel") [ 184.202313] systemd[1]: systemd-update-utmp-runlevel.service: Consumed 1.253s CPU time. [ 197.335422] systemd[1]: Started dbus.service. [ 199.211468] testsuite-71.sh[639]: + assert_in 'Static hostname: H' '' [ 199.347192] dbus-daemon[647]: [system] Failed to activate service 'org.freedesktop.hostname1': timed out (service_start_timeout=25000ms) [ 199.394879] testsuite-71.sh[657]: + set +ex [ 199.438918] testsuite-71.sh[657]: FAIL: 'Static hostname: H' not found in: [ 200.966006] systemd-logind[631]: Watching system buttons on /dev/input/event0 (Power Button) [ 201.008178] systemd-logind[631]: Watching system buttons on /dev/input/event1 (AT Translated Set 2 keyboard) [ 201.034106] systemd-logind[631]: New seat seat0. [ 201.238267] sh[658]: + systemctl poweroff --no-block [ 201.329890] systemd[1]: Starting systemd-hostnamed.service... [ 202.156622] systemd[1]: systemd-update-utmp-runlevel.service: Deactivated successfully. [ 204.818913] hostnamectl[645]: Failed to query system properties: Connection timed out [ 205.195583] systemd[1]: testsuite-71.service: Main process exited, code=exited, status=1/FAILURE [ 205.227237] systemd[1]: testsuite-71.service: Failed with result 'exit-code'. [ 205.712780] systemd[1]: Failed to start testsuite-71.service.
* | | | Merge pull request #26081 from yuwata/udev-symlink-removeLuca Boccassi2023-01-174-9/+28
|\ \ \ \ | | | | | | | | | | udev: support -= operator for SYMLINK
| * | | | test-udev: add a brief test for -= operator for SYMLINKYu Watanabe2023-01-171-2/+3
| | | | |
| * | | | udev: support '-=' operator for SYMLINKFranck Bui2023-01-173-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some (corner) cases, it might be desirable to disable the generation of some persistent storage symlinks that 60-persistent-storage.rules creates. For example on big setups with a high number of partitions which uses the same label name, this can result in a noticeable slow-down in the (re)start of the udevd as there are many contenders for the symlink /dev/disk/by-partlabel. However it's currently pretty hard to overwrite just some specific part of the rule file. Indeed one need to copy and modify the whole rule file in /etc but will lost any upcoming updates/fixes that the distro might release in the future. With this simple patch, one can now disable the generation of the "by-partlabel" symlinks (for example) with the following single rule: $ cat /etc/udev/rules.d/99-no-by-partlabel.rules ENV{ID_PART_ENTRY_NAME}=="?*", SYMLINK-="disk/by-partlabel/$env{ID_PART_ENTRY_NAME}" Closes #24607.
* | | | | coredump: use fstatvfs to check the available spaceDmitry V. Levin2023-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given that we already have the file descriptor opened for writing, it would make sense to call fstatvfs with that file descriptor rather than statvfs with the directory path that was used to open that descriptor.
* | | | | doc: document how we expect empty lines to be usedLennart Poettering2023-01-171-2/+16
| | | | |
* | | | | boot: Fix missed argument to Print()Jan Janssen2023-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes 3e87a057a796b57bf9540b948823fbefef6693d7, which passed the path to the wrong Print() call. Miraculously, this was printing the correct path during testing and was therefore missed.
* | | | | units: don't install pcrphase-related units without gnu-efiFrantisek Sumsal2023-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since we don't have systemd-pcrphase built anyway, which breaks the tests: ... I: Attempting to install /usr/lib/systemd/systemd-networkd-wait-online (based on unit file reference) I: Attempting to install /usr/lib/systemd/systemd-network-generator (based on unit file reference) I: Attempting to install /usr/lib/systemd/systemd-oomd (based on unit file reference) I: Attempting to install /usr/lib/systemd/systemd-pcrphase (based on unit file reference) W: Failed to install '/usr/lib/systemd/systemd-pcrphase' make: *** [Makefile:4: setup] Error 1 make: Leaving directory '/root/systemd/test/TEST-01-BASIC' Follow-up to 04959faa632272a8fc9cdac3121b2e4af721c1b6.