summaryrefslogtreecommitdiffstats
path: root/lib/libbsm/Makefile
blob: eec2c409144fdca034042781f51b0966481a8434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#
# $FreeBSD$
#

OPENBSMDIR=		${.CURDIR}/../../contrib/openbsm
LIBBSMDIR=		${OPENBSMDIR}/libbsm

LIB=		bsm
SHLIB_MAJOR=	3

.PATH:		${LIBBSMDIR}
.PATH:		${OPENBSMDIR}/bsm
.PATH:		${OPENBSMDIR}/man

SRCS=	bsm_audit.c							\
	bsm_class.c							\
	bsm_control.c							\
	bsm_domain.c							\
	bsm_errno.c							\
	bsm_event.c							\
	bsm_fcntl.c							\
	bsm_flags.c							\
	bsm_io.c							\
	bsm_mask.c							\
	bsm_notify.c							\
	bsm_socket_type.c						\
	bsm_token.c							\
	bsm_user.c							\
	bsm_wrappers.c

#
# Must use BSM include files from within the contrib area, not the system.
#
CFLAGS+=	-I${OPENBSMDIR} -I${LIBBSMDIR}

WARNS?=		1

INCS=		audit_uevents.h libbsm.h
INCSDIR=	${INCLUDEDIR}/bsm

MAN=	libbsm.3							\
	au_class.3							\
	au_control.3							\
	au_domain.3							\
	au_errno.3							\
	au_event.3							\
	au_fcntl_cmd.3							\
	au_free_token.3							\
	au_io.3								\
	au_mask.3							\
	au_open.3							\
	au_socket_type.3						\
	au_token.3							\
	au_user.3							\
	audit_submit.3

#
# It seems like maybe some of these should be installed separately, since
# they're not all libbsm parts.
#
MAN+=	audit.2								\
	audit.log.5							\
	audit_class.5							\
	audit_control.5							\
	audit_event.5							\
	audit_user.5							\
	audit_warn.5							\
	auditctl.2							\
	auditon.2							\
	getaudit.2							\
	getauid.2							\
	setaudit.2							\
	setauid.2

MLINKS=	libbsm.3 bsm.3							\
	au_class.3 getauclassent.3					\
	au_class.3 getauclassent_r.3					\
	au_class.3 getauclassnam.3					\
	au_class.3 getauclassnam_3.3					\
	au_class.3 setauclass.3						\
	au_class.3 endauclass.3						\
	au_control.3 setac.3						\
	au_control.3 endac.3						\
	au_control.3 getacdir.3						\
	au_control.3 getacmin.3						\
	au_control.3 getacfilesz.3					\
	au_control.3 getacflg.3						\
	au_control.3 getacna.3						\
	au_control.3 getacpol.3						\
	au_control.3 au_poltostr.3					\
	au_control.3 au_strtopol.3					\
	au_domain.3 au_bsm_to_domain.3					\
	au_domain.3 au_domain_to_bsm.3					\
	au_errno.3 au_bsm_to_errno.3					\
	au_errno.3 au_errno_to_bsm.3					\
	au_errno.3 au_strerror.3					\
	au_event.3 setauevent.3						\
	au_event.3 endauevent.3						\
	au_event.3 getauevent.3						\
	au_event.3 getauevent_r.3					\
	au_event.3 getauevnam.3						\
	au_event.3 getauevnam_r.3					\
	au_event.3 getauevnum.3						\
	au_event.3 getauevnum_r.3					\
	au_event.3 getauevnonam.3					\
	au_event.3 getauevnonam_r.3					\
	au_fcntl_cmd.3 au_bsm_to_fcntl_cmd.3				\
	au_fcntl_cmd.3 au_fcntl_cmd_t_bsm.3				\
	au_io.3	au_fetch_tok.3						\
	au_io.3	au_print_tok.3						\
	au_io.3	au_read_rec.3						\
	au_mask.3 au_preselect.3					\
	au_mask.3 getauditflagsbin.3					\
	au_mask.3 getauditflagschar.3					\
	au_open.3 au_close.3						\
	au_open.3 au_close_buffer.3					\
	au_open.3 au_close_token.3					\
	au_open.3 au_write.3						\
	au_socket_type.3 au_bsm_to_socket_type.3			\
	au_socket_type.3 au_socket_type_to_bsm.3			\
	au_token.3 au_to_arg32.3					\
	au_token.3 au_to_arg64.3					\
	au_token.3 au_to_arg.3						\
	au_token.3 au_to_attr64.3					\
	au_token.3 au_to_data.3						\
	au_token.3 au_to_exit.3						\
	au_token.3 au_to_groups.3					\
	au_token.3 au_to_newgroups.3					\
	au_token.3 au_to_in_addr.3					\
	au_token.3 au_to_in_addr_ex.3					\
	au_token.3 au_to_ip.3						\
	au_token.3 au_to_ipc.3						\
	au_token.3 au_to_ipc_perm.3					\
	au_token.3 au_to_iport.3					\
	au_token.3 au_to_opaque.3					\
	au_token.3 au_to_file.3						\
	au_token.3 au_to_text.3						\
	au_token.3 au_to_path.3						\
	au_token.3 au_to_process32.3					\
	au_token.3 au_to_process64.3					\
	au_token.3 au_to_process.3					\
	au_token.3 au_to_process32_ex.3					\
	au_token.3 au_to_process64_ex.3					\
	au_token.3 au_to_process_ex.3					\
	au_token.3 au_to_return32.3					\
	au_token.3 au_to_return64.3					\
	au_token.3 au_to_return.3					\
	au_token.3 au_to_seq.3						\
	au_token.3 au_to_sock_inet32.3					\
	au_token.3 au_to_sock_inet128.3					\
	au_token.3 au_to_sock_inet.3					\
	au_token.3 au_to_subject32.3					\
	au_token.3 au_to_subject64.3					\
	au_token.3 au_to_subject.3					\
	au_token.3 au_to_subject32_ex.3					\
	au_token.3 au_to_subject64_ex.3					\
	au_token.3 au_to_subject_ex.3					\
	au_token.3 au_to_me.3						\
	au_token.3 au_to_exec_args.3					\
	au_token.3 au_to_exec_env.3					\
	au_token.3 au_to_header.3					\
	au_token.3 au_to_header32.3					\
	au_token.3 au_to_header64.3					\
	au_token.3 au_to_trailer.3					\
	au_token.3 au_to_zonename.3					\
	au_user.3 setauuser.3						\
	au_user.3 endauuser.3						\
	au_user.3 getauuserent.3					\
	au_user.3 getauuserent_r.3					\
	au_user.3 getauusernam.3					\
	au_user.3 getauusernam_R.3					\
	au_user.3 au_user_mask.3					\
	au_user.3 getfauditflags.3					\
	getaudit.2 getaudit_addr.2					\
	setaudit.2 setaudit_addr.2

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud