Name
sys_dir_is_allowed — test whether a path is permitted by DirsAllowed
Synopsis
integer sys_dir_is_allowed(
|
in path varchar); |
Description
sys_dir_is_allowed returns 1 if
path is permitted by the
DirsAllowed configuration setting and 0 otherwise. Use
it to pre-flight file-system access before opening a file from
user-supplied input.
Parameters
path
The file-system path to check against DirsAllowed.
Return Types
An integer: 1 if allowed, 0 otherwise.
Examples
Example 24.123. Check a path before reading
SQL> select sys_dir_is_allowed ('/tmp');