CISOfy / lynis

Lynis - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional.
https://cisofy.com/lynis/
GNU General Public License v3.0
13.11k stars 1.47k forks source link

Unknown OS found - Arcolinux #1267

Open Tahooft opened 2 years ago

Tahooft commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

Exception found!

Function/test: [OS Detection] Message: Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): https://github.com/CISOfy/lynis

=================================================================

Version

Expected behavior A clear and concise description of what you expected to happen.

Output If applicable, add output that you get from the tool or the related section of lynis.log

Additional context Add any other context about the problem here.

cat /etc/os-release

NAME=ArcoLinux ID=arcolinux ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="0;36" HOME_URL="https://arcolinux.info/" SUPPORT_URL="https://arcolinuxforum.com/" BUG_REPORT_URL="https://github.com/arcolinux" LOGO=arcolinux-hello

mboelen commented 2 years ago

Thanks for sharing this. Do you like to create a pull request for this and add the support? It's a small change to the include/osdetection file.

Tahooft commented 2 years ago

Gave it a try but not that fluent in git yet.

Based on: cat /etc/os-release NAME=ArcoLinux ID=arcolinux ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="0;36" HOME_URL="https://arcolinux.info/" SUPPORT_URL="https://arcolinuxforum.com/" BUG_REPORT_URL="https://github.com/arcolinux" LOGO=arcolinux-hello

I think this would work:

"arcolinux") LINUX_VERSION="ArcoLinux" OS_NAME=$(grep "^NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^BUILD_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') ;;

Hope this has some use.

Op wo 9 feb. 2022 om 10:48 schreef Michael Boelen @.***

:

Thanks for sharing this. Do you like to create a pull request for this and add the support? It's a small change to the include/osdetection file.

— Reply to this email directly, view it on GitHub https://github.com/CISOfy/lynis/issues/1267#issuecomment-1033568193, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3TQCRT2U36UZ7JMNQCT4LU2I2ADANCNFSM5NXKA55Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>