This file is indexed.

/etc/ha.d/resource.d/IPsrcaddr is in heartbeat 1:3.0.5-3.2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
#
#
# Description:	wrapper of OCF RA IPsrcaddr, based on original heartbeat RA.
#		See OCF RA IPsrcaddr for more information.
#
# Author:	Xun Sun <xunsun@cn.ibm.com>
# Support:	linux-ha@lists.linux-ha.org
# License:	GNU General Public License (GPL)
# Copyright:	(C) 2005 International Business Machines
#
#	It can add a preferred source address, or remove one.
#
#	usage: IPsrcaddr ip-address {start|stop|status|monitor}
#
#	The "start" arg adds a preferred source address.
#
#	Surprisingly, the "stop" arg removes it.	:-)
#
#	NOTES:
#
#	1) There must be exactly one default route!
#	2) The script depends on Alexey Kuznetsov's ip utility from the
#	iproute aka iproute2 package.
#	3) No checking is done to see if the passed in IP address can
#	reasonably be associated with the interface on which the default
#	route exists.  So unless you want to deliberately spoof your source IP,
#	check it!  Normally, I would expect that your haresources looks
#	something like:
#
#		nodename ip1 ip2 ... ipN IPsrcaddr::ipX
#
#	where ipX is one of the ip1 to ipN.
#

. /etc/ha.d/resource.d//hto-mapfuncs

USAGE="usage: $0 <ip-address> $LEGAL_ACTIONS";

usage() {
    echo $USAGE >&2
    exit 1
}

if [ $# != 2 ]; then
    usage
fi

OCF_TYPE=IPsrcaddr
OCF_RESOURCE_INSTANCE=${OCF_TYPE}
export OCF_TYPE OCF_RESOURCE_INSTANCE

OCF_RESKEY_ipaddress=$1; export OCF_RESKEY_ipaddress
ra_execocf $2