This file is indexed.

/usr/lib/radare/bin/flag-sections is in radare-common 1:1.5.2-6.

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
#!/bin/sh
PRG=$1

if [ -z "${PRG}" ]; then
	echo "Usage: rsc flag-sections \${FILE}"
else
#	echo "fs sections"
#	if [ -n "`file $PRG | grep "32-bit"`" ]; then
		rabin -rSe $PRG
#		rabin -rS $PRG
#	else
#		# is a program or library
#		readelf -S $PRG | grep '\] \.' | \
#			sed -e 's,-,_,g' -e 's,\.,section_,' -e 's,\.,_,g' | \
#			cut -d ']' -f 2 | \
#			awk '{print "f "$1" @ 0x"$3"\nf "$1"_end @ 0x"$3"+0x"$5}'
#	fi
#	if [ -n "`file $PRG | grep relocat`" ]; then
#		# is an object
#	 	readelf -S $PRG | \
#			grep '\] \.' | \
#			sed -e 's,-,_,g' -e 's,\.,section_,' -e 's,\.,_,g' | \
#			cut -d ']' -f 2 | \
#			awk '{print "f "$1" @ 0x"$4"\nf "$1"_end @ 0x"$4"+0x"$5}'
#	else
#		# is a program or library
#		readelf -S $PRG | grep '\] \.' | \
#			sed -e 's,-,_,g' -e 's,\.,section_,' -e 's,\.,_,g' | \
#			cut -d ']' -f 2 | \
#			awk '{print "f "$1" @ 0x"$3"\nf "$1"_end @ 0x"$3"+0x"$5}'
#	fi
fi