summaryrefslogtreecommitdiffstats
path: root/ctdb/packaging/RPM
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-04-03 14:44:08 +1100
committerAmitay Isaacs <amitay@gmail.com>2013-04-08 11:14:28 +1000
commitd931e73fb83fe1ced9c41b06c15060fd18aff3d7 (patch)
treed4223a6b1ebfacdcc7cf420ce4711b695b1b6d19 /ctdb/packaging/RPM
parent41f0252da22b97667ecdbc2235930d3b2523aa4d (diff)
downloadsamba-d931e73fb83fe1ced9c41b06c15060fd18aff3d7.tar.gz
samba-d931e73fb83fe1ced9c41b06c15060fd18aff3d7.tar.xz
samba-d931e73fb83fe1ced9c41b06c15060fd18aff3d7.zip
statd-callout: Make sure statd callout script always runs as root
In RHEL 6+, rpc.statd runs as "rpcuser" instead of root as on RHEL 5. This prevents CTDB tool commands talking to daemon since "rpcuser" cannot access CTDB socket. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fe8c4880b371492a38554868d4ca10918c54e412)
Diffstat (limited to 'ctdb/packaging/RPM')
-rw-r--r--ctdb/packaging/RPM/ctdb.spec.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/packaging/RPM/ctdb.spec.in b/ctdb/packaging/RPM/ctdb.spec.in
index 50287ab091..cb860443e5 100644
--- a/ctdb/packaging/RPM/ctdb.spec.in
+++ b/ctdb/packaging/RPM/ctdb.spec.in
@@ -13,7 +13,7 @@ URL: http://ctdb.samba.org/
Source: ctdb-%{version}.tar.gz
# Packages
-Requires: coreutils, sed, gawk, iptables, iproute, procps, ethtool
+Requires: coreutils, sed, gawk, iptables, iproute, procps, ethtool, sudo
# Commands - package name might vary
Requires: /usr/bin/killall, /bin/kill, /bin/netstat
# Directories
@@ -96,6 +96,7 @@ rm -rf $RPM_BUILD_ROOT
# Create the target build directory hierarchy
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d
make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir} install install_tests
@@ -136,6 +137,7 @@ rm -rf $RPM_BUILD_ROOT
%{_docdir}/ctdb/onnode.1.html
%{_docdir}/ctdb/ltdbtool.1.html
%{_docdir}/ctdb/ping_pong.1.html
+%{_sysconfdir}/sudoers.d/ctdb
%{_sysconfdir}/ctdb/events.d/00.ctdb
%{_sysconfdir}/ctdb/events.d/01.reclock
%{_sysconfdir}/ctdb/events.d/10.interface