summaryrefslogtreecommitdiff
path: root/static/v10/man8/syslog.8
blob: da1f504002c8885ba01c0c2ba080655c783de894 (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
.TH SYSLOG 8
.CT 1 sa_nonmortals
.SH NAME
syslog, logpr \- system security logging
.SH SYNOPSIS
.B priv syslog
.I command
[
.I arg2
[
.I arg3
]
]
.PP
.B /etc/logpr
.I file
[
.I offset
]
.SH DESCRIPTION
.I Syslog
controls the mandatory logging scheme.
License
.B T_LOG
is required.
The variety of different commands and command formats
reflects the full complexity of the
protean
.IR syslog (2)
system call.
In the usages given below a
.I mask
argument is a combination of letters
.BR NILESDATUPX ,
meaning:
.TP
.PD0
.B N
Record all uses of file names.
.TP
.B S
Record all seek calls.
.TP
.B U
Record all writes to the `u area'.
.TP
.B I
Record all accesses of inode contents.
.TP
.B D
Record possession and use of file descriptors.
.TP
.B P
Record process history:
.IR exec (2),
.IR fork (2),
.IR kill (2),
.IR exit (2).
.TP
.B L
Record all explicit changes of labels by
.IR setflab 
(see
.IR getflab (2))
and
.IR setplab 
(see
.IR getplab (2)).
.TP
.B A
Record all changes of labels.
.TP
.B X
Record all uses of privilege.
.TP
.B E
Record all
.B ELAB
error returns.
.TP
.B T
Record all uses of a traced file or process.
.PD
.PP
Valid arguments to
.I syslog
are:
.TP
.BI "on " file " " logdev
Nominate
.I file
as repository for user generated
logging records written to logging special file
.IR logdev .
.I File
must be a full path name, and must be openable for writing.
If
.IR logdev 's
minor device number is zero,
.I file
will also receive mandatory (kernel generated) logging records.
.I Logdev
may be a full path name or a minor device number.
.PD0
.TP
.BI "off "  logdev
Cancel the effect of an
.B on
command.
.TP
.BI "get " n
Print the value of the
.IR n -th
log mask.
Values of
.I n
are 0, 1, 2, or 3
for the `poison' masks; 4 is `global' mask.
.TP
.BI "set " n " " mask
Set the value of the
.IR n -th
log mask.
.TP
.BI "fget " file
Print the poison level of
.IR file ,
one of the integers 0, 1, 2, or 3.
.I File
must be the full path name of a readable file.
.TP
.BI "fset " file " " n
Set the poison level of
.I file
to
.IR n .
.I File
must be the full path name of a readable file.
.TP
.BI "pget " pid
Print the logging mask of process
.IR pid .
.TP
.BI "pset " pid " " mask
Set the logging mask of process
.I pid
to
.IR mask .
.PD
.PP
.I Logpr
converts to cryptic
.SM ASCII
the cryptic binary format of a log file described in
.IR log (5).
The optional numerical byte offset tells where in the file printing
is to start.
.SH FILES
.TF /dev/log/log00
.TP
.F /dev/log/log00
where
.I syslog
makes voluntary entries
.SH "SEE ALSO"
.IR syslog (2),
.IR log (4),
.IR log (5).
.SH DIAGNOSTICS
`Covert channel warning': the log file has
a label that is neither top nor flagged
.BR L_NO .