diff options
Diffstat (limited to 'tags/i/init.d-script-uses-usr-interpreter.tag')
-rw-r--r-- | tags/i/init.d-script-uses-usr-interpreter.tag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tags/i/init.d-script-uses-usr-interpreter.tag b/tags/i/init.d-script-uses-usr-interpreter.tag new file mode 100644 index 0000000..203c765 --- /dev/null +++ b/tags/i/init.d-script-uses-usr-interpreter.tag @@ -0,0 +1,15 @@ +Tag: init.d-script-uses-usr-interpreter +Severity: warning +Check: init-d +Explanation: The given <code>/etc/init.d</code> script specifies an interpreter in + its shebang located under <code>/usr</code>. + . + It indicates that the init script may be using a non-essential + interpreter. Since init scripts are configuration files, they may be + left on the system after their package has been removed but not purged. + At that point, the package dependencies are not guaranteed to exist and + the interpreter may therefore not be available. + . + It's generally best to write init scripts using <code>/bin/sh</code> or + <code>/bin/bash</code> where possible, since they are guaranteed to always be + available. |