Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v255 batch #421

Merged
merged 41 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8b8ffaf
docs: fix dead link to GNOME documentation
bluca Jun 27, 2024
ca3fb48
mkosi: Enable hyperscale-packages-experimental for CentOS
DaanDeMeyer Jun 27, 2024
c779261
Use consistent spelling of systemd.condition_first_boot argument
pyfisch Jun 18, 2024
0dd3463
man/systemd.exec: list inaccessible files for ProtectKernelTunables
BarbarossaTM Jun 19, 2024
b15dda5
kernel-install: correct the place where it works in man and help text
aafeijoo-suse Jun 19, 2024
4a44fb2
meson: bpf: propagate 'sysroot' for cross compilation
js731ca Jun 20, 2024
9ae9345
core/exec-invoke: reopen OpenFile= fds with O_NOCTTY
YHNdnzj Jun 24, 2024
5dc2cf6
Fix typo in CAP_BPF description (#33464)
eshcheglov Jun 24, 2024
99c7071
util: make file_read() 64bit offset safe
poettering Jun 26, 2024
04c40ac
cryptsetup: improve TPM2 blob display
kszczek Jun 25, 2024
f0fb435
core/exec-invoke: use sched_setattr instead of sched_setscheduler
Flowdalic Jun 26, 2024
1f21f1c
mountpoint-util: do not assume symlinks are not mountpoints
YHNdnzj Jun 26, 2024
b9c4100
man/tmpfiles: remove outdated behavior regarding symlink ownership
giovannibaratta Jun 27, 2024
0f8c2fc
TEST-58-REPART: reverse order of diff args
keszybz May 30, 2024
6c12c8d
LICENSES/README: expand text to summarize state for binaries and libs
keszybz Jun 28, 2024
a5510f7
TEST-64-UDEV-STORAGE: Make nvme_subsystem expected pci symlinks more …
DaanDeMeyer Jun 28, 2024
b2a6b24
resolved: allow the full TTL to be used by OPT records
jcoglan Jun 28, 2024
9edd47a
resolved: correct parsing of OPT extended RCODEs
jcoglan Jun 28, 2024
08249ad
core/unit: follow merged units before updating SourcePath= timestamp too
YHNdnzj Jun 28, 2024
ad0c6e8
repart: Log more about filesystem sector size
DaanDeMeyer Jun 28, 2024
d520833
repart: Don't set filesystem sector size to 512
DaanDeMeyer Jun 29, 2024
ad88bc8
mkfs-util: Set sector size for btrfs as well
DaanDeMeyer Jun 29, 2024
adc005d
core: try again bind mounting if the destination was already created
bluca Jun 29, 2024
7ae42f5
Conditional PSI check to reflect changes done in 5.13
rhellstrom Jun 27, 2024
44bdbe2
test: install /etc/hosts
fbuihuu Jul 1, 2024
e84e752
test: fix TEST-24-CRYPTSETUP on SUSE
fbuihuu Jul 2, 2024
4eefd0b
docs/CODING_STYLE: document that we nowadays prefer (const char*) for…
YHNdnzj Jul 2, 2024
4b78d4b
docs: Add section to HACKING.md on distribution packages
DaanDeMeyer Jun 26, 2024
3fc564f
coredump: correctly take tmpfs size into account for compression
bluca Jul 2, 2024
128f05e
meson: Define __TARGET_ARCH macros required by bpf
DaanDeMeyer Jul 2, 2024
6716cb9
core/dbus-manager: refuse SoftReboot() for user managers
YHNdnzj Jul 2, 2024
cec945d
boot: cover for hardware keys on phones/tablets
appsforartists Jul 3, 2024
cc590cc
README: add missing CONFIG_MEMCG kernel config option for oomd
jameshilliard Jul 3, 2024
3d3f3de
os-util: avoid matching on the wrong extension-release file
bluca Jul 3, 2024
1afb793
man: drop version info from file hiearchy man page
poettering Jul 3, 2024
39fb217
man: mention that distinction between /usr/lib/ and /usr/share/ is re…
poettering Jul 3, 2024
41e8477
man: fully adopt ~/.local/state/
poettering Jul 3, 2024
698016b
sysusers: handle NSS errors gracefully
bluca Jul 4, 2024
46a5952
README: update requirements for signed dm-verity
bluca Jul 4, 2024
a19fded
vmm: make sure we can handle smbios objects without variable part
poettering Jul 4, 2024
f953cf1
mkosi: drop CentOS 8 from CI
bluca Jul 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/mkosi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ jobs:
release: tumbleweed
- distro: centos
release: "9"
- distro: centos
release: "8"

env:
SYSTEMD_LOG_LEVEL: debug
Expand Down
14 changes: 11 additions & 3 deletions LICENSES/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ The 'LICENSES/' directory contains all the licenses used by the sources included
the systemd project source tree.

Unless otherwise noted, the systemd project sources are licensed under the terms
and conditions of the **GNU Lesser General Public License v2.1 or later**.
and conditions of
**LGPL-2.1-or-later** (**GNU Lesser General Public License v2.1 or later**).

Unless otherwise noted, compiled programs and all shared or static libraries
include sources under **LGPL-2.1-or-later** along with more permissive
licenses, and are effectively licensed **LGPL-2.1-or-later**.
systemd-udevd and other udev helper programs also include sources under
**GPL-2.0-or-later**, and are effectively licensed **GPL-2.0-or-later**.

New sources that cannot be distributed under LGPL-2.1-or-later will no longer
be accepted for inclusion in the systemd project to maintain license uniformity.
Expand All @@ -22,8 +29,9 @@ be accepted for inclusion in the systemd project to maintain license uniformity.

The following exceptions apply:

* some udev sources under src/udev/ are licensed under **GPL-2.0-or-later**, so the
udev binaries as a whole are also distributed under **GPL-2.0-or-later**.
* some sources under src/udev/ are licensed under **GPL-2.0-or-later**,
so all udev programs (`systemd-udevd`, `udevadm`, and the udev builtins
and test programs) are also distributed under **GPL-2.0-or-later**.
* the header files contained in src/basic/linux/ and src/shared/linux/ are copied
verbatim from the Linux kernel source tree and are licensed under **GPL-2.0 WITH
Linux-syscall-note** and are used within the scope of the Linux-syscall-note
Expand Down
6 changes: 4 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ REQUIREMENTS:

Required for signed Verity images support:
CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG
Required to verify signed Verity images using keys enrolled in the MoK
(Machine-Owner Key) keyring:
Required to verify signed Verity images using keys enrolled in the MOK
(Machine-Owner Key) and DB UEFI certificate stores:
CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING
CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG_PLATFORM_KEYRING
CONFIG_IMA_ARCH_POLICY
CONFIG_INTEGRITY_MACHINE_KEYRING

Expand Down Expand Up @@ -166,6 +167,7 @@ REQUIREMENTS:

Required for systemd-oomd:
CONFIG_PSI
CONFIG_MEMCG

Note that kernel auditing is broken when used with systemd's container
code. When using systemd in conjunction with containers, please make
Expand Down
14 changes: 13 additions & 1 deletion docs/CODING_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ SPDX-License-Identifier: LGPL-2.1-or-later
}
```

- Function return types should be seen/written as whole, i.e. write this:

```c
const char* foo(const char *input);
```

instead of this:

```c
const char *foo(const char *input);
```

- Single-line `if` blocks should not be enclosed in `{}`. Write this:

```c
Expand Down Expand Up @@ -180,7 +192,7 @@ SPDX-License-Identifier: LGPL-2.1-or-later

```c
static int foobar_frobnicate(
Foobar* object, /* the associated mutable object */
Foobar *object, /* the associated mutable object */
const char *input, /* immutable input parameter */
char **ret_frobnicated) { /* return parameter */
Expand Down
44 changes: 44 additions & 0 deletions docs/HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,50 @@ $ meson test -C build

Happy hacking!

## Building distribution packages with mkosi

To build distribution packages for a specific distribution and release without
building an actual image, the following command can be used:

```sh
mkosi -d <distribution> -r <release> -t none -f
```

Afterwards the distribution packages will be located in `build/mkosi.output`. To
also build debuginfo packages, the following command can be used:

```sh
mkosi -d <distribution> -r <release> -E WITH_DEBUG=1 -t none -f
```

To upgrade the systemd packages on the host system to the newer versions built
by mkosi, run the following:

```sh
dnf upgrade build/mkosi.output/*.rpm # Fedora/CentOS
# TODO: Other distributions
```

To downgrade back to the old version shipped by the distribution, run the
following:

```sh
dnf downgrade "systemd*" # Fedora/CentOS
# TODO: Other distributions
```

Additionally, for each pull request, the built distribution packages are
attached as CI artifacts to the pull request CI jobs, which means that users can
download and install them to test out if a pull request fixes the issue that
they reported. To download the packages from a pull request, click on the
`Checks` tab. Then click on the `mkosi` workflow in the list of workflows on the
left of the `Checks` page. Finally, scroll down to find the list of CI
artifacts. In this list of artifacts you can find artifacts containing
distribution packages. To install these, download the artifact which is a zip
archive, extract the zip archive to access the individual packages, and install
them with your package manager in the same way as described above for packages
that were built locally.

## Templating engines in .in files

Some source files are generated during build. We use two templating engines:
Expand Down
2 changes: 1 addition & 1 deletion docs/MEMORY_PRESSURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ handling, it's typically sufficient to add a line such as:

Other programming environments might have native APIs to watch memory
pressure/low memory events. Most notable is probably GLib's
[GMemoryMonitor](https://developer-old.gnome.org/gio/stable/GMemoryMonitor.html). It
[GMemoryMonitor](https://docs.gtk.org/gio/iface.MemoryMonitor.html). It
currently uses the per-system Linux PSI interface as the backend, but operates
differently than the above: memory pressure events are picked up by a system
service, which then propagates this through D-Bus to the applications. This is
Expand Down
Loading
Loading