lynis/include
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
..
binaries [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
consts [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
data_upload [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
functions 250 fixes (#393) 2017-05-23 14:56:25 +02:00
helper_audit_dockerfile [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
helper_configure Changed date and preparing for release 2017-02-09 13:35:40 +01:00
helper_show Add lowercase path for changelog search (eg: Fedora/EPEL pkg) (#408) 2017-06-21 14:08:57 +02:00
helper_system_remote_scan Added quote marks on SSH commands (#372) 2017-03-27 09:19:01 +02:00
helper_update [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
osdetection [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
parameters [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
profiles [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
report [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_accounting Code enhancements 2017-04-23 20:06:54 +02:00
tests_authentication Code enhancements 2017-04-23 20:06:54 +02:00
tests_banners [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_boot_services A250 2 (#398) 2017-05-31 15:40:39 +02:00
tests_containers [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_crypto A250 2 (#398) 2017-05-31 15:40:39 +02:00
tests_custom.template Extended example 2016-08-13 10:48:35 +02:00
tests_databases [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_file_integrity Code enhancements 2017-04-23 20:06:54 +02:00
tests_file_permissions [FILE-7524] Do not show missing files or paths by default 2017-03-13 16:26:26 +01:00
tests_filesystems [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_firewalls Small style improvement 2017-05-31 15:47:21 +02:00
tests_hardening [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_homedirs Changed date and preparing for release 2017-02-09 13:35:40 +01:00
tests_insecure_services Changed date and preparing for release 2017-02-09 13:35:40 +01:00
tests_kernel Minor fixes for embedded Linux. (#406) 2017-06-21 14:17:49 +02:00
tests_kernel_hardening Changed date and preparing for release 2017-02-09 13:35:40 +01:00
tests_ldap Changed date and preparing for release 2017-02-09 13:35:40 +01:00
tests_logging [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_mac_frameworks [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_mail_messaging Remove unused test parts 2017-03-27 17:14:34 +02:00
tests_malware [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_memory_processes Changed date and preparing for release 2017-02-09 13:35:40 +01:00
tests_nameservices [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_networking [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_php add ini paths for cloudlinux (#400) 2017-06-14 14:07:37 +02:00
tests_ports_packages Fix pkg audit option (#403) 2017-06-14 14:06:18 +02:00
tests_printers_spools [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_scheduling A250 2 (#398) 2017-05-31 15:40:39 +02:00
tests_shells Code enhancements 2017-05-03 10:42:34 +02:00
tests_snmp A250 2 (#398) 2017-05-31 15:40:39 +02:00
tests_squid [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_ssh Code enhancements 2017-04-23 20:06:54 +02:00
tests_storage Code enhancements 2017-04-23 20:06:54 +02:00
tests_storage_nfs Code enhancements 2017-04-23 20:06:54 +02:00
tests_system_integrity Code enhancements 2017-04-23 20:06:54 +02:00
tests_time [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_tooling [bulk change] cleaning up, code enhancements, initialization of variables, and new tests 2017-04-30 17:59:35 +02:00
tests_virtualization Changed date and preparing for release 2017-02-09 13:35:40 +01:00
tests_webservers A250 2 (#398) 2017-05-31 15:40:39 +02:00
tool_tips Various cleanups (#363) 2017-03-06 07:41:21 +00:00