title: Insecure dependency with Inline::Python
body: <p>What could explain this compile-time error message when running <a href="https://metacpan.org/pod/distribution/Inline-Python/Python.pod" rel="nofollow"><code>Inline::Python</code></a> in <a href="http://perldoc.perl.org/perlsec.html#Taint-mode" rel="nofollow"><code>-T</code></a> mode?</p>
  
  <blockquote>
    <p>Insecure dependency in open while running with -T switch at /usr/local/lib/perl/5.14.2/Inline/Python.pm line 193.</p>
  </blockquote>
  
  <p>Line 193 is where <code>Inline::Python</code> opens <code>$o-&gt;{API}{location}</code>, which I take to be the "Inline DIRECTORY".</p>
  
  <p>I have, of course, used the required options:</p>
  
  <pre><code>use constant _INLINE_DIR_ =&gt; '/var/myapp/inline';
  use Inline Config =&gt; UNTAINT         =&gt; 1,
                       NO_UNTAINT_WARN =&gt; 1,
                       DIRECTORY       =&gt; _INLINE_DIR_;
  </code></pre>
  
  <p>I have made sure that <code>/var/myapp/inline</code> and everything inside it is writable by everyone, obviously including both root and the user that the application is <code>setuid</code>'ed to at run-time.</p>
  
  <p>The very same script works without problem on my computer, whether I start it as root or not, running <code>Inline</code> 0.50 <code>Inline::Python</code> 0.43, but gives me this error when I try running it on a server that uses the same version of <code>Inline::Python</code> and either version 0.49 or 0.55 of <code>Inline</code>.</p>