PM: add support for saved user/group IDs

This patch aims to synchronize the basic process user and group ID
management, as well as the set[ug]id(2) and sete[ug]id(2) behavior,
with NetBSD.  As it turns out, the main issue was missing support for
saved user and group IDs.  This support is now added.

Since NetBSD's userland, which we are importing, may rely on NetBSD
specifics when it comes to security, we choose not to deviate from
NetBSD's behavior in any way here.  A new test, test89, verifies the
correct behavior - it has been confirmed to pass on NetBSD as is.

Change-Id: I023935546d97ed01ffd8090f7793d336cceb0f4a
This commit is contained in:
David van Moolenbroek
2016-03-12 10:11:36 +00:00
committed by David van Moolenbroek
parent 30baa378c4
commit 1122b28691
11 changed files with 1062 additions and 12 deletions

View File

@@ -188,6 +188,7 @@
./usr/tests/minix-posix/test86 minix-tests
./usr/tests/minix-posix/test87 minix-tests
./usr/tests/minix-posix/test88 minix-tests
./usr/tests/minix-posix/test89 minix-tests
./usr/tests/minix-posix/test9 minix-tests
./usr/tests/minix-posix/testinterp minix-tests
./usr/tests/minix-posix/testisofs minix-tests