Check-in [a0ad8fcf5e]
Overview
SHA1:a0ad8fcf5e12a910aceb002ae6fabb81d5f49165
Date: 2016-01-20 15:48:58
User: rkeene
Comment:Updated with better search for sys_call_table address in files
Timelines: family | ancestors | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-01-20
15:48
[a0ad8fcf5e] Leaf: Updated with better search for sys_call_table address in files (user: rkeene, tags: trunk)
15:26
[6546477ed5] Updated to print UID of user invoking keyctl() (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}"