From fc5070c60057b6e02490e83f5d675786e8b8d83c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 19 Dec 2020 17:46:55 +0100 Subject: 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(). --- sys/include/auth.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include/auth.h') 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 */ -- cgit v1.2.3