I wrote an authorized program that displays the contents of control registers 
using the STCTG instruction.   Linked AC(1) and stored in an APF library.   
Substantive instructions are:

         MODESET MODE=SUP          For STCTG instruction
         STCTG 0,15,CRREGS         Store (copy) Control Registers
         MODESET MODE=PROB

When called using LINK from an unauthorized program (linked AC(0) to the same 
APF authorized library), an S047 abend occurs at the first MODESET macro (which 
generates an SVC 107).

When the unauthorized program is linked authorized (AC(1)), the call (LINK) 
works.

I thought unauthorized programs can call (LINK) authorized programs, but 
authorized programs cannot call unauthorized programs, or, if they do, they 
lose authorization.

Yes, the program with MODESET MODE=SUP could be made into a PC, but it would be 
easier to avoid that method.

Any elucidation appreciated — Thanks
Richard Zierdt

Confidentiality Warning/Avertissement de confidentialité:

This message is intended only for the named recipients. This message may 
contain information that is privileged or confidential. If you are not the 
named recipient, its employee or its agent, please notify us immediately and 
permanently destroy this message and any copies you may have. Ce message est 
destiné uniquement aux destinataires dûment nommés. Il peut contenir de 
l'information privilégiée ou confidentielle. Si vous n'êtes pas le destinataire 
dûment nommé, son employé ou son mandataire, veuillez nous aviser sans tarder 
et supprimer ce message ainsi que toute copie qui peut en avoir été faite.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to