From 6baedf15ea8b0676c0a428899b1bfbc4aa88d687 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Sat, 5 Mar 2011 12:40:35 +0000 Subject: 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) --- libutil/login_cap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libutil') diff --git a/libutil/login_cap.h b/libutil/login_cap.h index 082e34b..ec1421b 100644 --- a/libutil/login_cap.h +++ b/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 */ -- cgit v1.2.3