aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-08-16 02:14:21 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-08-16 02:14:21 +0000
commit27a68d26aeba7bf8f189154c9e6f7f1ad130e3d1 (patch)
treeed37fac661dbb1eb6915753db9b2b53fc09ee9bc /lib
parent83d5cede4f13016b08a2f463e74041b166d1e651 (diff)
downloadsrc-27a68d26aeba7bf8f189154c9e6f7f1ad130e3d1.tar.gz
src-27a68d26aeba7bf8f189154c9e6f7f1ad130e3d1.zip
Add LOGIN_SETMAC, which will indicate to the user context management code
that it should also set the user's default MAC label, if available and permitted. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Notes
Notes: svn path=/head/; revision=101959
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/login_cap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libutil/login_cap.h b/lib/libutil/login_cap.h
index 0728e1396cbe..f6c6431ecd30 100644
--- a/lib/libutil/login_cap.h
+++ b/lib/libutil/login_cap.h
@@ -47,7 +47,8 @@
#define LOGIN_SETUMASK 0x0020 /* set umask, obviously */
#define LOGIN_SETUSER 0x0040 /* set user (via setuid) */
#define LOGIN_SETENV 0x0080 /* set user environment */
-#define LOGIN_SETALL 0x00ff /* set everything */
+#define LOGIN_SETMAC 0x0100 /* set user default MAC label */
+#define LOGIN_SETALL 0x01ff /* set everything */
#define BI_AUTH "authorize" /* accepted authentication */
#define BI_REJECT "reject" /* rejected authentication */