summaryrefslogtreecommitdiff
path: root/usr/src/cmd/auditreduce/token.c
diff options
context:
space:
mode:
authorjpk <none@none>2006-03-24 12:29:20 -0800
committerjpk <none@none>2006-03-24 12:29:20 -0800
commit45916cd2fec6e79bca5dee0421bd39e3c2910d1e (patch)
tree6b3ea6982435d47edc8972c72c62f9d111e8bb10 /usr/src/cmd/auditreduce/token.c
parent2c9565cfcd87a2045c2e4b76f31ac4e978903589 (diff)
downloadillumos-joyent-45916cd2fec6e79bca5dee0421bd39e3c2910d1e.tar.gz
PSARC/2002/762 Layered Trusted Solaris
PSARC/2005/060 TSNET: Trusted Networking with Security Labels PSARC/2005/259 Layered Trusted Solaris Label Interfaces PSARC/2005/573 Solaris Trusted Extensions for Printing PSARC/2005/691 Trusted Extensions for Device Allocation PSARC/2005/723 Solaris Trusted Extensions Filesystem Labeling PSARC/2006/009 Labeled Auditing PSARC/2006/155 Trusted Extensions RBAC Changes PSARC/2006/191 is_system_labeled 6293271 Zone processes should use zone_kcred instead of kcred 6394554 integrate Solaris Trusted Extensions --HG-- rename : usr/src/cmd/dminfo/Makefile => deleted_files/usr/src/cmd/dminfo/Makefile rename : usr/src/cmd/dminfo/dminfo.c => usr/src/cmd/allocate/dminfo.c
Diffstat (limited to 'usr/src/cmd/auditreduce/token.c')
-rw-r--r--usr/src/cmd/auditreduce/token.c62
1 files changed, 6 insertions, 56 deletions
diff --git a/usr/src/cmd/auditreduce/token.c b/usr/src/cmd/auditreduce/token.c
index 7b3c75ea24..f47c1e4cf0 100644
--- a/usr/src/cmd/auditreduce/token.c
+++ b/usr/src/cmd/auditreduce/token.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1868,48 +1867,6 @@ xclient_token(adr_t *adr)
}
/*
- * Format of clearance token:
- * clearance adr_char*(sizeof (bclear_t))
- */
-#ifndef TSOL
-/* ARGSUSED */
-#endif /* !TSOL */
-int
-clearance_token(adr_t *adr)
-{
-#ifdef TSOL
- bclear_t clearance;
-
- adrm_char(adr, (char *)&clearance, sizeof (bclear_t));
- return (-1);
-#else /* !TSOL */
- return (-2);
-#endif /* TSOL */
-}
-
-
-/*
- * Format of ilabel token:
- * ilabel adr_char*(sizeof (bilabel_t))
- */
-#ifndef TSOL
-/* ARGSUSED */
-#endif /* !TSOL */
-int
-ilabel_token(adr_t *adr)
-{
-#ifdef TSOL
- bilabel_t ilabel;
-
- adrm_char(adr, (char *)&ilabel, sizeof (ilabel));
-
- return (-1);
-#else /* !TSOL */
- return (-2);
-#endif /* TSOL */
-}
-
-/*
* Format of privilege set token:
* priv_set type string
* priv_set string
@@ -1927,26 +1884,19 @@ privilege_token(adr_t *adr)
* Format of slabel token:
* slabel adr_char*(sizeof (bslabel_t))
*/
-#ifndef TSOL
-/* ARGSUSED */
-#endif /* !TSOL */
int
slabel_token(adr_t *adr)
{
-#ifdef TSOL
bslabel_t slabel;
adrm_char(adr, (char *)&slabel, sizeof (slabel));
- if (flags & M_SLABEL) {
- if (blinrange(&slabel, &m_slabel))
- checkflags = checkflags | M_SLABEL;
+ if (flags & M_LABEL) {
+ if (blinrange(&slabel, m_label))
+ checkflags = checkflags | M_LABEL;
}
return (-1);
-#else /* !TSOL */
- return (-2);
-#endif /* TSOL */
}