B From:	MERC::"uunet!WKUVX1.BITNET!MacroMan" 21-MAR-1993 15:38:09.29# To:	MACRO32 <MACRO32@WKUVX1.BITNET>  CC:	8 Subj:	Re: Sys. Serv. Hook (Was RE: Imp terminates Qio !)  J >synchronisation (ie SETIPL).  I'm not letting you off for the superfluous >$DELTVA thoug.  8-)   OK! Fair enuf!  H The 'superfluous' $DELTVA _was_ to focus the attention on the referencedE chapters in the "Book of Ruth".  _I_ know the $CRETVA will delete the G range! (pg. 409 sect: 15.3 'Demand Zero VA Sace Creation', steps 3 & 4)   L >> The real challenge of that ditty was to devise a mechanism to execute theL >> "set prompt" code in exec mode and keep the functions of the hook routineJ >> process specific.  The WRTATTN AST on the mailbox worked out real nice. > H >I was going to do that myself -- I'd pulled the revectoring trick to doG >the same thing, but was just working in the access mode of the caller. E >That meant abandoning ship id the access mode was user, but that was H >mostly OK since most $SETDDIRs happen at supervisor mode (ie from DCL).H >This worked fine at V5.3, but broke in 5.4 (which I only just found theI >disk space for this week) as the default directory string (or something) . >appears to be unreachable in supervisor mode.  F YES! The access mode of that page was changed.  I had some code myselfH which broke. (I think it was 5.4) I thought about (for the setddir hook)E changing the page protection but decided against it when I thought up  the mbx mechanism.  F >> Got any other ideas on how to do it?  It may prove to be a bit moreE >> interesting than the discussion ensuing about RMSing with the UAF!  > ( >Someone suggested user system services.  < The "Book of Ruth" was queried.  The answer is on the board.   Survey says... XXX Bzzzt!   I A per-process sys. serv. dispatcher loaded for a user system service from I the protected image is _removed_ at image rundown.  The user service will G be available when the hook loading routine runs but will disappear when H the images runs down, replacing the JSB <user disp.> at @CTL$GL_USERCHMEH with a RSB.   No more user mode CHME or CHMK system service dispatching.B (as the term states, it's a _USER_MODE_ system service dispatcher)  2 Ref: VMS IDSM V5.2 Sect 6.4 and Sect 26.3 step 22.  H BJS- /Brian Schenkenberger/Schenkenberg@Eisner.DECUS.Org/Space for Rent/G     /VMS Software Support/Vitronics, Inc./Eatontown, NJ/(908) 542-0600/ F    /Independent Consult./Tmesis Consulting/Jackson, NJ/(908) 363-7551/E   /<VAXman or Schenkenberger>@Monmouth-ETDL1.Army.Mil/CIS: 70253,114/ 