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
|
.\" $OpenBSD: cvsd.conf.5,v 1.2 2004/08/03 14:47:30 jfb Exp $
.\"
.\" Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. The name of the author may not be used to endorse or promote products
.\" derived from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd July 20, 2004
.Dt CVSD.CONF 5
.Os
.Sh NAME
.Nm cvsd.conf
.Nd CVS daemon configuration file format
.Sh DESCRIPTION
The
.Nm
configuration file format is used by the
.Xr cvsd 8
server.
The server's configuration file is read upon startup and reparsed on every
server restart.
.Pp
It is a human-readable text file consisting of one-line directives that
the server handles to modify its configuration and Access Control List rules
to control operations on the repository.
Comments can be inserted anywhere in the file by putting a '#' character
before them and span to the end of the line.
.Pp
.Sh MACROS
To simplify maintenance of the configuration, the format allows for the
definition of variables that can later be used for interpolation throughout
the configuration file by preceding them with the '$' character.
These variables are refered to as macros throughout the rest of the document.
A macro name must start with a letter and can be composed of letters, digits
and underscores.
.Pp
Here is an example of macro usage:
.Bd -literal -offset indent
rootdir = /usr/local/cvs
cvsroot $rootdir
reqsock $rootdir/CVSROOT/cvsd.sock
.Ed
.Pp
To assign a value containing spaces to a macro, the whole value string must
be quoted using double quotes.
.Sh DIRECTIVES
The following directives are supported by the server:
.Bl -tag -width xxxxx
.It Sy cvsroot Ar path
Set the server's CVS root directory to
.Ar path .
.It Sy listen Ar addr
Add the address
.Ar addr
to the list of addresses on which the server will listen for incoming
connections.
This is currently parsed but ignored, as the CVS daemon doesn't support
direct TCP connections yet.
.It Sy minchild Ar num
Set the server's minimum number of child processes to
.Ar num .
.It Sy maxchild Ar num
Set the server's maximum number of child processes to
.Ar num .
.It Sy reqsock Ar path
Set the server's local socket path to
.Ar path .
In order for this to work, the
.Xr cvs 1
client must be aware of the socket's path.
.El
.Sh ACL GRAMMAR
The Access Control Lists grammar is expressed in BNF (Backus-Naur Form)
notation.
In this representation, terminals are displayed as normal text and nonterminals
are in bold.
.Po
.Ql [
and
.Ql \&]
.Pc
is optional.
The pipe character
.Pq Ql \&|
is used to separate multiple choices.
.Pp
Here is the BNF syntax for
.Nm
rules:
.Bl -tag -width "this is a test"
.It Ic line
::=
.It Ic rule
::=
.Ic action
.Bo
.Ic optlist
.Bc
.Ic op
[ branch
.Ic branch
]
.Pp
[ from
.Ic userlist
]
.It Ic action
::= allow | deny
.It Ic option
::= quick | log
.It Ic optlist
::=
.Ic option
|
.Ic optlist ,
.Ic option
.It Ic op
::= add | commit | tag | update
.It Ic userlist
::=
.El
.Pp
.Sh EXAMPLES
The following rule denies all operations:
.Bd -literal
deny quick any
.Ed
.Sh FILES
.Bl -tag -width /etc/cvsd.conf -compact
.It Pa /etc/cvsd.conf
Default configuration file for
.Xr cvsd 8 .
.El
.Sh SEE ALSO
.Xr cvs 1 ,
.Xr rcsfile 5 ,
.Xr cvsd 8
.Sh HISTORY
The
.Nm
file format was introduced along with the CVS daemon as part of the
OpenCVS project.
.Sh AUTHORS
.An Jean-Francois Brousseau
|