xref: /freebsd/sbin/routed/pathnames.h (revision 51e16cb8)
18a16b7a1SPedro F. Giffuni /*-
28a16b7a1SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
38a16b7a1SPedro F. Giffuni  *
47b6ab19dSGarrett Wollman  * Copyright (c) 1989, 1993
57b6ab19dSGarrett Wollman  *	The Regents of the University of California.  All rights reserved.
67b6ab19dSGarrett Wollman  *
77b6ab19dSGarrett Wollman  * Redistribution and use in source and binary forms, with or without
87b6ab19dSGarrett Wollman  * modification, are permitted provided that the following conditions
97b6ab19dSGarrett Wollman  * are met:
107b6ab19dSGarrett Wollman  * 1. Redistributions of source code must retain the above copyright
117b6ab19dSGarrett Wollman  *    notice, this list of conditions and the following disclaimer.
127b6ab19dSGarrett Wollman  * 2. Redistributions in binary form must reproduce the above copyright
137b6ab19dSGarrett Wollman  *    notice, this list of conditions and the following disclaimer in the
147b6ab19dSGarrett Wollman  *    documentation and/or other materials provided with the distribution.
15fbbd9655SWarner Losh  * 3. Neither the name of the University nor the names of its contributors
167b6ab19dSGarrett Wollman  *    may be used to endorse or promote products derived from this software
177b6ab19dSGarrett Wollman  *    without specific prior written permission.
187b6ab19dSGarrett Wollman  *
197b6ab19dSGarrett Wollman  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
207b6ab19dSGarrett Wollman  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
217b6ab19dSGarrett Wollman  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
227b6ab19dSGarrett Wollman  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
237b6ab19dSGarrett Wollman  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
247b6ab19dSGarrett Wollman  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
257b6ab19dSGarrett Wollman  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
267b6ab19dSGarrett Wollman  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
277b6ab19dSGarrett Wollman  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
287b6ab19dSGarrett Wollman  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
297b6ab19dSGarrett Wollman  * SUCH DAMAGE.
307b6ab19dSGarrett Wollman  */
317b6ab19dSGarrett Wollman 
327b6ab19dSGarrett Wollman #include <paths.h>
337b6ab19dSGarrett Wollman 
347b6ab19dSGarrett Wollman #define	_PATH_GATEWAYS	"/etc/gateways"
357b6ab19dSGarrett Wollman 
367b6ab19dSGarrett Wollman /* All remotely requested trace files must either start with this prefix
377b6ab19dSGarrett Wollman  * or be the same as the tracefile specified when the daemon was started.
387b6ab19dSGarrett Wollman  * If this is a directory, routed will create log files in it.  That
39caa79e36SBruce M Simpson  * might be a security problem.  However, if bad guys can write in the
40caa79e36SBruce M Simpson  * default value, /etc, you have far worse security problems than anything
41caa79e36SBruce M Simpson  * this might do.  In other words, it makes no sense to turn this off.
427b6ab19dSGarrett Wollman  *
437b6ab19dSGarrett Wollman  * Leave this undefined, and only the trace file originally specified
447b6ab19dSGarrett Wollman  * when routed was started, if any, will be appended to.
457b6ab19dSGarrett Wollman  */
467b6ab19dSGarrett Wollman #define _PATH_TRACE	"/etc/routed.trace"
47