Thenothing has asked for the wisdom of the Perl Monks concerning the following question:
Dear brothers, I will tried my very best to do this right
Here we go, last week I was looking for alternative to sudo
https://www.sudo.ws/other.htmlWhy, because this
https://security.stackexchange.com/questions/219989/sudo-white-list-just-program-perlfor python I found
https://github.com/openstack/oslo.privsepOpenStack’s privilege mechanism has evolved over time from simple sudo +ers file to rootwrap. The rootwrap security policy revolves around whitelisting particular c +ommand lines via the configuration of various “filters”. Configuring +these correctly are hard, because the filters have limited expressive +ness, command line tools typically weren’t expected to be the privile +ge boundary, and the “context” of the original operation has already +been lost at this level. Generating command lines and parsing textual output from tools is slow + and susceptible to inconsistencies across tool versions, since typic +ally this output was not designed as a programmatic API. This spec proposes a new privilege mechanism that is based around pyth +on function calls rather than command lines OpenStack library for privilege separation This library helps applications perform actions which require more or +less privileges than they were started with in a safe, easy to code a +nd easy to use manner. In a similar way to rootwrap-daemon, privsep runs two processes - one +with and one without privileges. The privileged process is as minimal + as possible, and is written to assume it is possibly under attack by + the unprivileged process. To limit the impact of a potential exploit, this spec proposes the pri +vileged process support the use of Linux capabilities to allow the pr +ocess to drop broad root (uid=0) superpowers but keep a limited subse +t
So my question, do you know some perl program or c library like python library?
If not exist I will tried to do this approach: see post of Nominal Animal
https://stackoverflow.com/questions/13040644/setuid-equivalent-for-non-root-userswhat do you think about this approach?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modern and Robust Module for privilege separation Linux
by bliako (Abbot) on Oct 30, 2019 at 21:17 UTC | |
|
Re: Modern and Robust Module for privilege separation Linux
by Thenothing (Sexton) on Nov 13, 2019 at 00:13 UTC |