roc has asked for the wisdom of the Perl Monks concerning the following question:

Hi ....

I'm using f12..im practicing some cgi script... i was connected mobile to send msg through system and its working fine in local directory. then i designed cgi page and i passed some values(mob no's) to send some bulk msg but it was not send... im getting warning msg like "SELinux is preventing /usr/bin/perl 'getattr' accessing on dev/ttysomething......

Please give me some suggestion to fix this problem. Thanks.

Update

My CGI script is running in commandline and giving 'connected message' but not working in browser...while running in browser its going to else part and giving 'no conncetion'...even i turned off SELinux...

Replies are listed 'Best First'.
Re: AVC Deniel
by james2vegas (Chaplain) on Mar 28, 2010 at 11:15 UTC
    You need to give the user that your web server runs as access to the tty/cua devices used by your mobile connection (/dev/ttysomething), either through unix permissions or SELinux ACL. You could also try run your script setuid.

    Or turn off SELinux.

      Thanks for your reply...can u suggest me some procedure with commands.......and can tell me the command to turnoff SELinux....

        In a terminal, type man audit2allow to learn how you can extend your SELinux policy.