Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commi…
Commit: abdc276970edf3c44e21b48988e4c50232566eaa
Parent: 7d53eb8ab06a8713d2b52500da741b6170fbfc91
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Oct 25 15:55:21 2010 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Mon Oct 25 15:55:21 2010 +0200
fence_egenera: Missing -u / user in manual page
Resolves: rhbz#635824 (partially)
---
fence/agents/egenera/fence_egenera.8 | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/fence/agents/egenera/fence_egenera.8 b/fence/agents/egenera/fence_egenera.8
index 1111b1b..3823d7c 100644
--- a/fence/agents/egenera/fence_egenera.8
+++ b/fence/agents/egenera/fence_egenera.8
@@ -29,6 +29,9 @@ Vendor URL: http://www.egenera.com
The cserver to ssh to. cserver can be in the form user@hostname to
specify a different user to login as.
.TP
+\fB-u\fP \fIuser\fR
+Login name. Default login name is 'root'
+.TP
\fB-h\fP
Print out a help message describing available options, then exit.
.TP
@@ -55,6 +58,9 @@ Print out a version message, then exit.
\fIaction = < param >\fR
The action required. reboot (default), off, on or status.
.TP
+\fIuser = < param >\fR
+Login name. Default login name is 'root'
+.TP
\fIagent = < param >\fR
This option is used by fence_node(8) and is ignored by fence_apc.
.TP
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ef…
Commit: efadcbe9493327f6c6b011291fa6909cf5d413cb
Parent: 0e3074ee3666bef630884c323028486aeed28e62
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Wed Oct 22 10:10:08 2008 +0200
Committer: Lon Hohberger <lhh(a)redhat.com>
CommitterDate: Thu Oct 21 18:21:50 2010 -0400
rgmanager: move nfsclient.sh cache files where they belong
by using a static path to /tmp, the operation can be used to trigger
a local DoS by a normal user.
Move the cache files to /var/cache/cluster that's owned by root and
doesn't allow normal users to play with it.
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
rgmanager/src/resources/nfsclient.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/rgmanager/src/resources/nfsclient.sh b/rgmanager/src/resources/nfsclient.sh
index 7e8104a..a579bb1 100755
--- a/rgmanager/src/resources/nfsclient.sh
+++ b/rgmanager/src/resources/nfsclient.sh
@@ -382,12 +382,15 @@ status|monitor)
# Don't let anyone read the cache files.
#
umask 066
+
+ mkdir -p /var/cache/cluster
+
if [ -n "$OCF_RESKEY_service_name" ] && [ "$OCF_RESKEY_use_cache" = "1" ]; then
#
# For large #s of exports, we need to cache the information
#
- tmpfn=/tmp/nfsclient-status-cache-$OCF_RESKEY_service_name
+ tmpfn=/var/cache/cluster/nfsclient-status-cache-$OCF_RESKEY_service_name
if [ -f "$tmpfn" ]; then
time_created=$(stat -c "%Y" $tmpfn)
@@ -400,7 +403,7 @@ status|monitor)
#
# Create a different file if this is a separate instance
#
- tmpfn=/tmp/nfsclient-status-cache-$$
+ tmpfn=/var/cache/cluster/nfsclient-status-cache-$$
fi
if ! [ -f "$tmpfn" ] || [ $delta -gt 30 ]; then