token.c (a7746f662862b6ac0a85751d8adbc897743a83e1) token.c (d0fa49b78d1f40d84ec76c363cdc38cf128511dd)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 5 unchanged lines hidden (view full) ---

14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 5 unchanged lines hidden (view full) ---

14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
23 * Use is subject to license terms.
24 */
25
26#pragma ident "%Z%%M% %I% %E% SMI"
27
28/*
29 * Token processing for auditreduce.
30 */
31
32#include <locale.h>
33#include <sys/zone.h>
34#include "auditr.h"

--- 1322 unchanged lines hidden (view full) ---

1357 if (m_groupr == rgid)
1358 checkflags |= M_GROUPR;
1359 }
1360 if (flags & M_GROUPE) {
1361 if (m_groupe == egid)
1362 checkflags |= M_GROUPE;
1363 }
1364 if (flags & M_SID) {
26
27/*
28 * Token processing for auditreduce.
29 */
30
31#include <locale.h>
32#include <sys/zone.h>
33#include "auditr.h"

--- 1322 unchanged lines hidden (view full) ---

1356 if (m_groupr == rgid)
1357 checkflags |= M_GROUPR;
1358 }
1359 if (flags & M_GROUPE) {
1360 if (m_groupe == egid)
1361 checkflags |= M_GROUPE;
1362 }
1363 if (flags & M_SID) {
1365 if (m_sid == sid)
1364 if (m_sid == (au_asid_t)sid)
1366 checkflags |= M_SID;
1367 }
1368 return (-1);
1369}
1370
1371/*
1372 * Format of subject32_ex token:
1373 * subject token id adr_char

--- 45 unchanged lines hidden (view full) ---

1419 if (m_groupr == egid)
1420 checkflags = checkflags | M_GROUPR;
1421 }
1422 if (flags & M_GROUPE) {
1423 if (m_groupe == egid)
1424 checkflags = checkflags | M_GROUPE;
1425 }
1426 if (flags & M_SID) {
1365 checkflags |= M_SID;
1366 }
1367 return (-1);
1368}
1369
1370/*
1371 * Format of subject32_ex token:
1372 * subject token id adr_char

--- 45 unchanged lines hidden (view full) ---

1418 if (m_groupr == egid)
1419 checkflags = checkflags | M_GROUPR;
1420 }
1421 if (flags & M_GROUPE) {
1422 if (m_groupe == egid)
1423 checkflags = checkflags | M_GROUPE;
1424 }
1425 if (flags & M_SID) {
1427 if (m_sid == sid)
1426 if (m_sid == (au_asid_t)sid)
1428 checkflags = checkflags | M_SID;
1429 }
1430 return (-1);
1431}
1432
1433/*
1434 * Format of subject64 token:
1435 * subject token id adr_char

--- 45 unchanged lines hidden (view full) ---

1481 if (m_groupr == rgid)
1482 checkflags |= M_GROUPR;
1483 }
1484 if (flags & M_GROUPE) {
1485 if (m_groupe == egid)
1486 checkflags |= M_GROUPE;
1487 }
1488 if (flags & M_SID) {
1427 checkflags = checkflags | M_SID;
1428 }
1429 return (-1);
1430}
1431
1432/*
1433 * Format of subject64 token:
1434 * subject token id adr_char

--- 45 unchanged lines hidden (view full) ---

1480 if (m_groupr == rgid)
1481 checkflags |= M_GROUPR;
1482 }
1483 if (flags & M_GROUPE) {
1484 if (m_groupe == egid)
1485 checkflags |= M_GROUPE;
1486 }
1487 if (flags & M_SID) {
1489 if (m_sid == sid)
1488 if (m_sid == (au_asid_t)sid)
1490 checkflags |= M_SID;
1491 }
1492 return (-1);
1493}
1494
1495/*
1496 * Format of subject64 token:
1497 * subject token id adr_char

--- 46 unchanged lines hidden (view full) ---

1544 if (m_groupr == egid)
1545 checkflags = checkflags | M_GROUPR;
1546 }
1547 if (flags & M_GROUPE) {
1548 if (m_groupe == egid)
1549 checkflags = checkflags | M_GROUPE;
1550 }
1551 if (flags & M_SID) {
1489 checkflags |= M_SID;
1490 }
1491 return (-1);
1492}
1493
1494/*
1495 * Format of subject64 token:
1496 * subject token id adr_char

--- 46 unchanged lines hidden (view full) ---

1543 if (m_groupr == egid)
1544 checkflags = checkflags | M_GROUPR;
1545 }
1546 if (flags & M_GROUPE) {
1547 if (m_groupe == egid)
1548 checkflags = checkflags | M_GROUPE;
1549 }
1550 if (flags & M_SID) {
1552 if (m_sid == sid)
1551 if (m_sid == (au_asid_t)sid)
1553 checkflags = checkflags | M_SID;
1554 }
1555 return (-1);
1556}
1557
1558/*
1559 * -----------------------------------------------------------------------
1560 * tid_token(): Process tid token and display contents

--- 438 unchanged lines hidden ---
1552 checkflags = checkflags | M_SID;
1553 }
1554 return (-1);
1555}
1556
1557/*
1558 * -----------------------------------------------------------------------
1559 * tid_token(): Process tid token and display contents

--- 438 unchanged lines hidden ---