Install a temporary copy of rpm-ostree for unprivileged use

Install a copy of rpm-ostree as rpm-ostree-unpriv to get a `bin_t`
labeled binary as a temporary workaround for:
https://bugzilla.redhat.com/show_bug.cgi?id=1937404

Also modify the rpm-ostree count me service to use that binary.
This commit is contained in:
Timothée Ravier 2021-03-16 16:36:57 +01:00 committed by Colin Walters
parent f7fd114f11
commit 5d5ccf019f
2 changed files with 2 additions and 1 deletions

View File

@ -149,6 +149,7 @@ BUILT_SOURCES += $(binding_generated_sources)
install-rpmostree-hook:
install -d -m 0755 $(DESTDIR)$(bindir)
install -m 0755 -t $(DESTDIR)$(bindir) rpm-ostree
install -m 0755 rpm-ostree $(DESTDIR)$(libexecdir)/rpm-ostree-unpriv
INSTALL_EXEC_HOOKS += install-rpmostree-hook
# Wraps `cargo test`. This is always a debug non-release build;

View File

@ -9,4 +9,4 @@ User=rpm-ostree
DynamicUser=yes
StateDirectory=rpm-ostree-countme
StateDirectoryMode=750
ExecStart=@bindir@/rpm-ostree countme
ExecStart=@libexecdir@/rpm-ostree-unpriv countme