Go to file
Max Lamprecht 33fec1971b setgid should be called before setuid
If you setuid to a non-zero value first(meaning you're no longer root),
then call setgroups, the effective uid of the process
is now no longer root, meaning that the internal setgid call fails

This also removes the duplicated if loop

Closes-Bug: #1628360
Change-Id: I5d66fccd9ffb07df0c2e4435ec3da767b3b61117
2023-03-03 08:49:26 +01:00
2022-04-19 15:11:57 +08:00
2015-10-23 18:51:29 +11:00
2019-04-19 19:48:27 +00:00
2015-10-23 18:51:29 +11:00
2019-12-11 10:26:01 +00:00
2022-09-09 09:17:57 +00:00
2015-10-23 18:51:29 +11:00
2020-02-11 18:51:53 +01:00
2020-09-08 14:17:12 +02:00
2021-06-07 16:55:32 +08:00

Team and repository tags

image

oslo.privsep

Latest Version

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%