Fix pgpool.spec.
authorBo Peng <pengbo@sraoss.co.jp>
Thu, 18 Apr 2024 02:24:35 +0000 (11:24 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Thu, 18 Apr 2024 02:24:35 +0000 (11:24 +0900)
The permission of /etc/sudoers.d/pgpool should be mode 0440.

src/pgpool.spec

index 12d6ac84a24e325bf9d2d357835ef03b30f386a3..2ac2349ab3716ca28e5388941ea1ee6641ae7e28 100644 (file)
@@ -187,7 +187,7 @@ install -d %{buildroot}%{_sysconfdir}/sysconfig
 
 # install sudoers.d to allow postgres user to run ip and arping with root privileges without a password
 install -d %{buildroot}%{_sysconfdir}/sudoers.d
-install -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sudoers.d/pgpool
+install -m 0440 %{SOURCE6} %{buildroot}%{_sysconfdir}/sudoers.d/pgpool
 
 # nuke libtool archive and static lib
 rm -f %{buildroot}%{_libdir}/libpcp.{a,la}