public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/containernetworking-plugins] rawhide: Add explicit unit file permissions during install
@ 2026-08-13 22:29 Bradley G Smith
  0 siblings, 0 replies; only message in thread
From: Bradley G Smith @ 2026-08-13 22:29 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/containernetworking-plugins
            Branch : rawhide
            Commit : b75ff28cbae163bcd3f96dbd9634be38337fbac1
            Author : Bradley G Smith <bradley.g.smith@gmail.com>
            Date   : 2026-08-13T10:22:52-07:00
            Stats  : +3/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/containernetworking-plugins/c/b75ff28cbae163bcd3f96dbd9634be38337fbac1?branch=rawhide

            Log:
            Add explicit unit file permissions during install

- A note from Petr Sklenar on the fedora developer list shows
  that this package does not explicitly set unit file permissions
  which can lead to a problem
- Explicit permissions are now set correctly

---
diff --git a/containernetworking-plugins.spec b/containernetworking-plugins.spec
index 8549c97..29fd2a1 100644
--- a/containernetworking-plugins.spec
+++ b/containernetworking-plugins.spec
@@ -86,9 +86,9 @@ done
 install -m 0755 -vd                     %{buildroot}%{_libexecdir}/cni
 install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}/%{_libexecdir}/cni/
 
-install -dp %{buildroot}%{_unitdir}
-install -p plugins/ipam/dhcp/systemd/cni-dhcp.service %{buildroot}%{_unitdir}
-install -p plugins/ipam/dhcp/systemd/cni-dhcp.socket  %{buildroot}%{_unitdir}
+install -d -m 0755 %{buildroot}%{_unitdir}
+install -p -m 0644 plugins/ipam/dhcp/systemd/cni-dhcp.service %{buildroot}%{_unitdir}
+install -p -m 0644 plugins/ipam/dhcp/systemd/cni-dhcp.socket  %{buildroot}%{_unitdir}
 
 %check
 %go_vendor_license_check -c %{S:2}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-13 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13 22:29 [rpms/containernetworking-plugins] rawhide: Add explicit unit file permissions during install Bradley G Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox