XPRMsetrestrictions
XPRMsetrestrictions |
Purpose
Set execution restrictions.
Synopsis
int XPRMsetrestrictions(unsigned int restr);
Argument
restr
|
Restrictions as a bit encoded integer. The following values can be combined:
|
Return value
0 if successful, 1 otherwise.
Further information
1. This routine activates the
restricted mode by setting the restrictions to be applied. Retrictions can be set only once just after the library has been initialised (using
XPRMinit), the routine will fail if called at a later stage.
2. If
XPRM_RESTR_NOREAD is used, the restriction
XPRM_RESTR_NOWRITE is implicitly selected and access to the local disk is disabled except for the temporary directory which becomes the current working directory. To disable entirely disk access to the local system,
XPRM_RESTR_NOTMP has also to be selected.
3. The current active restrictions can be obtained using
XPRMgetdsoparam asking for parameter
"restrict".
Related topics