Go to the first, previous, next, last section, table of contents.


rootPushPrivsOmnipotentFrame

Function: rootPushPrivsOmnipotentFrame { -> }
file: job.t
package: muf
status: alpha

An error is signaled if @$s.actingUser is not of Class Root. (In the usual Muq configuration, the only instance of Class Root is .u["root"].)

This operator saves jS.j.privs, the internal job-privilege bitmask, on the loop stack in a PRIVS frame, then sets the OMNIPOTENT bit in jS.j.privs, which effectively disables almost all security checking for the job. Obviously, this should be used with extreme caution. Where-ever practical, it is best to use rootPushUserFrame instead: See section rootPushUserFrame.

Use popPrivsFrame to undo the effect: See section pushLockframe.

See section `JOB_STACKFRAME_PRIVS' in Muq Source Code.

See section `Loop Stacks' in Muq Source Code.


Go to the first, previous, next, last section, table of contents.