set_security
set_security — changes the security level for the current process.
set_security (security_level)
security_levelThe new security level for this process.
The previous security level for this process.
This function changes the security level for the current process to the given value. There is no restriction on the security level argument. A low-security process can alter its own security level to be higher.
If it is necessary to have a process's security level to be unalterable,
then the set_security function can be re-bound after
the security level is originally set (see second example). The only use of
security level is in conjunction with the DataHub instance.
Gamma>init_ipc("spt","spq");tGamma>secure_point(#d,5);nilGamma>set_security(9);0Gamma>secure_point(#d,5);tGamma>secure_point(#d,12);nilGamma>set_security(15);9Gamma>secure_point(#d,12);tGamma>
The example below sets the current process's security to 5, and then
re-binds set_security so that the program can no longer
alter its security. The list function is used in the
re-binding, as it will accept any number of arguments without error, and
will have no side-effects.
Gamma>set_security(5);0Gamma>set_security = list;(defun list (&optional &rest s_exp...) ...)Gamma>set_security(9);(9)Gamma>secure_point(#g,10);nilGamma>secure_point(#g,6);nilGamma>secure_point(#g,4);tGamma>