Security - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Security : Security/Test

Security

  

Test

  

test if an operation is permitted

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Test( op, file )

Parameters

op

-

a name representing operation

file

-

a file name as a string

Description

• 

This routine tests if the operation op on the file file is permitted, when tested against the current security settings. Security need not be enabled in order to test the operation.

• 

The Test command returns true if the operation in op on the file file is permitted under the current Security settings, and false otherwise.

• 

The operation op must be one of: `read`, write, or extcall.

• 

For an overview of Maple engine security and an explanation of relevant concepts, see the Maple Engine Security help page.

Examples

Security:-ConfigSECURE_READ_LIST=/tmp/*:

Security:-Test`read`,/tmp/file1

true

(1)

Security:-Test`read`,/usr/file1

false

(2)

Security:-Testwrite,/tmp/file1

false

(3)

Security:-Testextcall,/tmp/file1

false

(4)

See Also

EngineSecurity

Security

Security[Config]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam