neilbrown / gnubee-tools

Tools for building gnubee firmware - and maybe more.
Other
31 stars 14 forks source link

/etc/network/ is a world-writable directory #23

Closed fmarier closed 4 years ago

fmarier commented 4 years ago

I used the tiger security checker on my GnuBee and it picked up the fact that /etc/network/ is world-writable:

# Checking for writable directories...
--FAIL-- [fsys008f] The following directories are world writable:
/etc/network/
/etc/network/

# Performing check of embedded pathnames...
--WARN-- [embed003w] Path `/etc/network/if-up.d/mountnfs' contains `/etc/network' which is world writable.
         Embedded references in: /etc/init.d/mountnfs.sh

Since this is rewritten on boot by the initramfs, I ended up putting the following in /etc/rc.local:

chmod 755 /etc/network

but I imagine there's a way to fix the problem at the source.

neilbrown commented 4 years ago

This is now fixed. Thanks for the report.