From:	MERC::"uunet!WKUVX1.BITNET!MacroMan"  2-JUN-1992 18:07:02.80
To:	MACRO32@WKUVX1.BITNET
CC:	
Subj:	RE: CMEXEC priv and executive mode.

Date sent:  2-JUN-1992 14:47:07


>Subj:  CMEXEC priv and executive mode.
>
>Howdy all,
>
>I have the chance to play around with some privledges on a test machine at the
>moment.  I have the CMEXEC priv.  After some helpfull replies from a previous
>post in vmsnet.sysmgr (or some-such) I have a basic understanding of what the
>priv allows you to do.
>
>However what I _really_ want to know is what you can do once you are in
>executive mode.  As I understand things you can change to kernel mode from
>executive so this would allow you to modify system structures such as those
>relating to your current process?  Is this true.. If so _how_!?
>
>I have had no programming practise with the vms system, but am basicaly versed
>in C.  Could some-one point me in the right direction.
>
>thanks in advance,
>(email preferred where possible.)
>
>| Bernard - CS19241593T@lust.latrobe.edu.au               |
>| "Thou shalt not suffer a Pepsi, for it is the AntiCola" |

        Anyone who has CMEXEC privs can get the rest quite easily.
        Flames to NFS5:[DEV.NULL].

        Ehud

--
Ehud Gavron        (EG76)
gavron@vesta.sunquest.com
"The world bores you when you're cool."

$ create test.mar
        .link   "sys$system:sys.stb"/selective_search
        .library "sys$library:lib.mlb"
mask:   .quad   ^xffffffffffffffff
        .entry  test,^m<>
        $cmexec_s       routin=test_k
        $exit_s r0
        .entry  test_k,^m<>
        $setprv_s       prmflg=#1,enbflg=#1,prvadr=mask
        ret
        .end    test
^Z
$ mac test
$ link test
$ set proc/priv=cmexec
$ run test
$ sho proc/priv
