[BACK]Return to cvsd.8 CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Annotation of src/usr.bin/cvs/cvsd.8, Revision 1.2

1.1       jfb         1: .\"    $OpenBSD: pflogd.8,v 1.24 2004/01/16 10:45:49 jmc Exp $
                      2: .\"
                      3: .\" Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
                      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: .\"    notice, this list of conditions and the following disclaimer.
                     10: .\" 2. Redistributions in binary form must reproduce the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer in the
                     12: .\"    documentation and/or other materials provided with the distribution.
                     13: .\" 3. The name of the author may not be used to endorse or promote products
                     14: .\"    derived from this software without specific prior written permission.
                     15: .\"
                     16: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     17: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     18: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     19: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     20: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     21: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     22: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     23: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     24: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     25: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     26: .\"
                     27: .Dd May 16, 2004
                     28: .Dt CVSD 8
                     29: .Os
                     30: .Sh NAME
                     31: .Nm cvsd
                     32: .Nd Concurrent Versions System daemon
                     33: .Sh SYNOPSIS
                     34: .Nm cvsd
                     35: .Op Fl dfpv
                     36: .Op Fl a Ar aclfile
                     37: .Op Fl r Ar cvsroot
                     38: .Op Fl s Ar sockpath
                     39: .Sh DESCRIPTION
                     40: The
                     41: .Nm
                     42: daemon manages access to a CVS repository.
                     43: It provides a much more secure alternative to the traditional client-server
                     44: model commonly used by
                     45: .Xr cvs 1
                     46: through various mechanisms described below.
                     47: .Pp
                     48: On startup,
                     49: .Nm
                     50: spawns a child process that chroots to the CVS repository's root directory.
                     51: Both processes then drop privileges to user and group
                     52: .Ic _cvsd .
                     53: Once this is done, the child process loads the list of ACLs and opens a local
                     54: socket on which it listens for requests.
                     55: The parent process' only purpose is to answer requests for things outside of
                     56: the child's jail.
                     57: .Pp
1.2     ! jfb        58: .Nm
        !            59: provides a way to apply Access Control Lists on the modules based on
        !            60: operation, path, tags and users.
1.1       jfb        61: In order to enforce ACLs and prevent users from modifying the files in the
                     62: repository directly, all of the files within the repository should be owned
                     63: by the user and group
                     64: .Ic _cvsd
                     65: and should only be writable by the user.
                     66: .Pp
                     67: The options are as follows:
                     68: .Bl -tag -width "-s sockpath"
                     69: .It Fl a Ar aclfile
                     70: Use
                     71: .Ar aclfile
                     72: as the source file for the Access Control Lists to apply on the repository.
                     73: .It Fl d
                     74: Start the server with debugging enabled.
                     75: This option overrides the
                     76: .Fl v
                     77: option.
                     78: .It Fl f
                     79: Stay in foreground instead of performing the usual operations to become
                     80: a daemon.
                     81: This causes all log messages to be printed on standard input or standard
                     82: error, depending on the priority of each message.
                     83: .It Fl p
                     84: On startup, perform a check on the whole contents of the CVS repository to
                     85: check file permissions and ownership, and print warnings for any files or
                     86: directories that do not match the expected permission masks.
                     87: When running with this option,
                     88: .Nm
                     89: will exit with an error message if any of the files have permissions that are
                     90: too open.
                     91: .It Fl r Ar cvsroot
                     92: Use
                     93: .Ar cvsroot
                     94: as the CVS repository's root directory.
                     95: .It Fl s Ar sockpath
                     96: Use the path specified by
                     97: .Ar sockpath
                     98: as the file to bind to for the local socket.
                     99: .It Fl v
                    100: Be verbose.
                    101: .Sh FILES
                    102: .Bl -tag -width /var/run/cvsd.sock -compact
1.2     ! jfb       103: .It Pa /etc/cvsd.conf
        !           104: Standard configuration file for the server.
1.1       jfb       105: .It Pa /var/run/cvsd.pid
                    106: Process ID of the currently running
                    107: .Nm .
                    108: .It Pa /var/run/cvsd.sock
                    109: Default listening socket for incoming cvs requests.
                    110: .El
                    111: .Sh SEE ALSO
                    112: .Xr cvs 1 ,
                    113: .Xr rcs 1 ,
1.2     ! jfb       114: .Xr cvsd.conf 5 ,
        !           115: .Xr rcsfile 5
1.1       jfb       116: .Sh HISTORY
                    117: The
                    118: .Nm
                    119: server appeared as part of the OpenCVS project.
                    120: .Sh AUTHORS
                    121: .An Jean-Francois Brousseau