RE: system calls failing
"Valnir" <[email protected]> Thu, 19 Apr 2007 13:52:31 -0400
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <000101c782ab$80d83520$82889f60$@com> |
I'm running on Fedora Core 6, and it seems to actually be blocking all the system() calls, since even when I do: if ( system(NULL) != 0 ) bug( "System call failure!", 0 ); it throws the bug even there. -Valnir -----Original Message----- From: Chad Ziccardi [mailto:[email protected]] Sent: Thursday, April 19, 2007 11:36 AM To: Nathan Kodak Subject: Re: system calls failing On Apr 19, 2007, at 10:40 AM, Valnir wrote: > Yes, I've already checked that. It's a problem where the system > call is > being denied (or so it seems).. I'm having the same problem from my > php > pages. What platform are you on? For php it's easy to block system calls, but I'm not sure if that is easily done via kernel modules to BSD/linux. I believe it's possible in solaris with the proper RBAC based access. Does it deny them for all system calls? I'm wondering if it's not in the path, or if they are actually blocking system() calls. Does something like this work? #include <stdarg.h> #include <stdlib.h> #include <stdio.h> int main (int argc, char ** argv[]) { system("/bin/ls -l"); } -- Chad Ziccardi, Professional Slacker [email protected] "Some cause happiness wherever they go; others whenever they go." -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom