[rsbac] get current role
Amon Ott
ao at rsbac.org
Fri Nov 28 09:02:56 CET 2003
On Donnerstag, 27. November 2003 15:54, Amon Ott wrote:
> On Donnerstag, 27. November 2003 14:30, Bencsath Boldizsar wrote:
> > I've just tried to make some example programs to support teaching what
> > rsbac does, but figured out that it seems there is currently no way to
> > query the role id of the current process?
> > rsbac_rc_sys_change_role, etc. only changes the role, but I've found (in
> > the header files) no way to ask which role I am running currently. (1.2.2)
> > Is there any such function or documentation about these functions?
>
> The official way is rc_get_item() - processes are not supposed to know their
> current role, unless explicitely granted.
Sorry for the nonsense with rc_get_item(), I should not try to do more than
three things at a time. :(
It is of course attr_get_process, because the RC current role is a process
attribute:
attr_get_process RC <pid> rc_role
Amon.
--
http://www.rsbac.org - GnuPG: 2048g/5DEAAA30 2002-10-22
More information about the rsbac
mailing list