A System and Service Manager
$ rpm -qlv systemd |grep -v 'root root' -rw-rw-r-- 1 root utmp 0 Jan 22 03:38 /run/utmp -rw-rw---- 1 root utmp 0 Jan 22 03:38 /var/log/btmp -rw-rw-r-- 1 root utmp 0 Jan 22 03:38 /var/log/lastlog -rw-rw-r-- 1 root utmp 0 Jan 22 03:38 /var/log/wtmp drwxr-sr-x 2 root systemd- 0 Jan 22 03:38 /var/log/journal During installation rpm would log an error that systemd-journal group is unknown. We create all our users by calling sysusers in the %post scriptlet, but that is too late. To avoid the warning we could either add a %pre scriptlet, but that'd require adding a dependency on shadow-utils for groupadd, since we can't use our own tools before we are installed. Let's instead create the directory owned by root.root, and change the group afterwards. The group ownership is for file ownership, and in the worst case (we don't assign the group or set mode +s), unprivileged users will not be able to read the logs. We also use 'utmp' group, but that is provided by setup.rpm and is not an issue. https://bugzilla.redhat.com/show_bug.cgi?id=2018913#c24 |
||
---|---|---|
tests | ||
.gitignore | ||
.zuul.yaml | ||
10-oomd-defaults.conf | ||
10-oomd-root-slice-defaults.conf | ||
10-oomd-user-service-defaults.conf | ||
20-yama-ptrace.conf | ||
21705.patch | ||
f58b96d3e8d1cb0dd3666bc74fa673918b586612.patch | ||
inittab | ||
libsystemd-shared.abignore | ||
macros.sysusers | ||
owner-check.sh | ||
owner-check.template | ||
purge-nobody-user | ||
README.build-in-place | ||
rpminspect.yaml | ||
sources | ||
split-files.py | ||
sysctl.conf.README | ||
systemd-journal-gatewayd.xml | ||
systemd-journal-remote.xml | ||
systemd-udev-trigger-no-reload.conf | ||
systemd-user | ||
systemd.rpmlintrc | ||
systemd.spec | ||
sysusers.attr | ||
sysusers.generate-pre.sh | ||
sysusers.prov | ||
triggers.systemd | ||
use-bfq-scheduler.patch | ||
yum-protect-systemd.conf |
== Building systemd rpms for local development using rpmbuild --build-in-place == This approach is based on https://github.com/filbranden/git-rpmbuild and filbranden's talk during ASG2019 [https://www.youtube.com/watch?v=fVM1kJrymRM]. ``` git clone https://github.com/systemd/systemd fedpkg clone systemd fedora-systemd cd systemd rpmbuild -bb --build-in-place --noprep --define "_sourcedir $PWD/../fedora-systemd" --define "_rpmdir $PWD/rpms" --with inplace ../systemd.spec sudo dnf upgrade --setopt install_weak_deps=False rpms/*/*.rpm ``` `--without lto` and `--without tests` may be useful to speed up the build.