lockdown any node modules

This commit is contained in:
Bob Mottram 2017-09-10 17:04:02 +01:00
parent d35e9be67d
commit a30668346a
1 changed files with 3 additions and 0 deletions

View File

@ -590,6 +590,9 @@ function lockdown_permissions {
fi
if [ -d /usr/lib ]; then
chown -R root:root /usr/lib/*
if [ -d /usr/lib/node_modules ]; then
chmod -R 750 /usr/lib/node_modules/*
fi
fi
if [ -d /usr/lib64 ]; then
chown -R root:root /usr/lib64/*