From 8a46b28747ad41c721d846ef7379e1832cb519d0 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 25 Apr 2020 18:19:47 +0200 Subject: [PATCH] At least add a warning about using chmod 777 -_- --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index f06206e..b0fab72 100755 --- a/package_linter.py +++ b/package_linter.py @@ -830,6 +830,11 @@ class Script(): "(If you need to run a command using a specific user, use 'ynh_exec_as')" ) + if self.containsregex(r"chmod .*777") or self.containsregex(r'chmod .*o\+w'): + print_warning( + "DO NOT use chmod 777 or chmod o+w that gives write permission to every users on the system !!! If you have permission issues, just make sure that the owner and/or group owner is right ..." + ) + if self.contains("dd if=/dev/urandom") or self.contains("openssl rand"): print_warning( "Instead of 'dd if=/dev/urandom' or 'openssl rand', "