9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
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 2006 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #ifndef _SYS_TSOL_PRIV_H
27 #define _SYS_TSOL_PRIV_H
28
29 #pragma ident "%Z%%M% %I% %E% SMI"
30
31 #include <sys/priv.h>
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 typedef enum priv_ftype {
38 PRIV_ALLOWED,
39 PRIV_FORCED
40 } priv_ftype_t;
41
42 /*
43 * Privilege macros.
44 */
45
46 /*
47 * PRIV_ASSERT(a, b) setst.privilege "b" in privilege set "a".
48 */
49 #define PRIV_ASSERT(a, b) (priv_addset(a, b))
50
51 /*
52 * PRIV_CLEAR(a,b) clearst.privilege "b" in privilege set "a".
53 */
54 #define PRIV_CLEAR(a, b) (priv_delset(a, b))
55
56 /*
57 * PRIV_EQUAL(set_a, set_b) is true if set_a and set_b are identical.
58 */
59 #define PRIV_EQUAL(a, b) (priv_isequalset(a, b))
60 #define PRIV_EMPTY(a) (priv_emptyset(a))
61 #define PRIV_FILL(a) (priv_fillset(a))
62
63 /*
|
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
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 2006 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #ifndef _SYS_TSOL_PRIV_H
27 #define _SYS_TSOL_PRIV_H
28
29 #include <sys/priv.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 typedef enum priv_ftype {
36 PRIV_ALLOWED,
37 PRIV_FORCED
38 } priv_ftype_t;
39
40 /*
41 * Privilege macros.
42 *
43 * These names are here for compatibility reasons, and thus do not match
44 * priv_impl.h
45 */
46
47 /*
48 * PRIV_ASSERT(a, b) setst.privilege "b" in privilege set "a".
49 */
50 #define PRIV_ASSERT(a, b) (priv_addset(a, b))
51
52 /*
53 * PRIV_CLEAR(a,b) clearst.privilege "b" in privilege set "a".
54 */
55 #define PRIV_CLEAR(a, b) (priv_delset(a, b))
56
57 /*
58 * PRIV_EQUAL(set_a, set_b) is true if set_a and set_b are identical.
59 */
60 #define PRIV_EQUAL(a, b) (priv_isequalset(a, b))
61 #define PRIV_EMPTY(a) (priv_emptyset(a))
62 #define PRIV_FILL(a) (priv_fillset(a))
63
64 /*
|