Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

102.13. lynis-3.1.7

Host security auditing tool

3.1.7-1 · GPL-3.0-only · 0.1 SBU · 1.6 MiB, 105 files · 41_system, 937 of 1047 · ports/core/security/lynis

Homepage: https://cisofy.com/lynis/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/security.txt:

Scores a systemd/PAM/auditd machine, which this is not by rule — the value is the report's explanations, not the number.

Depends on: bash.

Required by: no port names it.

Sources: lynis-3.1.7.tar.gz (355.2 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install lynis'

build.sh:

install -dm755 $PKG/usr/share/lynis
cp -a db include plugins default.prf lynis $PKG/usr/share/lynis/
install -Dm644 lynis.8 $PKG/usr/share/man/man8/lynis.8

install -dm755 $PKG/usr/bin
cat > $PKG/usr/bin/lynis <<'SH'
#!/bin/sh
exec /usr/share/lynis/lynis --pentest "$@"
SH
chmod 755 $PKG/usr/bin/lynis

Programs: lynis.

Directories: /usr/share/licenses/lynis, /usr/share/lynis.