mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
At least add a warning about using chmod 777 -_-
This commit is contained in:
parent
2cdbe79e75
commit
8a46b28747
1 changed files with 5 additions and 0 deletions
|
@ -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', "
|
||||
|
|
Loading…
Reference in a new issue