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

Jens Kasten jens.kasten at kasten-edv.de
Thu Mar 15 23:39:58 CET 2018


Am March 15, 2018 9:29:23 PM UTC schrieb "Javier Juan Martínez Cabezón" <tazok at rsbac.org>:
>I suppose that if my digital signature is banned is by one of two
>questions:
>
>	* There are radicals anti cryptography that controls this mailing list
>and hate cryptography. One dark bot
>	
>	* Or my signature is recognized as dangerous or directly as a troll
>sign.
>
>Not sure which of both left me worse.........
>
>
>Now, I will be (at least) a bit serious....
>
>I think that doing it through /proc make it more portable to any other
>languages (even bash :) ). And I think using through /proc calls are a
>more elegant approach. Using /proc gets coherent since historically it
>always exposed this kind of info and I think it will not expose nothing
>that could not be controlled by rsbac it self.
>
>
>I will check your API.
>
>Jens, do you prefer the role column with black colour? or white, I
>think
>I will put black in normal and white colour in reverse mode and
>hardcoded of course o:)
>
>On 15/03/18 14:52, Jens Kasten wrote:
>> 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.
>> 
>> _______________________________________________
>> rsbac mailing list
>> rsbac at rsbac.org
>> http://www.rsbac.org/mailman/listinfo/rsbac
>
>_______________________________________________
>rsbac mailing list
>rsbac at rsbac.org
>http://www.rsbac.org/mailman/listinfo/rsbac

As  I mention it simple pass it to Popen. I habe a dummy for c extension but in moment no reason.
-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


More information about the rsbac mailing list