📄 mount_portal.8
字号:
.\".\" Copyright (c) 1993, 1994.\" The Regents of the University of California. All rights reserved..\" All rights reserved..\".\" This code is derived from software donated to Berkeley by.\" Jan-Simon Pendry..\".\" 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. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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..\".\" @(#)mount_portal.8 8.3 (Berkeley) 3/27/94.\".\".Dd March 27, 1994.Dt MOUNT_PORTAL 8.Os BSD 4.4.Sh NAME.Nm mount_portal.Nd mount the portal daemon.Sh SYNOPSIS.Nm mount_portal.Op Fl o Ar options.Ar /etc/portal.conf.Ar mount_point.Sh DESCRIPTIONThe.Nm mount_portalcommand attaches an instance of the portal daemonto the global filesystem namespace.The conventional mount point is.Pa /p ..PA /dev .This command is normally executed by.Xr mount 8at boot time..PpThe options are as follows:.Bl -tag -width indent.It Fl oOptions are specified with a.Fl oflag followed by a comma separated string of options.See the.Xr mount 8man page for possible options and their meanings..El.PpThe portal daemon provides an.Em openservice.Objects opened under the portal mount point aredynamically created by the portal daemon accordingto rules specified in the named configuration file.Using this mechanism allows descriptors such as socketsto be made available in the filesystem namespace..PpThe portal daemon works by being passed the full pathnameof the object being opened.The daemon creates an appropriate descriptor accordingto the rules in the configuration file, and then passes the descriptor backto the calling process as the result of the open system call..Sh NAMESPACEBy convention, the portal daemon divides the namespace into sub-namespaces,each of which handles objects of a particular type..PpCurrently, two sub-namespaces are implemented:.Pa tcpand.Pa fs .The.Pa tcpnamespace takes a hostname and a port (slash separated) andcreates an open TCP/IP connection.The.Pa fsnamespace opens the named file, starting back at the root directory.This can be used to provide a controlled escape path froma chrooted environment..Sh "CONFIGURATION FILE"The configuration file contains a list of rules.Each rule takes one line and consists of two or morewhitespace separated fields.A hash (``#'') character causes the remainder of a line tobe ignored. Blank lines are ignored..PpThe first field is a pathname prefix to matchagainst the requested pathname.If a match is found, the second fieldtells the daemon what type of object to create.Subsequent fields are passed to the creation function..Bd -literal# @(#)portal.conf 5.1 (Berkeley) 7/13/92tcp/ tcp tcp/fs/ file fs/.Ed.Sh FILES.Bl -tag -width /p/* -compact.It Pa /p/*.El.Sh SEE ALSO.Xr mount 2 ,.Xr unmount 2 ,.Xr fstab 5 ,.Xr mount 8.Sh CAVEATSThis filesystem may not be NFS-exported..Sh HISTORYThe.Nm mount_portalutility first appeared in 4.4BSD.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -