Skip to content

Add detection of Kylin Linux Advanced Server#1733

Open
boonchuan wants to merge 1 commit into
CISOfy:masterfrom
boonchuan:feat/osdetection-kylin
Open

Add detection of Kylin Linux Advanced Server#1733
boonchuan wants to merge 1 commit into
CISOfy:masterfrom
boonchuan:feat/osdetection-kylin

Conversation

@boonchuan
Copy link
Copy Markdown

Adds a case for kylin in include/osdetection, following the same pattern used for other RHEL-family distributions (e.g. Rocky Linux, AlmaLinux, Koozali).

Kylin Linux Advanced Server is a RHEL-derived distribution widely used in Chinese government and enterprise environments. Its /etc/os-release file contains ID=kylin, so this change recognises it and sets OS_REDHAT_OR_CLONE=1 so subsequent RHEL-family checks apply correctly.

Before this change, Lynis reports:
Exception found! Function/test: [OS Detection] Message: Unknown OS found in /etc/os-release

After this change, Kylin Linux Advanced Server is recognised and the scan proceeds normally.

Closes #1612

Adds a case for kylin in include/osdetection, following the same
pattern used for other RHEL-family distributions (e.g. Rocky Linux,
AlmaLinux, Koozali).

Kylin Linux Advanced Server is a RHEL-derived distribution widely
used in Chinese government and enterprise environments. Its
/etc/os-release file contains ID=kylin, so this change recognises
it and sets OS_REDHAT_OR_CLONE=1 so subsequent RHEL-family checks
apply correctly.

Before this change, Lynis reports:
Exception found! Function/test: [OS Detection] Message: Unknown OS
found in /etc/os-release

After this change, Kylin Linux Advanced Server is recognised and
the scan proceeds normally.

Closes CISOfy#1612
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unknown Kylin OS found in /etc/os-release

1 participant