Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests_file_integrity: line 304: SKIPREASON: unbound variable #1415

Closed
wileyhy opened this issue Jun 23, 2023 · 2 comments
Closed

tests_file_integrity: line 304: SKIPREASON: unbound variable #1415

wileyhy opened this issue Jun 23, 2023 · 2 comments
Assignees

Comments

@wileyhy
Copy link

wileyhy commented Jun 23, 2023

Describe the bug
When executing lynis audit system --profile /home/liveuser/OTHERSPROJECTS/lynis/developer.prf as suggested in 'CONTRIBUTING.md,' this bug halts the program. set -u in enabled automatically in "Strict mode."

** # vim /usr/bin/lynis

587 ParseProfiles
588
589 # Define if we keep working in strict mode (development)
590 if [ ${SET_STRICT} -eq 0 ]; then
591 set +u # Allow uninitialized variables
592 else
593 set -u # Do not allow uninitialized variables
594 fi

Version

  • Distribution: Fedora 38

  • Lynis version:
    ** # lynis --version

egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
3.0.8

Expected behavior
I expected for 'developer mode' to function minimally by the program completing its execution process as usual.

Output

[DEBUG] Performing test ID FINT-4338 (osqueryd syscheck daemon running)
- osquery daemon (syscheck) [ NOT FOUND ]
/usr/share/lynis/include/tests_file_integrity: line 304: SKIPREASON: unbound variable

Additional context
Similar bugs: #1413 , #1414 and #1333 .

@wileyhy
Copy link
Author

wileyhy commented Jun 23, 2023

@mboelen
Copy link
Member

mboelen commented May 16, 2024

Should be fixed (next release) with recent changes.

@mboelen mboelen closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants