summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2011-03-05 12:40:35 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2011-03-05 12:40:35 +0000
commit6baedf15ea8b0676c0a428899b1bfbc4aa88d687 (patch)
tree618b85b2adf2a3e662b1489ac740682b48b2d7dd /libutil
parente45447638192b907eceaf6f3a0d75e8b6365945c (diff)
downloadpw-darwin-6baedf15ea8b0676c0a428899b1bfbc4aa88d687.tar.gz
pw-darwin-6baedf15ea8b0676c0a428899b1bfbc4aa88d687.zip
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 'libutil')
-rw-r--r--libutil/login_cap.h3
1 files changed, 2 insertions, 1 deletions
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 */