Check-in [a0ad8fcf5e]
Overview
Comment:Updated with better search for sys_call_table address in files
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:a0ad8fcf5e12a910aceb002ae6fabb81d5f49165
User & Date: rkeene on 2016-01-20 15:48:58
Other Links: manifest | tags
Context
2016-01-20
15:48
Updated with better search for sys_call_table address in files Leaf check-in: a0ad8fcf5e user: rkeene tags: trunk
15:26
Updated to print UID of user invoking keyctl() check-in: 6546477ed5 user: rkeene tags: trunk, 1
Changes

Modified configure from [b512e69854] to [a88b256cec].

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	echo "error: Unable to determine kernel build directory.  Try specifying the KERNEL_DIR environment variable" >&2

	exit 1
fi

if [ -z "${SYSTEM_MAP_FILE}" ]; then
	for trySystemMapFile in /proc/kallsyms "${kernelDir}/System.map" "/boot/System.map"; do
		if grep ' sys_call_table' "${trySystemMapFile}" >/dev/null 2>/dev/null; then
			systemMapFile="${trySystemMapFile}"

			break
		fi
	done
else
	systemMapFile="${SYSTEM_MAP_FILE}"







|







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	echo "error: Unable to determine kernel build directory.  Try specifying the KERNEL_DIR environment variable" >&2

	exit 1
fi

if [ -z "${SYSTEM_MAP_FILE}" ]; then
	for trySystemMapFile in /proc/kallsyms "${kernelDir}/System.map" "/boot/System.map"; do
		if egrep ' sys_call_table($| )' "${trySystemMapFile}" >/dev/null 2>/dev/null; then
			systemMapFile="${trySystemMapFile}"

			break
		fi
	done
else
	systemMapFile="${SYSTEM_MAP_FILE}"