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:
parent
f7fd114f11
commit
5d5ccf019f
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user