The test privileges control the executability of software and hardware diagnostic activities in BS2000. The main user is the debugger AID.
The test privileges are split into read and write privileges. A user’s write privilege may not be greater than his/her read privilege. Read and write privileges are defined hierarchically from 1 (low) to 9 (high):
A privilege with the value n implicitly covers the access permissions on the lower privilege levels 1 to n-1.
Systems support defines the maximum test privileges for a user ID using the ADD-USER or MODIFY-USER ATTRIBUTES command. System-wide maximum values for the read and write privileges can be defined using the system parameters RDTESTPR and WRTESTPR. These are set for a specific task using the MODIFY-TEST-OPTIONS command.
Test privileges with AID
If data is loaded (dynamically) from a read-protected file and if the read password was not specified, an “execute only” situation exists. Testing with AID is not possible in an “execute only” situation, regardless of the test privileges set.
Read test privileges for AID read accesses
Value | Characteristics |
---|---|
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
1 | Program space and data spaces of the user |
2 | System space and data spaces of the system |
3 | Pages protected against diagnostic accesses |
Write test privileges for AID write accesses
Value | Characteristics |
---|---|
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
1 | Program space and data spaces of the user |
2 | Pages protected against diagnostic accesses |
3 | The page attribute “only readable” is ignored by AID in this case |
4 | Pages of user jobs which run with the system privilege SECURE-OLTP |
5 | System space and data spaces of the system |
Note on OWN-UID-DEBUGGING
The “static AID test with low test privilege” can be permitted for other tasks which run under the user’s own user ID by means of the OWN-UID-DEBUGGING operand in the MODIFY-TEST-OPTIONS command. If this is the case, the same privileges as for accessing your own user address space are sufficient for the read accesses to this task’s user address space.
A write privilege of at least 2 is required for write accesses to this task’s user address space. In addition, the same test privileges apply as for write accesses to the user address space of the user’s own task. In the case of write accesses to these tasks’ memory pool pages, write privilege 8 is always required.
Test privileges for the other software diagnostic products
Read test privileges
Value | Product | Characteristics |
---|---|---|
3 | CDUMP |
|
8 | ANITA |
|