Home | History | Annotate | only in /src/sbin/mount_portal
History log of /src/sbin/mount_portal
RevisionDateAuthorComments
 1.27 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.26 23-Jan-2016  christos branches: 1.26.6;
Define _KERNTYPES for things that need it.
 1.25 14-Aug-2011  christos document non-literal strings
 1.24 05-Dec-2009  pooka Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.23 27-Jun-2005  christos Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
 1.22 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.21 01-Mar-2004  itojun unifdef -DINET6. getaddrinfo will always be there, so there's no point in
keeping old code. moreover old code does not traverse list of DNS-returned
addresses.
 1.20 22-Mar-2003  jdolecek move getmntopts(3) to libutil, build and install also it's manpage
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
 1.19 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.18 31-Dec-2000  itojun support IPv6. PR 11858 from ura@hiru.aoba.yokohama.jp
 1.17 06-Nov-2000  jdolecek convert to use regex (it used compat regexp previously), g/c now unneded stuff
 1.16 16-Aug-1999  bgrayson Initial support for rfilter and wfilter namespaces, in pt_filter.c.
Also, recur into ./examples, to grab the tutorial and example configurations.
 1.15 18-Sep-1998  thorpej We use regexp(3), better link w/ libcompat!
 1.14 04-Feb-1998  christos Remove -lcompat; not needed.
 1.13 10-Oct-1997  christos CFLAGS->CPPFLAGS
 1.12 08-May-1997  gwr Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
 1.11 06-May-1997  gwr Use .PATH.c: ...
 1.10 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.9 22-Dec-1994  cgd specify man pages the new way.
 1.8 03-Aug-1994  deraadt do not need -I/sys
 1.7 10-Jun-1994  pk X compilation
 1.6 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.5 28-Jan-1994  cgd don't need -lutil
 1.4 13-Jan-1994  mycroft Remove some notdefage and link with libutil so we properly daemonize.
 1.3 12-Jan-1994  cgd it uses the old regex stuff, so include -lcompat
 1.2 12-Jan-1994  mycroft Get CFLAGS right so the blasted thing is optimized.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.26.6.1 11-May-2017  pgoyette Sync with HEAD
 1.15 11-Apr-2009  lukem fix sign-compare issues
 1.14 02-Jul-2007  pooka branches: 1.14.22;
The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
 1.13 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.12 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.11 11-Feb-2002  atatat Minor tweak to make portalfs work on 64 bit ports.
 1.10 10-Jan-2001  lukem be consistent (both internally and with other programs):
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
 1.9 05-Jun-2000  thorpej Use CMSG_*() correctly when sending file descriptors.
 1.8 21-Sep-1997  enami branches: 1.8.10;
Cosmetic changes:

- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
 1.7 16-Sep-1997  lukem resolve conflicts from lite-2 merge
 1.6 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.5 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 23-Sep-1994  mycroft Eliminate uses of some obsolete functions.
 1.2 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.2 16-Sep-1997  lukem imported from lite-2
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.8.10.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.14.22.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.14 23-May-2019  kre Better handling of comments in portal.conf ... # now only introduces
a comment at beginning of line, or after whitespace. This allows #
to be used as data otherwhere in the line (there is no escape mechanism).
 1.13 23-May-2019  kre KNF: blank lines after declarations, return (x) -> return x, and
eliminate spaces between cast and value being cast (most were OK already)
NFCI.
 1.12 02-Jul-2007  pooka branches: 1.12.78;
* narrow-angle const spray
* make config read return an error if it can't read the config file
 1.11 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.9 10-Jan-2001  lukem be consistent (both internally and with other programs):
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
 1.8 06-Nov-2000  jdolecek convert to use regex (it used compat regexp previously), g/c now unneded stuff
 1.7 21-Sep-1997  enami Cosmetic changes:

- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
 1.6 16-Sep-1997  mrg make these compile on the alpha after WARNS=1.
 1.5 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.4 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.12.78.1 10-Jun-2019  christos Sync with HEAD
 1.24 23-May-2019  wiz Remove superfluous Pp.
 1.23 23-May-2019  kre Better handling of comments in portal.conf ... # now only introduces
a comment at beginning of line, or after whitespace. This allows #
to be used as data otherwhere in the line (there is no escape mechanism).
 1.22 03-Jul-2017  wiz branches: 1.22.6;
Remove workaround for ancient HTML generation code.
 1.21 05-Dec-2009  pooka Note conversion to puffs for the kernel driver.
 1.20 31-Jan-2005  erh Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
 1.19 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.18 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.17 01-Oct-2002  wiz Use more markup.
 1.16 01-Oct-2002  wiz New sentence, new line. By Robert Elz with minimal fixes.
 1.15 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.14 16-Nov-2001  wiz Use .Pp for paragraphs, sort sections, use standard headers, and a markup fix.
 1.13 16-Nov-2001  wiz Whitespace nits
 1.12 05-Jun-2001  wiz Drop arguments of .Os.
 1.11 06-Nov-2000  jdolecek put in some commas, remove newlines
 1.10 16-Aug-1999  bgrayson branches: 1.10.8;
Initial support for rfilter and wfilter namespaces, in pt_filter.c.
Also, recur into ./examples, to grab the tutorial and example configurations.
 1.9 07-Mar-1999  mycroft Clean up SYNOPSIS formatting.
 1.8 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.7 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.6 18-Aug-1995  pk Remove junk (from Masanobu Saitoh; PR#1378).
 1.5 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.2 24-Jan-1994  jtc fix formatting
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.10.8.1 09-Nov-2000  tv Pullup 1.11 [jdolecek]:
put in some commas, remove newlines
 1.22.6.1 10-Jun-2019  christos Sync with HEAD
 1.34 05-Dec-2009  pooka Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.33 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
 1.32 16-Jul-2007  pooka branches: 1.32.12; 1.32.16;
Make all mount(2) return value error checks against -1. Some file
systems just checked != 0, breaking MNT_GETARGS. Others worked with < 0,
but make them check against -1 too for consistency. And sprinkle some
stylish line wrapping where appropriate.
 1.31 14-Jul-2007  dsl Add additional 'sizeof args' parameter to mount(2).
 1.30 16-Oct-2006  christos use MOPT_NULL
 1.29 09-May-2006  mrg change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
 1.28 21-Mar-2006  christos Always check the results of getmntopts() and free them.
 1.27 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.26 31-Jan-2005  erh Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
 1.25 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.24 13-Jul-2003  itojun use bounded string ops
 1.23 22-Mar-2003  jdolecek use <> rather than "" for #include mntopts.h
 1.22 21-Sep-2002  christos MNT_GETARGS support
 1.21 21-Sep-2002  mycroft select() -> poll()
 1.20 20-Jul-2002  grant sweep of errx/warnx, remove unnecessary trailing \n
 1.19 01-Nov-2001  lukem fix a -Wshadow warning
 1.18 10-Jan-2001  lukem be consistent (both internally and with other programs):
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
 1.17 06-Nov-2000  jdolecek use mkdtemp(3) instead of mktemp(3)
call daemon(3) before the mount(2) call, so that we can fill correct pid
to mount tag argument (previous code used getpid() + 1!)
 1.16 17-Jan-2000  bgrayson Remove unneeded syslog() at unmount
 1.15 16-Aug-1999  bgrayson Make life a little easier: warn if the configuration file is not an absolute
path, and under DEBUG, keep stderr around.
 1.14 04-Mar-1999  bgrayson Slightly more useful error messages
 1.13 18-Jul-1998  lukem use AF_LOCAL instead of AF_UNIX
 1.12 17-Feb-1998  kleink Include <sys/time.h>, which is the canonical location of the select()
prototype and assorted data type definitions.
 1.11 21-Sep-1997  enami Cosmetic changes:

- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
 1.10 16-Sep-1997  lukem resolve conflicts from lite-2 merge
 1.9 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.8 13-Apr-1996  jtc Add const qualifier to mopts table
 1.7 23-Mar-1996  mrg add a SIGTERM handler to unmount the portal fs when killed. also put the
right PID in the mount table. from pr#893 <kstailey@leidecker.gsfc.nasa.gov>
 1.6 08-Jun-1995  cgd fd_set *'s really aren't compatible with timeval *'s
 1.5 06-Jun-1995  mycroft Make sure the SIGHUP handler is actually set. Zero the fd_set before using
it.
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.2 13-Jan-1994  mycroft Remove some notdefage and link with libutil so we properly daemonize.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.2 16-Sep-1997  lukem imported from lite-2
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.32.16.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.32.12.1 28-Sep-2008  mjf Sync with HEAD.
 1.6 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.5 06-Nov-2000  jdolecek use mkdtemp(3) instead of mktemp(3)
call daemon(3) before the mount(2) call, so that we can fill correct pid
to mount tag argument (previous code used getpid() + 1!)
 1.4 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.4 09-May-2017  kamil Sync example portal.conf with reality

Since day0 nobody implemented pipe, tcplisten, exec modes - eliminate them.
 1.3 18-Mar-1995  cgd branches: 1.3.106;
convert to new RCS Id conventions; reduce my headache
 1.2 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.3.106.1 11-May-2017  pgoyette Sync with HEAD
 1.10 05-Dec-2009  pooka Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.9 02-Jul-2007  pooka The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
 1.8 02-Jul-2007  pooka * narrow-angle const spray
* make config read return an error if it can't read the config file
 1.7 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.6 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.5 16-Aug-1999  bgrayson Initial support for rfilter and wfilter namespaces, in pt_filter.c.
Also, recur into ./examples, to grab the tutorial and example configurations.
 1.4 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.8 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.7 07-Aug-2003  agc branches: 1.7.88;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.6 16-Aug-1999  bgrayson Initial support for rfilter and wfilter namespaces, in pt_filter.c.
Also, recur into ./examples, to grab the tutorial and example configurations.
 1.5 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.4 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.7.88.1 11-May-2017  pgoyette Sync with HEAD
 1.10 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.9 02-Jul-2007  pooka branches: 1.9.68;
The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
 1.8 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.6 21-Sep-1997  enami Cosmetic changes:

- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
 1.5 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.4 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.3 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.2 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.9.68.1 11-May-2017  pgoyette Sync with HEAD
 1.20 23-May-2019  kre PR bin/54222

Don't use portal_node_reclaim() inappropriately. It frees data we
did not allocate, but which might have been allocated by someone else.

While here, various other cleanups (avoid losing fd's if fork fails,
don't compose mangled st_mode S_IFMT values - puffs or's in what it
thinks is correct to the value we set, one case I saw was producing
0110600 for the mode, the 011 isn't any defined type at all - I'd
never seen ls print a '?' as the first char of ls -l output before!

This is still not really correct, but is I believe, better than before.
 1.19 10-May-2017  christos branches: 1.19.10;
set only the effective user id to the user id of the requesting user so that
we can go back to the original uid later.
 1.18 19-Oct-2013  christos branches: 1.18.16;
fix unused variable warnings.
 1.17 02-Jul-2007  pooka branches: 1.17.36; 1.17.42;
The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
 1.16 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.15 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.14 13-Jul-2003  itojun use bounded string ops
 1.13 10-Jan-2001  lukem be consistent (both internally and with other programs):
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
 1.12 15-Jan-2000  bgrayson Fix security problem noticed by Alaric Williams:
when giving up root credentials, I was setting the egid and euid,
and forgot to also do gid and uid.
 1.11 16-Aug-1999  bgrayson Changes include:
- user mounts of fs namespace are now possible.
- if read/write access is not possible, fall back to read-only.
- use lose_credentials() as a common method to change UID etc.
(it is also used by the rfilter and wfilter code)
- some KNF changes, while I was here.
 1.10 21-Sep-1997  enami Cosmetic changes:

- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
 1.9 16-Sep-1997  lukem resolve conflicts from lite-2 merge
 1.8 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.7 06-Jun-1995  mycroft Fix debugging printf.
 1.6 06-Jun-1995  mycroft Use setegid() explicitly, just to be safe.
 1.5 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.4 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.2 13-Apr-1994  cgd kill warning
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.2 16-Sep-1997  lukem imported from lite-2
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.17.42.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.36.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18.16.1 11-May-2017  pgoyette Sync with HEAD
 1.19.10.1 10-Jun-2019  christos Sync with HEAD
 1.13 12-Apr-2021  mrg properly terminate a buffer after strncpy().
 1.12 14-May-2020  msaitoh Remove extra semicolon.
 1.11 04-Jan-2011  wiz Use pclose for popened handles. Found by cppcheck.
 1.10 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9 02-Jul-2007  pooka branches: 1.9.12; 1.9.14;
The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
 1.8 09-Nov-2006  christos replace varstack alloc with malloc.
 1.7 21-Apr-2006  skrll Don't use cast expressions as lvalues as newer versions of gcc warn.
 1.6 21-Mar-2006  christos Coverity CID 782: Don't dereference NULL was not going to happen, but:
1. return error instead of the trashed errno.
2. don't return -1, but return ENAMETOOLONG.
3. eliminate unused code.
 1.5 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.4 10-Jan-2001  lukem be consistent (both internally and with other programs):
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
 1.3 17-Jan-2000  bgrayson Fix bug where NULL pointer wasn't checked before dereferencing
 1.2 17-Aug-1999  kleink printf() format warnings for size_t != int; from Peter Seebach in PR bin/8214.
 1.1 16-Aug-1999  bgrayson Initial support for rfilter and wfilter namespaces, in pt_filter.c.
Also, recur into ./examples, to grab the tutorial and example configurations.
 1.9.14.1 18-May-2008  yamt sync with head.
 1.9.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.21 11-Apr-2009  lukem fix sign-compare issues
 1.20 02-Jul-2007  pooka branches: 1.20.22;
The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
 1.19 09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.18 01-Mar-2004  itojun unifdef -DINET6. getaddrinfo will always be there, so there's no point in
keeping old code. moreover old code does not traverse list of DNS-returned
addresses.
 1.17 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.16 13-Jul-2003  itojun use bounded string ops
 1.15 10-Jan-2001  lukem be consistent (both internally and with other programs):
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
 1.14 31-Dec-2000  itojun support IPv6. PR 11858 from ura@hiru.aoba.yokohama.jp
 1.13 03-Feb-1998  perry change <strings.h> to <string.h> to fix compiler warning
 1.12 21-Sep-1997  enami Cosmetic changes:

- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
 1.11 16-Sep-1997  lukem resolve conflicts from lite-2 merge
 1.10 15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.9 21-May-1995  mycroft Use inet_aton(), not inet_addr().
 1.8 23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.7 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.6 23-Sep-1994  mycroft Eliminate uses of some obsolete functions.
 1.5 08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.4 30-May-1994  mycroft Add missing htons(), reported by Thorsten Lockert.
 1.3 14-Jan-1994  cgd update from jsp; add 'priv' keyword to get privileged ports
 1.2 13-Jan-1994  mycroft Fix path name parsing.
 1.1 12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.2 16-Sep-1997  lukem imported from lite-2
 1.1.1.1 13-Jun-1994  mycroft Import 4.4-Lite version.
 1.20.22.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11 04-Apr-2023  rillig mount_portal: fix lint warnings about extern and empty declarations
 1.10 23-May-2019  kre PR bin/54222

Don't use portal_node_reclaim() inappropriately. It frees data we
did not allocate, but which might have been allocated by someone else.

While here, various other cleanups (avoid losing fd's if fork fails,
don't compose mangled st_mode S_IFMT values - puffs or's in what it
thinks is correct to the value we set, one case I saw was producing
0110600 for the mode, the 011 isn't any defined type at all - I'd
never seen ls print a '?' as the first char of ls -l output before!

This is still not really correct, but is I believe, better than before.
 1.9 10-May-2017  christos branches: 1.9.10;
We need to provide a size for getattr for the cp example to work, so cheat
and use fstat() to do it instead of libpuffs.
 1.8 09-May-2017  christos prevent hang on vnode EOF.
 1.7 04-Nov-2012  christos branches: 1.7.20;
include the headers that you need.
 1.6 20-Mar-2012  matt branches: 1.6.2;
Convert to C89 function definitions
 1.5 19-Dec-2011  riastradh Fix error reporting in puffs_framev_enqueue_waitevent and callers.

ok christos
 1.4 29-Aug-2011  joerg branches: 1.4.2;
Use __dead
 1.3 19-Dec-2009  pooka Use CMSG_SPACE() for buffer when receiving file descriptors.
Doesn't break i386 and might be better for sparc64.
 1.2 05-Dec-2009  pooka use puffs_cookie_t. no functional change.
 1.1 05-Dec-2009  pooka Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
(missed new file in change batch)
 1.4.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.4.2.1 17-Apr-2012  yamt sync with head
 1.6.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.20.1 11-May-2017  pgoyette Sync with HEAD
 1.9.10.1 10-Jun-2019  christos Sync with HEAD
 1.5 24-Apr-2002  lukem - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
from being useful (and given that every other variable can be
extracted using make -V, the behaviour was unusually inconsistent
given that the original reason for clearing it doesn't seem to be
relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
(and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
 1.4 11-Dec-2001  bgrayson Changed Makefile to install scripts as executable (SCRIPTS, not as FILES), and
also did name change on them to preserve .sh suffix
 1.3 12-Oct-2001  atatat Install the shell script instead of the perl script
 1.2 11-Oct-2001  atatat Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
 1.1 16-Aug-1999  bgrayson Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.6 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.5 26-Jul-2003  salo branches: 1.5.88;
netbsd.org->NetBSD.org
 1.4 11-Dec-2001  bgrayson Fixed minor typo in example for cksum /tmp/rc
 1.3 06-Nov-2000  jdolecek fix typo
 1.2 17-Jan-2000  bgrayson Added sysctl examples (read-only sysctls for now)
 1.1 16-Aug-1999  bgrayson Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.5.88.1 11-May-2017  pgoyette Sync with HEAD
 1.3 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.2 17-Jan-2000  bgrayson branches: 1.2.94;
Added sysctl examples (read-only sysctls for now)
 1.1 16-Aug-1999  bgrayson Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.2.94.1 11-May-2017  pgoyette Sync with HEAD
 1.7 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.6 02-Jul-2007  pooka branches: 1.6.68;
basesrc is no more
 1.5 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.4 11-Dec-2001  bgrayson Removed 'chmod +x cvs.sh' from instructions -- the script is now installed executable by the Makefile
 1.3 16-Nov-2001  wiz Whitespace nits
 1.2 12-Oct-2001  atatat Remove the perl script from the mount_portal example for cvs and
replace it with a regular sh script.
 1.1 11-Oct-2001  atatat Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
 1.6.68.1 11-May-2017  pgoyette Sync with HEAD
 1.3 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.2 15-Oct-2001  atatat branches: 1.2.90;
Use the new sh script instead of the (now defunct) pl one
 1.1 11-Oct-2001  atatat Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
 1.2.90.1 11-May-2017  pgoyette Sync with HEAD
 1.2 12-Oct-2001  atatat Bye bye, perl script.
 1.1 11-Oct-2001  atatat Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
 1.2 11-Dec-2001  bgrayson Renamed so that .sh suffix is not stripped on install
 1.1 12-Oct-2001  atatat Remove the perl script from the mount_portal example for cvs and
replace it with a regular sh script.
 1.4 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.3 26-Jul-2003  salo branches: 1.3.88;
netbsd.org->NetBSD.org
 1.2 12-Jul-2003  atatat Allow _ in tags
 1.1 11-Dec-2001  bgrayson Renamed so that .sh suffix is not stripped on install
 1.3.88.1 11-May-2017  pgoyette Sync with HEAD
 1.3 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.2 20-Jul-2002  grant branches: 1.2.88;
sweep of errx/warnx, remove unnecessary trailing \n
 1.1 16-Aug-1999  bgrayson Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.2.88.1 11-May-2017  pgoyette Sync with HEAD
 1.2 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.1 16-Aug-1999  bgrayson branches: 1.1.98;
Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.1.98.1 11-May-2017  pgoyette Sync with HEAD
 1.2 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.1 16-Aug-1999  bgrayson branches: 1.1.98;
Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.1.98.1 11-May-2017  pgoyette Sync with HEAD
 1.3 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.2 11-Oct-2001  atatat Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
 1.1 16-Aug-1999  bgrayson Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.2 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.1 16-Aug-1999  bgrayson branches: 1.1.98;
Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.1.98.1 11-May-2017  pgoyette Sync with HEAD
 1.4 22-Mar-2020  gutteridge rfilter.2: fix a typo

Reported by Andrius V in PR kern/54889.
 1.3 09-May-2017  kamil branches: 1.3.10;
Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.2 26-Jul-2003  salo branches: 1.2.88;
netbsd.org->NetBSD.org
 1.1 16-Aug-1999  bgrayson Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.2.88.1 11-May-2017  pgoyette Sync with HEAD
 1.3.10.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.2 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.1 16-Aug-1999  bgrayson branches: 1.1.98;
Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.1.98.1 11-May-2017  pgoyette Sync with HEAD
 1.2 11-Dec-2001  bgrayson Renamed so that .sh suffix is not stripped on install
 1.1 17-Jan-2000  bgrayson Added sysctl examples (read-only sysctls for now)
 1.2 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.1 11-Dec-2001  bgrayson Renamed so that .sh suffix is not stripped on install
 1.3 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.2 16-Nov-2001  wiz branches: 1.2.90;
Whitespace nits
 1.1 16-Aug-1999  bgrayson Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.2.90.1 11-May-2017  pgoyette Sync with HEAD
 1.2 09-May-2017  kamil Minor and non-functional enhancements in mount_portal(8)

Since day0 pt_exec.c shipped with a dummy stub for "exec" operation, stop
waiting longer and eliminate it now. This functionality can be achieved
with filters.

Drop FreeBSD CVS repos references. There are certainly still some mirrors
or old mirrors available, but since the project moved to SVN+GIT entirely
drop it.

Add CVS Id - where missing - to the documentation files. This helps users
to determine how recent are the files.
 1.1 16-Aug-1999  bgrayson branches: 1.1.98;
Initial checkin. Contains some tutorial-like examples, plus configurations.
 1.1.98.1 11-May-2017  pgoyette Sync with HEAD

RSS XML Feed