Purpose
Set execution restrictions.
Synopsis
int XPRMsetrestrictions(unsigned int restr);
Argument
restr
|
Restrictions as a bit encoded integer. The following values can be combined:
XPRM_RESTR_NOWRITE
|
Disable write access
|
XPRM_RESTR_NOREAD
|
Disable read access (implies
XPRM_RESTR_NOWRITE)
|
XPRM_RESTR_NOEXEC
|
Disable routines allowing to execute external commands
|
XPRM_RESTR_WDONLY
|
Restrict disk access to current working directory
|
XPRM_RESTR_NOTMP
|
Disable temporary directory
|
XPRM_RESTR_NODB
|
Disable database access
|
|
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
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the
property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
solely for internal evaluation purposes to determine whether to purchase a license to the software
described in this documentation, or as otherwise set forth in a written software license agreement
between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
it must conform strictly to the foregoing permitted uses, and no other use is permitted.