lynis/include
Roland Smith db828b5e03 Used service(8) to discover running services.
On all supported FreeBSD releases, the service(8) program can be used to
discover which services are running. This program has been added to the test
for binaries. If available, it will be used to test for services. If not, the
original code that parses /etc/rc.conf is used.

On my system, the following information is produced in the logfile:

    [19:51:22] Performing test ID BOOT-5165 (Check for FreeBSD boot services)
    [19:51:22] Searching for services at startup (service)
    [19:51:23] Found service (service/rc.conf): bgfsck
    [19:51:23] Found service (service/rc.conf): cleanvar
    [19:51:23] Found service (service/rc.conf): cron
    [19:51:23] Found service (service/rc.conf): cupsd
    [19:51:23] Found service (service/rc.conf): dbus
    [19:51:23] Found service (service/rc.conf): devd
    [19:51:23] Found service (service/rc.conf): dmesg
    [19:51:23] Found service (service/rc.conf): dnsmasq
    [19:51:23] Found service (service/rc.conf): gptboot
    [19:51:23] Found service (service/rc.conf): hostid
    [19:51:23] Found service (service/rc.conf): hostid_save
    [19:51:23] Found service (service/rc.conf): ip6addrctl
    [19:51:23] Found service (service/rc.conf): ipfw
    [19:51:23] Found service (service/rc.conf): mixer
    [19:51:23] Found service (service/rc.conf): motd
    [19:51:23] Found service (service/rc.conf): newsyslog
    [19:51:23] Found service (service/rc.conf): nginx
    [19:51:23] Found service (service/rc.conf): openntpd
    [19:51:23] Found service (service/rc.conf): postfix
    [19:51:23] Found service (service/rc.conf): powerd
    [19:51:23] Found service (service/rc.conf): sendmail
    [19:51:23] Found service (service/rc.conf): smartd
    [19:51:23] Found service (service/rc.conf): syslogd
    [19:51:23] Found service (service/rc.conf): virecover
    [19:51:23] Found 24 services/options to run at startup

The report shows:

    [+] Boot and services
    ------------------------------------
    - Service Manager [ UNKNOWN ]
    - Checking presence FreeBSD loader [ FOUND ]
    - Checking services at startup (service/rc.conf) [ DONE ]
    Result: found 24 services/options set
2015-04-27 19:58:07 +02:00
..
binaries Find FreeBSD service binary. 2015-04-27 19:33:11 +02:00
consts Initialize some variables for cleaner output 2015-04-22 00:57:35 +02:00
data_upload Extended screen output when upload fails 2015-04-22 11:02:22 +02:00
functions Extending ShowSymlinkPath function to account for missing -f option 2015-04-22 00:57:58 +02:00
helper_audit_dockerfile Adding helper tool for Dockerfile auditing 2015-01-30 13:13:38 +01:00
osdetection Enhance screen output on Mac OS 2015-04-19 22:10:27 +02:00
parameters Add lynis audit dockerfile as option 2015-03-25 16:49:02 +01:00
profiles Adding new options for defining upload options and server 2015-02-03 18:28:03 +01:00
report Improved report output 2015-04-07 17:18:54 +02:00
tests_accounting Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_authentication Apply group check on all groups when using AIX 2015-04-16 19:00:03 +02:00
tests_banners Using return codes and minor cleanups of code 2015-03-25 17:31:17 +01:00
tests_boot_services Used service(8) to discover running services. 2015-04-27 19:58:07 +02:00
tests_crypto Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_custom.template Updated copyright lines 2015-01-30 18:04:30 +01:00
tests_databases Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_file_integrity Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_file_permissions Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_filesystems Check also /var and assign hardening points 2015-04-07 17:19:25 +02:00
tests_firewalls Change pf firewall detection 2015-04-07 17:19:49 +02:00
tests_hardening Improved text for malware scanner suggestion 2015-04-07 17:17:35 +02:00
tests_hardening_tools Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_homedirs Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_insecure_services Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_kernel Improved core dump checking 2015-04-16 20:00:09 +02:00
tests_kernel_hardening Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_ldap Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_logging Updated last line 2015-03-31 19:20:57 +02:00
tests_mac_frameworks Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_mail_messaging Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_malware Change description of test 2015-04-01 14:45:12 +02:00
tests_memory_processes Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_nameservices Remove priority label 2015-04-21 16:03:14 +02:00
tests_networking Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_php Test for presence php.ini file 2015-02-15 23:50:28 +01:00
tests_ports_packages Rename of package auditing tool, for upcoming plugin/module 2015-04-17 15:50:46 +02:00
tests_printers_spools Added CUPS location for Mac OS 2015-03-23 21:38:37 +01:00
tests_scheduling Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_shells Check timeout sessions and if they are readonly 2015-03-17 17:58:58 +01:00
tests_snmp Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_solaris Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_squid Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_ssh Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_storage Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_storage_nfs Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_tcpwrappers Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_time Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_tooling Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_virtualization Update of the files to reflect HTTPS version of website and 2015. Happy New Year! 2015-01-03 12:45:22 +01:00
tests_webservers Added /usr/lib64/apache2 as search path 2015-04-24 13:31:49 +02:00