]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/casperd/casperd.8
MFV r262756:
[FreeBSD/FreeBSD.git] / sbin / casperd / casperd.8
1 .\" Copyright (c) 2013 The FreeBSD Foundation
2 .\" All rights reserved.
3 .\"
4 .\" This documentation was written by Pawel Jakub Dawidek under sponsorship
5 .\" from the FreeBSD Foundation.
6 .\"
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
9 .\" are met:
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\"    notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\"    notice, this list of conditions and the following disclaimer in the
14 .\"    documentation and/or other materials provided with the distribution.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\" $FreeBSD$
29 .\"
30 .Dd October 26, 2013
31 .Dt CASPERD 8
32 .Os
33 .Sh NAME
34 .Nm casperd
35 .Nd "Capability Services friendly daemon"
36 .Sh SYNOPSIS
37 .Nm
38 [-Fhv] [-D servconfdir] [-P pidfile] [-S sockpath]
39 .Op Fl Fhv
40 .Op Fl D Ar servconfdir
41 .Op Fl P Ar pidfile
42 .Op Fl S Ar sockpath
43 .Sh DESCRIPTION
44 The
45 .Nm
46 daemon hosts various services that can be accessed through
47 libcapsicum's capabilities by programs running in sandboxes.
48 For example it is prohibited to send UDP packets to arbitrary destinations
49 when operating in capability mode, which makes DNS resolution impossible.
50 To make it possible the
51 .Nm
52 daemon provides the
53 .Nm system.dns
54 service that proxies DNS resolution requests through a dedicated,
55 non-sandboxed process provided by
56 .Nm .
57 .Pp
58 The
59 .Nm
60 daemon can be started with the following command line arguments:
61 .Bl -tag -width ".Fl D Ar servconfdir"
62 .It Fl D Ar servconfdir
63 Specify alternative location of the service configuration directory.
64 The default location is
65 .Pa /etc/casper/ .
66 .It Fl F
67 Start the
68 .Nm
69 daemon in the foreground.
70 By default
71 .Nm
72 starts in the background.
73 .It Fl h
74 Print the
75 .Nm
76 usage message.
77 .It Fl P Ar pidfile
78 Specify alternative location of a file where main process PID will be
79 stored.
80 The default location is
81 .Pa /var/run/casperd.pid .
82 .It Fl S Ar sockpath
83 Specify alternative location of the
84 .Xr unix 4
85 domain socket used to connect to the
86 .Nm
87 daemon.
88 The default location is
89 .Pa /var/run/casper .
90 .It Fl v
91 Print or log verbose/debugging information.
92 This option can be specified multiple times to raise the verbosity
93 level.
94 .El
95 .Sh FILES
96 .Bl -tag -width ".Pa /var/run/casperd.pid" -compact
97 .It Pa /etc/casper/
98 The configuration directory for
99 .Nm
100 services.
101 .It Pa /var/run/casper
102 .Xr unix 4
103 domain socket used to connect to the
104 .Nm
105 daemon.
106 .It Pa /var/run/casperd.pid
107 The default location of the
108 .Nm
109 PID file.
110 .El
111 .Sh EXIT STATUS
112 The
113 .Nm
114 daemon exits 0 on success, and >0 if an error occurs.
115 .Sh SEE ALSO
116 .Xr cap_enter 2 ,
117 .Xr libcapsicum 3 ,
118 .Xr pidfile 3 ,
119 .Xr capsicum 4 ,
120 .Xr unix 4
121 .Sh AUTHORS
122 The
123 .Nm
124 was implemented by
125 .An Pawel Jakub Dawidek Aq pawel@dawidek.net
126 under sponsorship from the FreeBSD Foundation.