Angus Lees 9bf606327d Provide way to "initialise" oslo.privsep
Specifically, the goal here is to provide a default that can use
rootwrap.

This change implements a `priv_context.init` function that allows
oslo.privsep to hook into the startup of programs using oslo.privsep.
The intention is to call this function near the top of main() - after
oslo.config is available but before anything "interesting" is performed.

In this change, this init function just allows you to set the default
"run as root" prefix for helper_command to include something like
rootwrap.

In the future, it is expected to use this same call point to do other
"early" tasks like immediately forking privileged helpers and dropping
root if already running as root.

Change-Id: I3ea73e16b07a870629e7d69e897f2524d7068ae8
Partial-Bug: #1592043
2016-06-16 15:17:00 +10:00
2015-10-23 18:51:29 +11:00
2015-10-23 18:51:29 +11:00
2015-11-04 13:17:51 +11:00
2015-10-21 05:24:45 +00:00
2015-10-23 18:51:29 +11:00
2015-10-23 18:51:29 +11:00
2015-10-23 18:51:29 +11:00
2015-10-23 18:51:29 +11:00
2015-10-23 18:51:29 +11:00
2015-10-23 18:51:29 +11:00
2015-11-03 04:33:51 +00:00

oslo.privsep

Latest Version

Downloads

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 and easy to use manner. For more information on why this is generally a good idea please read over the principle of least privilege and the specification which created this library.

Description
OpenStack library for privilege separation
Readme 2.9 MiB
Languages
Python 100%