can an mi pgmr hook the sept, intercepting
system calls, in a similar manner as interupts are hooked on a
pc?
Does the following scenario work?
1. the sept is a permanent system
object, a space?
[Stephane]
Yes, the sept is a permanent system
object (Rebuild after IPL)
You can access to this object with this instruction
by exampl :
DCL SYSPTR MYSYSSEPT INIT('QINSEPT', CTX('QSYS'),
TYPE(SPC,195));
be carefull to the security level 40 or
50.
2. the sept space can be
duplicated? by CrtDupObj? by creating a user space called MySept and
using CPYBWP to copy the contents of Sept to MySept?
[Stephane]
Yes, you can duplicate this object like a
space.
with CRTS and
CPYBWP
3. when a job starts, a spcptr in the pco is set to the
Sept?
[Stephane]
Each time that
a job start a pointer is set to the sept so you can change the pointer to you
sept.
4. This pco spcptr is used as the base pointer for all
subsequent access to the sept?
5. a job could use CPYBWP to change the spcptr in the pco to
point to MySept instead of the real Sept?
6. you are then in mi heaven, able to intercept all sorts of
system calls?
[Stephane]
Yes
Which systems call do you want intercept
?
And what do you want to do ?
Thanks for the help,
Steve