diff options
author | trasz <trasz@FreeBSD.org> | 2011-03-05 12:40:35 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2011-03-05 12:40:35 +0000 |
commit | 62f6a13e39978ed28ac30de98bfd177259f00de2 (patch) | |
tree | 8810ff86b50f45ade154877395ba9bd0885b1dea /lib/libutil/login_cap.h | |
parent | 154e7a9e1b3b5b34692d8c1e59704d1567bbc073 (diff) | |
download | FreeBSD-src-62f6a13e39978ed28ac30de98bfd177259f00de2.zip FreeBSD-src-62f6a13e39978ed28ac30de98bfd177259f00de2.tar.gz |
Add two new system calls, setloginclass(2) and getloginclass(2). This makes
it possible for the kernel to track login class the process is assigned to,
which is required for RCTL. This change also make setusercontext(3) call
setloginclass(2) and makes it possible to retrieve current login class using
id(1).
Reviewed by: kib (as part of a larger patch)
Diffstat (limited to 'lib/libutil/login_cap.h')
-rw-r--r-- | lib/libutil/login_cap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libutil/login_cap.h b/lib/libutil/login_cap.h index 082e34b..ec1421b 100644 --- a/lib/libutil/login_cap.h +++ b/lib/libutil/login_cap.h @@ -49,7 +49,8 @@ #define LOGIN_SETENV 0x0080 /* set user environment */ #define LOGIN_SETMAC 0x0100 /* set user default MAC label */ #define LOGIN_SETCPUMASK 0x0200 /* set user cpumask */ -#define LOGIN_SETALL 0x03ff /* set everything */ +#define LOGIN_SETLOGINCLASS 0x0400 /* set login class in the kernel */ +#define LOGIN_SETALL 0x07ff /* set everything */ #define BI_AUTH "authorize" /* accepted authentication */ #define BI_REJECT "reject" /* rejected authentication */ |