Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/truss/print.h
+++ new/usr/src/cmd/truss/print.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 * Copyright (c) 2015, Joyent, Inc.
25 25 */
26 26
27 27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 28 /* All Rights Reserved */
29 29
30 30 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All right reserved. */
31 31
32 32 #ifndef _TRUSS_PRINT_H
33 33 #define _TRUSS_PRINT_H
34 34
35 35 #ifdef __cplusplus
36 36 extern "C" {
37 37 #endif
38 38
39 39 /*
40 40 * Argument & return value print codes.
41 41 */
42 42 #define NOV 0 /* no value */
43 43 #define DEC 1 /* print value in decimal */
44 44 #define OCT 2 /* print value in octal */
45 45 #define HEX 3 /* print value in hexadecimal */
46 46 #define DEX 4 /* print value in hexadecimal if big enough */
47 47 #define STG 5 /* print value as string */
48 48 #define IOC 6 /* print ioctl code */
49 49 #define FCN 7 /* print fcntl code */
50 50 #define S86 8 /* print sysi86 code */
51 51 #define UTS 9 /* print utssys code */
52 52 #define OPN 10 /* print open code */
53 53 #define SIG 11 /* print signal name plus flags */
54 54 #define UAT 12 /* print unlinkat() flag */
55 55 #define MSC 13 /* print msgsys command */
56 56 #define MSF 14 /* print msgsys flags */
57 57 #define SMC 15 /* print semsys command */
58 58 #define SEF 16 /* print semsys flags */
59 59 #define SHC 17 /* print shmsys command */
60 60 #define SHF 18 /* print shmsys flags */
61 61 #define FAT 19 /* print faccessat() flag */
62 62 #define SFS 20 /* print sysfs code */
63 63 #define RST 21 /* print string returned by sys call */
64 64 #define SMF 22 /* print streams message flags */
65 65 #define IOA 23 /* print ioctl argument */
66 66 #define PIP 24 /* print pipe flags */
67 67 #define MTF 25 /* print mount flags */
68 68 #define MFT 26 /* print mount file system type */
69 69 #define IOB 27 /* print contents of I/O buffer */
70 70 #define HHX 28 /* print value in hexadecimal (half size) */
71 71 #define WOP 29 /* print waitsys() options */
72 72 #define SPM 30 /* print sigprocmask argument */
73 73 #define RLK 31 /* print readlink buffer */
74 74 #define MPR 32 /* print mmap()/mprotect() flags */
75 75 #define MTY 33 /* print mmap() mapping type flags */
76 76 #define MCF 34 /* print memcntl() function */
77 77 #define MC4 35 /* print memcntl() (fourth) argument */
78 78 #define MC5 36 /* print memcntl() (fifth) argument */
79 79 #define MAD 37 /* print madvise() argument */
80 80 #define ULM 38 /* print ulimit() argument */
81 81 #define RLM 39 /* print get/setrlimit() argument */
82 82 #define CNF 40 /* print sysconfig() argument */
83 83 #define INF 41 /* print sysinfo() argument */
84 84 #define PTC 42 /* print pathconf/fpathconf() argument */
85 85 #define FUI 43 /* print fusers() input argument */
86 86 #define IDT 44 /* print idtype_t, waitid() argument */
87 87 #define LWF 45 /* print lwp_create() flags */
88 88 #define ITM 46 /* print [get|set]itimer() arg */
89 89 #define LLO 47 /* print long long offset */
90 90 #define MOD 48 /* print modctl() code */
91 91 #define WHN 49 /* print lseek() whence argument */
92 92 #define ACL 50 /* print acl() code */
93 93 #define AIO 51 /* print kaio() code */
94 94 #define AUD 52 /* print auditsys() code */
95 95 #define UNS 53 /* print value in unsigned decimal */
96 96 #define CLC 54 /* print cladm() command argument */
97 97 #define CLF 55 /* print cladm() flag argument */
98 98 #define COR 56 /* print corectl() subcode */
99 99 #define CCO 57 /* print corectl() options */
100 100 #define CCC 58 /* print corectl() content */
101 101 #define RCC 59 /* print corectl() content */
102 102 #define CPC 60 /* print cpc() subcode */
103 103 #define SQC 61 /* print sigqueue() si_code argument */
104 104 #define PC4 62 /* print priocntlsys() (fourth) argument */
105 105 #define PC5 63 /* print priocntlsys() (key-value) pairs */
106 106 #define PST 64 /* print processor set id */
107 107 #define MIF 65 /* print meminfo() argument */
108 108 #define PFM 66 /* print so_socket() proto-family (1st) arg */
109 109 #define SKT 67 /* print so_socket() socket type (2nd) arg */
110 110 #define SKP 68 /* print so_socket() protocol (3rd) arg */
111 111 #define SKV 69 /* print so_socket() version (5th) arg */
112 112 #define SOL 70 /* print [sg]etsockopt() level (2nd) arg */
113 113 #define SON 71 /* print [sg]etsockopt() name (3rd) arg */
114 114 #define UTT 72 /* print utrap type */
115 115 #define UTH 73 /* print utrap handler */
116 116 #define ACC 74 /* print access flags */
117 117 #define SHT 75 /* print shutdown() "how" (2nd) arg */
118 118 #define FFG 76 /* print fcntl() flags (3rd) arg */
119 119 #define PRS 77 /* privilege set */
120 120 #define PRO 78 /* privilege set operation */
121 121 #define PRN 79 /* privilege set name */
122 122 #define PFL 80 /* privilege/process flag name */
123 123 #define LAF 81 /* print lgrp_affinity arguments */
124 124 #define KEY 82 /* print key_t 0 as IPC_PRIVATE */
125 125 #define ZGA 83 /* print zone_getattr attribute types */
126 126 #define ATC 84 /* print AT_FDCWD or file descriptor */
127 127 #define LIO 85 /* print LIO_XX flags */
128 128 #define DFL 86 /* print door_create() flags */
129 129 #define DPM 87 /* print DOOR_PARAM_XX flags */
130 130 #define TND 88 /* print trusted network data base opcode */
131 131 #define RSC 89 /* print rctlsys subcode */
132 132 #define RGF 90 /* print rctlsys_get flags */
133 133 #define RSF 91 /* print rctlsys_set flags */
↓ open down ↓ |
133 lines elided |
↑ open up ↑ |
134 134 #define RCF 92 /* print rctlsys_ctl flags */
135 135 #define FXF 93 /* print forkx flags */
136 136 #define SPF 94 /* print rctlsys_projset flags */
137 137 #define UN1 95 /* unsigned except for -1 */
138 138 #define MOB 96 /* print mmapobj() flags */
139 139 #define SNF 97 /* print AT_SYMLINK_[NO]FOLLOW flag */
140 140 #define SKC 98 /* print sockconfig subcode */
141 141 #define ACF 99 /* accept4 flags */
142 142 #define PFD 100 /* pipe fds[2] */
143 143 #define GRF 101 /* getrandom flags */
144 -#define HID 102 /* hidden argument, don't print */
144 +#define PSDLT 102 /* secflagsdelta_t */
145 +#define PSFW 103 /* psecflagswhich_t */
146 +#define HID 104 /* hidden argument, don't print */
145 147 /* make sure HID is always the last member */
146 148
147 149 /*
148 150 * Print routines, indexed by print codes.
149 151 */
150 152 extern void (* const Print[])();
151 153
152 154 #ifdef __cplusplus
153 155 }
154 156 #endif
155 157
156 158 #endif /* _TRUSS_PRINT_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX