× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: hooking the sept
  • From: "Stephane" <sjouan@xxxxxxxxxxx>
  • Date: Thu, 26 Apr 2001 17:13:30 +0200
  • Importance: Normal

 
-----Message d'origine-----
De : owner-mi400@midrange.com [mailto:owner-mi400@midrange.com]De la part de Steve Richter
Envoyé : jeudi 26 avril 2001 16:56
À : mi mail list
Objet : hooking the sept

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
 
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.