diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 17:46:55 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 17:46:55 +0100 |
commit | fc5070c60057b6e02490e83f5d675786e8b8d83c (patch) | |
tree | aa53401ba8b9b435b0908ee0fda353f998b0d4a6 /sys/include | |
parent | daccd2b226ff71c251931103403a982d2796061a (diff) |
libauth: add procsetuser() function to change user id of the calling process
Provide a central function to change the user id
of the calling process.
This is mostly used by programs to become the none
user, followed by a call to newns().
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/ape/auth.h | 2 | ||||
-rw-r--r-- | sys/include/auth.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/ape/auth.h b/sys/include/ape/auth.h index eef5d90c1..02c61fd94 100644 --- a/sys/include/ape/auth.h +++ b/sys/include/ape/auth.h @@ -102,6 +102,8 @@ extern int amount(int, char*, int, char*); extern int login(char*, char*, char*); +extern int procsetuser(char*); + typedef struct Attr Attr; enum { AttrNameval, /* name=val -- when matching, must have name=val */ diff --git a/sys/include/auth.h b/sys/include/auth.h index 8b350a64c..516205eb0 100644 --- a/sys/include/auth.h +++ b/sys/include/auth.h @@ -92,6 +92,8 @@ extern int amount(int, char*, int, char*); extern int login(char*, char*, char*); +extern int procsetuser(char*); + typedef struct Attr Attr; enum { AttrNameval, /* name=val -- when matching, must have name=val */ |