neuray API Programmer's Manual

mi::neuraylib::IChild_process_resolver Class Reference

[Node manager]

Description

A filter used to decide if a command string to start a child process is eligible for execution.

Public Member Functions

virtual const IStringresolve_process( const char* program_name, const char* program_arguments) =0
Indicates whether a command string to start a child process should be executed by the worker node. More...

Member Functions

virtual const IString* mi::​neuraylib::​IChild_process_resolver::resolve_process( const char* program_name, const char* program_arguments) [pure virtual]

Indicates whether a command string to start a child process should be executed by the worker node. This can be used to enforce security policies. In case of success, in addition, it allows to adapt the incoming program name to the local file system.

Parameters

program_name
The name of the program to be executed as child process.
program_arguments
The arguments supposed to be passed to the program.

Returns

If program_name (in combination with program_arguments ) is eligible to be run then program_name is returned. (The returned value may include the full pathname and may be modified based on the requirements of the local file system of the worker node) Otherwise, NULL is returned.