Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TESTAUTH — Test authorization of caller z/OS MVS Programming: Authorized Assembler Services Reference SET-WTO SA23-1375-00 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DescriptionThe TESTAUTH macro is used on behalf of a privileged or sensitive function to verify that its caller is appropriately authorized. TESTAUTH supports the authorized program facility (APF) - a facility that permits the identification of programs that are authorized to use restricted functions. In addition, TESTAUTH provides the capability for testing for system key 0-7 and supervisor state. An EUT FRR may not be in force for a caller using BRANCH=NO. EnvironmentThe requirements for the caller are:
Programming requirementsNone. RestrictionsWhen using BRANCH=NO, the caller cannot have an EUT FRR established. Input register informationBefore issuing the TESTAUTH macro, the caller does not have to place any information into any register unless using it in register notation for a particular parameter or using it as a base register. Output register informationWhen control returns to the caller, the GPRs contain:
When control returns to the caller, the ARs contain:
Performance implicationsNone. SyntaxThe TESTAUTH macro is written as follows:
ParametersThe parameters are explained as follows:
Note: TESTAUTH is used to test one or more of three conditions: FCTN,
STATE, or KEY. If any of the requested conditions are tested favorably,
a return code of zero is returned in register 15. If all of the requested
conditions are tested unfavorably, the return code is set to 4.
ABEND codesNone. Return codesWhen control is returned, register 15 contains one of the following hexadecimal return codes:
Example 1Test jobstep for APF authorization.
Example 2Test for APF authorization and supervisor state and do not check
protection keys.
|
Copyright IBM Corporation 1990, 2014
|