Deleted Added
sdiff udiff text old ( 171538 ) new ( 189279 )
full compact
1.\"-
2.\" Copyright (c) 2005-2006 Robert N. M. Watson
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

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

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_control.3#10 $
27.\"
28.Dd April 19, 2005
29.Dt AU_CONTROL 3
30.Os
31.Sh NAME
32.Nm setac ,
33.Nm endac ,
34.Nm getacdir ,
35.Nm getacmin ,
36.Nm getacexpire ,
37.Nm getacfilesz ,
38.Nm getacflg ,
39.Nm getacna ,
40.Nm getacpol ,
41.Nm au_poltostr ,
42.Nm au_strtopol
43.Nd "look up information from the audit_control database"
44.Sh LIBRARY

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

49.Fn setac void
50.Ft void
51.Fn endac void
52.Ft int
53.Fn getacdir "char *name" "int len"
54.Ft int
55.Fn getacmin "int *min_val"
56.Ft int
57.Fn getacexpire "int *andflg, time_t *age, size_t *size"
58.Ft int
59.Fn getacfilesz "size_t *size_val"
60.Ft int
61.Fn getacflg "char *auditstr" "int len"
62.Ft int
63.Fn getacna "char *auditstr" "int len"
64.Ft int
65.Fn getacpol "char *auditstr" "size_t len"
66.Ft ssize_t

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

99.Fn getacmin
100function
101returns the minimum free disk space for the audit log target file system via
102the passed
103.Fa min_val
104variable.
105.Pp
106The
107.Fn getacexpire
108function
109returns the audit trail file expiration parameters in the passed
110.Vt int
111buffer
112.Fa andflg ,
113.Vt time_t
114buffer
115.Fa age
116and
117.Vt size_t
118buffer
119.Fa size .
120If the parameter is not specified in the
121.Xr audit_control 5
122file it is set to zero.
123.Pp
124The
125.Fn getacfilesz
126function
127returns the audit trail rotation size in the passed
128.Vt size_t
129buffer
130.Fa size_val .
131.Pp
132The

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

169converts an audit policy flags string,
170.Fa polstr ,
171to a numeric audit policy mask returned via
172.Fa policy .
173.Sh RETURN VALULES
174The
175.Fn getacdir ,
176.Fn getacmin ,
177.Fn getacexpire ,
178.Fn getacflg ,
179.Fn getacna ,
180.Fn getacpol ,
181and
182.Fn au_strtopol
183functions
184return 0 on success, or a negative value on failure, along with error
185information in

--- 48 unchanged lines hidden ---