[mythtv-users] svn mythweather having trouble probing scripts

Jack Perveiler perveilerj at gmail.com
Sat Sep 8 12:20:41 UTC 2007


On 9/8/07, Joe Ripley <vitaminjoe at gmail.com> wrote:
>
> On 9/7/07, Jack Perveiler <perveilerj at gmail.com> wrote:
> > Interestingly enough, if I do this:
> >
> > /usr/bin/perl -e "print qq(@INC)" then I get this as my include path:
> >
> > /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
> > /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> > /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7
> > /usr/local/share/perl/5.8.7 .
> >
> > It's the same as the path in the error message, with one big exception:
> it
> > includes the trailing "." directory whereas the error message does not.
> >
> > If i modify a given script to add "-I." then things work again.
> >
> > So...
> >
> > what's the deal with the perl include path being different?  The path is
> > different whether or not I execute it myself or it's launched with
> > QProcess::start().  Is this just a red herring?  I confess I don't know
> much
> > about how perl ( v5.8.8, in my case) forms it's include path.
>
> It's possible that your copy of perl is somehow enabling tainting
> checks before it runs.  Running perl with the '-T' switch enables
> tainting checks.  These checks are usually used for security reasons,
> and one effect is to remove the current directory from the include
> path.
>
> I'm not much of an expert either.  Maybe something at
> http://perldoc.perl.org/perlsec.html will help.
>
> Is mythfrontend or the mythweather plugin set to run with setuid or
> setgid?
>
> --
> Joe Ripley
> vitaminjoe at gmail.com
> _______________________________________________
>

Yep, it looks like I had mythfrontend suid root.  Removing it makes
everything work as expected again.

Thanks for that, I'd never heard of tainting checks before.  You learn
something new every day...

--Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070908/dbd25ad2/attachment.htm 


More information about the mythtv-users mailing list