home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Subject: Re: Am I in SYLOGIN?
- Message-ID: <1992Jul22.190807.6302@cco.caltech.edu>
- Sender: news@cco.caltech.edu
- Nntp-Posting-Host: sol1.gps.caltech.edu
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- Organization: HST Wide Field/Planetary Camera
- References: <1992Jul22.113259.1@utxvms.cc.utexas.edu>
- Date: Wed, 22 Jul 1992 19:08:07 GMT
- Lines: 36
-
- In article <1992Jul22.113259.1@utxvms.cc.utexas.edu>, ccdk001@utxvms.cc.utexas.edu writes:
- >Anyone know of a simple, fairly fullproof way to determine if an image
- >is being run from SYLOGIN.COM or some other known place (step) during
- >process creation?
- >
- >I have an installed privileged application that I want executed during the
- >login process, but I don't want users to be able to execute it directly.
- >It does "things" based on an assumed state of that process/environment at
- >that time particular time. Allowing users to change their environment
- >(logical names, devices, etc.) and then rerunning this image could be
- >a problem in some instances.
- >
- >Grabing the procedure depth/name from the clidata doesn't seem fullproof
- >enough.
-
- Certainly not, unless you have stuff in SYS$SYLOGIN: that is guaranteed to put
- the process back in the known state before the image is run.
-
- >Checking the imagecount in the process header could work, but
- >I dunno.. Patching loginout (again!) is also too messy. I'd appreciate
- >any ideas/strategies.
-
- How about having the image check for a known executive-mode logical name in the
- job table? If it finds the logical name, it assumes it's already been run and
- exits. If it doesn't find it, it creates it, does whatever it's supposed to
- do, and exits. For this to be effective, you'd have to set the DISCTLY flag in
- the UAF for all the accounts, and have SYS$SYLOGIN set NOCONTROL=Y after
- running the image.
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-