/* * Function name: valid_exec * Description: Checks if a certain 'program' has the right to use exec() * Arguments: name: Name of the 'program' that attempts to use exec() * Note that this is different from file_name(), * Programname is what 'function_exists' returns. * NOTE, the absence of a leading slash in the name. * Returns: True if exec() is allowed. * * Note: Since this wasn't called by the driver, i've made a * simul_efun that calls this, it passes file_name() instead * of the function_exists() kind of program name. - Bannor */ int valid_exec( string name ) { TB( "Valid_exec(): object is: " + name + "\n" ); if( name[ 0..12 ] == "/secure/login" ) return 1; return 0; } /* valid_exec() */