[rsbac] appending rsbac data to /proc/$pid/status

Jens Kasten jens.kasten at kasten-edv.de
Thu Mar 15 14:52:17 CET 2018


Am 13.03.2018 23:20, schrieb Javier Juan Martínez Cabezón:
> WARNING: contains banned part

Hi Javier

better use a paste service for such email :D

I have few tiny userland tools which I use now for longer time.
  https://bitbucket.org/igraltist/rsbac-tools/overview

There for example I use:
   rsbac_api = rsbac.Rsbac()
   # first get jail_id to test if further action is needed
   jail_id, error = rsbac_api.attr_get_process("JAIL", pid, "jail_id")

This is just a passthrough at the moment to a python Popen call. If more 
speed is needed then there is only one place to implement a C extension.



More information about the rsbac mailing list