INNER CODE UNIT · Go
UNAME_A
cdk-team/CDK · conf/linux_kernel_exploit.go:2402
UNAME_A=$(uname -a)
[ -z "$UNAME_A" ] && exitWithErrMsg "uname string empty. Aborting."
parseUname "$UNAME_A"
# get kernel configuration in this mode
[ "$opt_skip_more_checks" = "false" ] && getKernelConfig
# extract distribution version from /etc/os-release OR /etc/lsb-release
[ -n "$OS" -a "$opt_skip_more_checks" = "false" ] && DISTRO=$(grep -s -E '^DISTRIB_RELEASE=|^VERSION_ID=' /etc/*-release | cut -d'=' -f2 | head -1 | tr -d '"')
# extract package listing from current OS
getPkgList "$OS" ""
# --pkglist-file provided: only consider userspace exploits against provided package listing
else
KERNEL=""
#TODO: extract machine arch from package listing
ARCH=""