2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _KERNEL_USERGROUP_H
6 #define _KERNEL_USERGROUP_H
11 #include <SupportDefs.h>
25 // kernel private functions
27 void inherit_parent_user_and_group(Team
* team
, Team
* parent
);
28 status_t
update_set_id_user_and_group(Team
* team
, const char* file
);
32 gid_t
_user_getgid(bool effective
);
33 uid_t
_user_getuid(bool effective
);
34 status_t
_user_setregid(gid_t rgid
, gid_t egid
, bool setAllIfPrivileged
);
35 status_t
_user_setreuid(uid_t ruid
, uid_t euid
, bool setAllIfPrivileged
);
36 ssize_t
_user_getgroups(int groupCount
, gid_t
* groupList
);
37 ssize_t
_user_setgroups(int groupCount
, const gid_t
* groupList
);
44 #endif // _KERNEL_USERGROUP_H