"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/osdetection" between
lynis-3.0.5.tar.gz and lynis-3.0.6.tar.gz

About: Lynis is a security and system auditing tool.

osdetection  (lynis-3.0.5):osdetection  (lynis-3.0.6)
skipping to change at line 65 skipping to change at line 65
10.6 | 10.6.[0-9]*) OS_FULLNAME="Mac OS X 10.6 (Snow Leopard )" ;; 10.6 | 10.6.[0-9]*) OS_FULLNAME="Mac OS X 10.6 (Snow Leopard )" ;;
10.7 | 10.7.[0-9]*) OS_FULLNAME="Mac OS X 10.7 (Lion)" ;; 10.7 | 10.7.[0-9]*) OS_FULLNAME="Mac OS X 10.7 (Lion)" ;;
10.8 | 10.8.[0-9]*) OS_FULLNAME="Mac OS X 10.8 (Mountain Lio n)" ;; 10.8 | 10.8.[0-9]*) OS_FULLNAME="Mac OS X 10.8 (Mountain Lio n)" ;;
10.9 | 10.9.[0-9]*) OS_FULLNAME="Mac OS X 10.9 (Mavericks)" ;; 10.9 | 10.9.[0-9]*) OS_FULLNAME="Mac OS X 10.9 (Mavericks)" ;;
10.10 | 10.10.[0-9]*) OS_FULLNAME="Mac OS X 10.10 (Yosemite) " ;; 10.10 | 10.10.[0-9]*) OS_FULLNAME="Mac OS X 10.10 (Yosemite) " ;;
10.11 | 10.11.[0-9]*) OS_FULLNAME="Mac OS X 10.11 (El Capita n)" ;; 10.11 | 10.11.[0-9]*) OS_FULLNAME="Mac OS X 10.11 (El Capita n)" ;;
10.12 | 10.12.[0-9]*) OS_FULLNAME="macOS Sierra (${OS_VERSIO N})" ;; 10.12 | 10.12.[0-9]*) OS_FULLNAME="macOS Sierra (${OS_VERSIO N})" ;;
10.13 | 10.13.[0-9]*) OS_FULLNAME="macOS High Sierra (${OS_V ERSION})" ;; 10.13 | 10.13.[0-9]*) OS_FULLNAME="macOS High Sierra (${OS_V ERSION})" ;;
10.14 | 10.14.[0-9]*) OS_FULLNAME="macOS Mojave (${OS_VERSIO N})" ;; 10.14 | 10.14.[0-9]*) OS_FULLNAME="macOS Mojave (${OS_VERSIO N})" ;;
10.15 | 10.15.[0-9]*) OS_FULLNAME="macOS Catalina (${OS_VERS ION})" ;; 10.15 | 10.15.[0-9]*) OS_FULLNAME="macOS Catalina (${OS_VERS ION})" ;;
11.0 | 11.0[0-9]*) OS_FULLNAME="macOS Big Sur (${OS_VERSION} 11 | 11.[0-9]*) OS_FULLNAME="macOS Big Sur (${OS_VERSION})"
)" ;; ;;
12 | 12.[0-9]*) OS_FULLNAME="macOS Monterey (${OS_VERSION})"
;;
*) echo "Unknown macOS version. Do you know what version it is? Create an issue at ${PROGRAM_SOURCE}" ;; *) echo "Unknown macOS version. Do you know what version it is? Create an issue at ${PROGRAM_SOURCE}" ;;
esac esac
else else
# Fall back to a fairly safe name # Fall back to a fairly safe name
OS_NAME="macOS" OS_NAME="macOS"
# uname -s -r shows Darwin 16.1.0 # uname -s -r shows Darwin 16.1.0
OS_FULLNAME=$(uname -s -r) OS_FULLNAME=$(uname -s -r)
# shows 16.1.0 for Darwin's version, not macOS's # shows 16.1.0 for Darwin's version, not macOS's
OS_VERSION=$(uname -r) OS_VERSION=$(uname -r)
fi fi
skipping to change at line 176 skipping to change at line 177
"arch") "arch")
LINUX_VERSION="Arch Linux" LINUX_VERSION="Arch Linux"
OS_FULLNAME="Arch Linux" OS_FULLNAME="Arch Linux"
OS_VERSION="Rolling release" OS_VERSION="Rolling release"
;; ;;
"arch32") "arch32")
LINUX_VERSION="Arch Linux 32" LINUX_VERSION="Arch Linux 32"
OS_FULLNAME="Arch Linux 32" OS_FULLNAME="Arch Linux 32"
OS_VERSION="Rolling release" OS_VERSION="Rolling release"
;; ;;
"artix")
LINUX_VERSION="Artix Linux"
OS_FULLNAME="Artix Linux"
OS_VERSION="Rolling release"
;;
"bunsenlabs") "bunsenlabs")
LINUX_VERSION="BunsenLabs" LINUX_VERSION="BunsenLabs"
OS_NAME="BunsenLabs" OS_NAME="BunsenLabs"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"')
OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;; ;;
"centos") "centos")
LINUX_VERSION="CentOS" LINUX_VERSION="CentOS"
OS_NAME="CentOS Linux" OS_NAME="CentOS Linux"
OS_REDHAT_OR_CLONE=1 OS_REDHAT_OR_CLONE=1
skipping to change at line 282 skipping to change at line 288
OS_NAME="Mageia" OS_NAME="Mageia"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"')
OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;; ;;
"manjaro" | "manjaro-arm") "manjaro" | "manjaro-arm")
LINUX_VERSION="Manjaro" LINUX_VERSION="Manjaro"
OS_FULLNAME="Manjaro Linux" OS_FULLNAME="Manjaro Linux"
OS_NAME="Manjaro" OS_NAME="Manjaro"
OS_VERSION="Rolling release" OS_VERSION="Rolling release"
;; ;;
"nethserver")
LINUX_VERSION="NethServer"
OS_NAME="NethServer"
OS_REDHAT_OR_CLONE=1
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a
wk -F= '{print $2}' | tr -d '"')
;;
"nixos") "nixos")
LINUX_VERSION="NixOS" LINUX_VERSION="NixOS"
OS_NAME="NixOS" OS_NAME="NixOS"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"')
OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;; ;;
"ol") "ol")
LINUX_VERSION="Oracle Linux" LINUX_VERSION="Oracle Linux"
OS_NAME="Oracle Linux" OS_NAME="Oracle Linux"
OS_REDHAT_OR_CLONE=1 OS_REDHAT_OR_CLONE=1
skipping to change at line 305 skipping to change at line 317
LINUX_VERSION="openSUSE Tumbleweed" LINUX_VERSION="openSUSE Tumbleweed"
# It's rolling release but has a snapshot version (t he date of the snapshot) # It's rolling release but has a snapshot version (t he date of the snapshot)
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"')
OS_NAME="openSUSE" OS_NAME="openSUSE"
;; ;;
"opensuse-leap") "opensuse-leap")
LINUX_VERSION="openSUSE Leap" LINUX_VERSION="openSUSE Leap"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"')
OS_NAME="openSUSE" OS_NAME="openSUSE"
;; ;;
"opensuse-microos")
LINUX_VERSION="openSUSE MicroOS"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a
wk -F= '{print $2}' | tr -d '"')
OS_NAME="openSUSE"
;;
"parrot") "parrot")
LINUX_VERSION="Parrot" LINUX_VERSION="Parrot"
OS_NAME="Parrot GNU/Linux" OS_NAME="Parrot GNU/Linux"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"')
OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-relea se | awk -F= '{print $2}' | tr -d '"') OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-relea se | awk -F= '{print $2}' | tr -d '"')
;; ;;
"pop") "pop")
LINUX_VERSION="Pop!_OS" LINUX_VERSION="Pop!_OS"
LINUX_VERSION_LIKE="Ubuntu" LINUX_VERSION_LIKE="Ubuntu"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | a wk -F= '{print $2}' | tr -d '"')
 End of changes. 4 change blocks. 
2 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)