[rsbac] get current role

Amon Ott ao at rsbac.org
Thu Nov 27 15:54:05 CET 2003

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.

I can add such a call, if you want, it can still be restricted.

http://www.rsbac.org - GnuPG: 2048g/5DEAAA30 2002-10-22

More information about the rsbac mailing list