Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to   
Web Server Talk Web Server Talk > Email Servers > Sendmail support > Re: program map that calls suid program: illegal seek [socketmap]




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: program map that calls suid program: illegal seek [socketmap]  
Andrzej Adam Filip


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-23-07 06:25 PM

Frank <muede_taube@gmx.de> writes:
> I wrote a rule that calls a program map (perlscript) which calls a
> program with suid bit
>
> sendmail -> PERL program map -> suid shell program (chmod 2755)
>
> but this fails with "illegal seek" in the $! variable of the calling
> PERL script. sendmail runs as unprivigeded user as described in
> sendmail/SECURITY.
> If the PERL script is called from command line the suid shell program
> call works but if the PERL script is invoked from sendmail it gives
> the "illegal seek".
>
> Any suggestions for me?

Have you considered using socket map?
It should eliminate need for using suid programs.

Sample prel script implementing socket map daemon is provided in
contrib/ directory.

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:34 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Back To The Top
Home | Usercp | Faq | Register