UbixOS  2.0
access.c File Reference
#include <ubixos/access.h>
Include dependency graph for access.c:

Go to the source code of this file.

Functions

int in_group_p (gid_t grp)
 
int sys_getEUID (struct thread *td, void *uap)
 
int sys_getGID (struct thread *td, void *uap)
 
int sys_getUID (struct thread *td, void *uap)
 
int sys_setGID (struct thread *td, struct sys_setGID_args *uap)
 
int sys_setUID (struct thread *td, struct sys_setUID_args *args)
 

Function Documentation

◆ in_group_p()

int in_group_p ( gid_t  grp)

Definition at line 76 of file access.c.

References _current, taskStruct::egid, taskStruct::groups, NO_GROUP, and NR_GROUPS.

Referenced by permission().

◆ sys_getEUID()

int sys_getEUID ( struct thread td,
void *  uap 
)

Definition at line 55 of file access.c.

References _current, and taskStruct::uid.

◆ sys_getGID()

int sys_getGID ( struct thread td,
void *  uap 
)

Definition at line 59 of file access.c.

References _current, and taskStruct::gid.

◆ sys_getUID()

int sys_getUID ( struct thread td,
void *  uap 
)

Definition at line 51 of file access.c.

References _current, and taskStruct::uid.

◆ sys_setGID()

int sys_setGID ( struct thread td,
struct sys_setGID_args uap 
)

Definition at line 63 of file access.c.

References _current, taskStruct::gid, and sys_setGID_args::gid.

◆ sys_setUID()

int sys_setUID ( struct thread td,
struct sys_setUID_args args 
)

Definition at line 43 of file access.c.

References _current, taskStruct::uid, and sys_setUID_args::uid.