fervidus / secure_linux_cis

Apache License 2.0
16 stars 33 forks source link

Add file test for tcp6 to prevent warning if tcp6 disabled #40

Closed warrenpnz closed 4 years ago

warrenpnz commented 4 years ago

If tcp6 has been disabled and the tcp6 file is not available, this error is rasied:

Info: Loading facts

Error: Facter: error while resolving custom fact "smtp_listen": No such file or directory @ rb_sysopen - /proc/net/tcp6

To prevent this, have added a file check to the smtp_listen.rb