oslo.privsep/oslo_privsep
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
..
functional Add timeout to PrivContext and entrypoint_with_timeout decorator 2021-06-23 09:43:33 +02:00
locale Imported Translations from Zanata 2018-03-01 07:02:35 +00:00
tests setgid should be called before setuid 2023-03-03 08:49:26 +01:00
__init__.py Initial cookiecutter project 2015-10-23 18:51:29 +11:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:09:35 +08:00
capabilities.py Avoids calling ffi.dlopen(None) on Windows 2018-08-19 10:42:55 -07:00
comm.py Merge "Add note explaining max_buffer_size value" 2022-04-11 21:59:32 +00:00
daemon.py setgid should be called before setuid 2023-03-03 08:49:26 +01:00
priv_context.py Add timeout to PrivContext and entrypoint_with_timeout decorator 2021-06-23 09:43:33 +02:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00