Josh Soref
a007ad2fe0
spelling: explicitly
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-11-08 23:38:46 -05:00
Michael Boelen
1fe12c0023
Merge pull request #1008 from kolenichsj/master
...
Alpine Improvements
2020-10-22 13:28:05 +02:00
Stéphane
67d04f2536
Add translate function for all sections
...
+ add EN and FR up to date languages files
2020-10-22 00:13:42 +02:00
Michael Boelen
71c474f455
[KRNL-5830] ignore rescue kernel on systems such as CentOS
2020-10-21 14:40:30 +02:00
Michael Boelen
ba1cff941f
Improved detection of kernel by ignoring known incorrect values
2020-10-16 13:02:01 +02:00
Steve Kolenich
f65f4d011b
Improve detecting kernel version on disk
...
Improve handling of kenrel files
/boot/vmlinuz-linux-lts
/boot/vmlinuz-linux
/boot/vmlinuz-lts
by updateing RegEx and adding elif
this corrects issue where version is identified
as 'linux' or 'lts' causing false report that a
reboot is needed
2020-08-10 12:27:30 -04:00
Michael Boelen
8a5b2a4099
Merge pull request #920 from jsrc27/Fix-KRNL-5730
...
Fix KRNL-5730 to properly check /proc/config.gz
2020-06-24 09:21:32 +02:00
Michael Boelen
6d9b530bf4
[KRNL-5830] improved detection for non-symlinked kernel on disk
2020-06-21 13:14:08 +02:00
Jeremias Cordoba
f081a9ed7e
Fix KRNL-5730 to properly check /proc/config.gz
...
When KRNL-5728 locates the kernel config it does not properly set LINUXCONFIGFILE
if config is found as /proc/config.gz. This causes KRNL-5730 to fail due to missing prereqs,
despite a kernel config existing.
Signed-off-by: Jeremias Cordoba <js.cordoba8321@gmail.com>
2020-05-04 15:51:03 -07:00
Michael Boelen
1163648d89
Merge pull request #896 from Schmuuu/feature/raspi-detect-required-reboot
...
extended test KRNL-5830 to detect required reboots on Raspbian
2020-04-09 09:58:48 +02:00
Brian Ginsbach
95b1ae044b
KRNL-5677 use platform instead of preqs-met
2020-04-08 15:55:45 -05:00
Kristian S
52b72e7b0f
extended test KRNL-5830 to detect required reboots on Raspbian
2020-04-02 21:45:40 +02:00
Topi Miettinen
e98fcb9b73
Fix developer profile
...
Initialialize a few variables to let --profile developer.prf pass.
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-03-20 22:26:51 +02:00
Michael Boelen
38310223a6
Updated date/year
2020-03-20 14:50:25 +01:00
Topi Miettinen
f15fbfa6ed
Check if /vmlinuz is missing due to /etc/kernel-img.conf
...
If /etc/kernel-img.conf has the line do_symlinks=No, Debian (probably
also Ubuntu) kernel packages will not update /vmlinuz
etc. symlinks. In that case, guess the kernel from uname -r.
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-03-19 15:16:37 +02:00
Michael Boelen
b523352a59
Merge pull request #830 from Schmuuu/fix/vmlinuz-check
...
restructered test and fixed vmlinuz detection
2020-03-19 10:58:27 +01:00
Michael Boelen
8a42643373
Merge pull request #822 from pyllyukko/vmlinuz-raspbian
...
KRNL-5788 in Raspi: don't complain about missing /vmlinuz
2020-03-18 11:39:58 +01:00
Kristian Schuster
79a29381a4
restructered test and fixed vmlinuz detection
2020-01-26 19:13:26 +01:00
Michael Boelen
232b1cdc3f
[KRNL-5820] allow dash to define hard/soft value
2020-01-11 11:27:37 +01:00
pyllyukko
618a843017
KRNL-5788 in Raspi: don't complain about missing /vmlinuz
...
The Raspberry Pi kernels reside within raspberrypi-kernel package[1].
[1] https://www.raspberrypi.org/documentation/linux/kernel/updating.md
2020-01-07 22:27:27 +02:00
Michael Boelen
b7da40c6ae
[KRNL-5830] derive kernel version from filename after obtaining symlink target
2019-12-23 15:41:26 +01:00
Michael Boelen
ab4291242d
[KRNL-5830] check for symlink
2019-12-23 15:36:26 +01:00
Michael Boelen
e5091772c5
Removed -o which had no purpose
2019-12-23 13:59:06 +01:00
Michael Boelen
09f29a5e64
Code style improvement: quote argument
2019-12-18 12:17:46 +01:00
Michael Boelen
11f8ce2361
[KRNL-5830] Use symlink, only test for 'version' keyword if needed, adjusted exception message
2019-12-17 08:03:51 +01:00
Michael Boelen
4e255617d3
[KRNL-5830] Fetch target for symlinked kernel
2019-12-16 09:47:40 +01:00
Michael Boelen
bf4374bb19
[KRNL-5830] skip test partially if non-privileged
2019-12-13 12:35:38 +01:00
Michael Boelen
65f88e148b
Merge pull request #804 from Schmuuu/krnl/fix-wrong-limits-subfolder
...
fix left over test folder with correct folder from variable
2019-11-25 15:23:47 +01:00
Michael Boelen
f81ff3d7d6
Removed empty lines
2019-11-18 10:20:31 +01:00
Kristian Schuster
32ee016810
fix: forgot to replace test folder with correct folder from variable
2019-10-23 23:06:03 +02:00
Kristian Schuster
4eeb2899cc
add missing variables and replace '\s' to be posix conform
2019-10-15 21:52:53 +02:00
Kristian Schuster
3bc70b425e
fix old limits check not working in a few cases
2019-10-13 23:08:19 +02:00
Kristian Schuster
7b52ff52c7
add check for disabled coredumps in etc/profile and systemd
2019-10-13 22:06:50 +02:00
Kristian Schuster
001cd85183
kernel-test: additional improvements for required reboot detection
2019-09-29 17:42:07 +02:00
Kristian Schuster
364b770c64
kernel-test: determine reboot requirement for more distros. Plus a few fixes
2019-09-28 00:39:12 +02:00
Kristian Schuster
b38031803d
kernel-test: avoid grep errors if etc/security/limits.d does not exist
2019-09-27 00:07:45 +02:00
Kristian Schuster
07084501b6
kernel-test: add linux-lts detection for arch
2019-09-26 23:26:08 +02:00
Michael Boelen
fa8bad20db
Use -n instead of ! -z
2019-07-16 13:20:30 +02:00
Michael Boelen
b025b3301a
Define relative or absolute path, depending on directory/file or being a binary
2019-07-14 13:36:45 +02:00
Capashenn
06cdf6c50f
fix issue #659
2019-03-25 14:48:43 +01:00
Michael Boelen
95c11f8270
[KRNL-5820] Changed color for default value - fixes GitHub #655
2019-03-11 14:06:17 +01:00
silentcreek
fb567465c9
[KRNL-5788] Fix false positive warning on missing /vmlinuz ( #650 )
...
Not all architectures use a /vmlinuz symlink in Debian. For instance,
armhf systems may only provide a symlink in /boot/vmlinuz. Fall back to
testing /boot/vmlinuz if /vmlinuz is not found.
Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
2019-03-07 10:05:12 +01:00
Michael Boelen
66066ae226
Changed year and preparing for new release
2019-01-31 14:47:35 +01:00
Michael Boelen
f0c84e3d01
[KRNL-5788] ignore exception when no vmlinuz file was discovered
2018-09-17 11:46:36 +02:00
Michael Boelen
7181b94382
[KRNL-5677] Limit PAE and no-execute test to AMD64 hardware only
2018-07-25 12:25:00 +02:00
Michael Boelen
1bf09ad60a
[KRNL-5830] improved text in log
2018-07-02 14:52:29 +02:00
Michael Boelen
66f8cb2441
Changed year
2018-01-11 09:50:26 +01:00
Daniel Romell
5b12f17e3f
Minor fixes for embedded Linux. ( #406 )
...
* Check if the "locale" binary is available before using it.
This is no functional change as it will still fall back to english
when the locale can't be determined. This fix gets rid of the
following error when running on systems without the locale binary:
./lynis: line 112: locale: command not found
Signed-off-by: Daniel Romell <daro@hms.se>
* tests_kernel: KRNL-5677: Fix invalid use of shell test.
This fixes an issue (syntax error) triggered on systems with no PAE or
NX extensions:
- Checking CPU support (NX/PAE)
/usr/libexec/lynis/include/tests_kernel: line 126: [: too many arguments
/usr/libexec/lynis/include/tests_kernel: line 132: [: too many arguments
No need to use [] when only looking at function return values.
Signed-off-by: Daniel Romell <daro@hms.se>
2017-06-21 14:17:49 +02:00
Michael Boelen
4ecb9d4d05
[bulk change] cleaning up, code enhancements, initialization of variables, and new tests
2017-04-30 17:59:35 +02:00
Michael Boelen
70ea29483a
Code enhancements
2017-04-23 20:06:54 +02:00