1994-05-26 06:35:07 +00:00
|
|
|
.\" Copyright (c) 1994
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
2001-07-15 07:53:42 +00:00
|
|
|
.\"
|
1994-05-26 06:35:07 +00:00
|
|
|
.\" 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.
|
|
|
|
.\" 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_union.8 8.6 (Berkeley) 3/27/94
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1994-05-26 06:35:07 +00:00
|
|
|
.\"
|
2006-12-02 19:35:56 +00:00
|
|
|
.Dd November 30, 2006
|
2001-05-23 14:58:19 +00:00
|
|
|
.Dt MOUNT_UNIONFS 8
|
|
|
|
.Os
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh NAME
|
2001-05-23 14:58:19 +00:00
|
|
|
.Nm mount_unionfs
|
2002-08-21 18:11:48 +00:00
|
|
|
.Nd mount union file systems
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm
|
2011-03-23 13:44:09 +00:00
|
|
|
.Op Fl b
|
1994-05-26 06:35:07 +00:00
|
|
|
.Op Fl o Ar options
|
|
|
|
.Ar directory
|
|
|
|
.Ar uniondir
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
1998-07-15 06:13:45 +00:00
|
|
|
.Nm
|
2002-07-06 19:34:18 +00:00
|
|
|
utility attaches
|
1994-05-26 06:35:07 +00:00
|
|
|
.Ar directory
|
|
|
|
above
|
|
|
|
.Ar uniondir
|
|
|
|
in such a way that the contents of both directory trees remain visible.
|
|
|
|
By default,
|
|
|
|
.Ar directory
|
|
|
|
becomes the
|
|
|
|
.Em upper
|
|
|
|
layer and
|
|
|
|
.Ar uniondir
|
|
|
|
becomes the
|
|
|
|
.Em lower
|
|
|
|
layer.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl b
|
2006-12-31 15:36:44 +00:00
|
|
|
Deprecated.
|
|
|
|
Use
|
|
|
|
.Fl o Cm below
|
2006-12-02 19:35:56 +00:00
|
|
|
instead.
|
|
|
|
.It Fl o
|
2006-12-31 15:36:44 +00:00
|
|
|
Options are specified with the
|
2006-12-02 19:35:56 +00:00
|
|
|
.Fl o
|
|
|
|
flag followed by an option.
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm below
|
2006-12-31 15:36:44 +00:00
|
|
|
Inverts the default position, so that
|
1994-05-26 06:35:07 +00:00
|
|
|
.Ar directory
|
|
|
|
becomes the lower layer and
|
|
|
|
.Ar uniondir
|
|
|
|
becomes the upper layer.
|
|
|
|
However,
|
|
|
|
.Ar uniondir
|
|
|
|
remains the mount point.
|
2015-09-02 14:10:09 +00:00
|
|
|
.It Cm copymode No = Cm traditional | transparent | masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
Specifies the way to create a file or a directory in the upper layer
|
|
|
|
automatically when needed.
|
2006-12-31 15:36:44 +00:00
|
|
|
The
|
|
|
|
.Cm traditional
|
|
|
|
mode
|
2006-12-02 19:35:56 +00:00
|
|
|
uses the same way as the old unionfs for backward compatibility, and
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm transparent
|
2006-12-02 19:35:56 +00:00
|
|
|
duplicates the file and directory mode bits and the ownership in the
|
|
|
|
lower layer to the created file in the upper layer.
|
|
|
|
For behavior of the
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode, see
|
2006-12-31 15:36:44 +00:00
|
|
|
.Sx MASQUERADE MODE
|
|
|
|
below.
|
2015-09-02 14:10:09 +00:00
|
|
|
.It Cm whiteout No = Cm always | whenneeded
|
2007-10-14 13:55:38 +00:00
|
|
|
Specifies whether whiteouts should always be made in the upper layer
|
|
|
|
when removing a file or directory or only when it already exists in the
|
|
|
|
lower layer.
|
2006-12-31 15:36:44 +00:00
|
|
|
.It Cm udir Ns = Ns Ar mode
|
2006-12-02 19:35:56 +00:00
|
|
|
Specifies directory mode bits in octal for
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode.
|
2006-12-31 15:36:44 +00:00
|
|
|
.It Cm ufile Ns = Ns Ar mode
|
2006-12-02 19:35:56 +00:00
|
|
|
Specifies file mode bits in octal for
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode.
|
2006-12-31 15:36:44 +00:00
|
|
|
.It Cm gid Ns = Ns Ar gid
|
2006-12-02 19:35:56 +00:00
|
|
|
Specifies group for
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode.
|
2006-12-31 15:36:44 +00:00
|
|
|
.It Cm uid Ns = Ns Ar uid
|
2006-12-02 19:35:56 +00:00
|
|
|
Specifies user for
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode.
|
|
|
|
.El
|
1994-05-26 06:35:07 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2006-12-31 15:36:44 +00:00
|
|
|
To enforce file system security, the user mounting a file system
|
1994-05-26 06:35:07 +00:00
|
|
|
must be superuser or else have write permission on the mounted-on
|
|
|
|
directory.
|
2004-07-18 01:51:59 +00:00
|
|
|
In addition, the
|
2005-01-10 16:17:34 +00:00
|
|
|
.Va vfs.usermount
|
|
|
|
.Xr sysctl 8
|
2004-07-18 01:51:59 +00:00
|
|
|
variable must be set to 1 to permit file system mounting by ordinary users.
|
2006-12-02 19:35:56 +00:00
|
|
|
However, note that
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm transparent
|
2006-12-02 19:35:56 +00:00
|
|
|
and
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
|
|
|
modes require
|
2006-12-02 19:35:56 +00:00
|
|
|
.Va vfs.usermount
|
2006-12-31 15:36:44 +00:00
|
|
|
to be set to 0 because this functionality can only be used by superusers.
|
1994-05-26 06:35:07 +00:00
|
|
|
.Pp
|
|
|
|
Filenames are looked up in the upper layer and then in the
|
|
|
|
lower layer.
|
|
|
|
If a directory is found in the lower layer, and there is no entry
|
|
|
|
in the upper layer, then a
|
|
|
|
.Em shadow
|
|
|
|
directory will be created in the upper layer.
|
2006-12-02 19:35:56 +00:00
|
|
|
The ownership and the mode bits are set depending on the
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm copymode
|
|
|
|
option.
|
|
|
|
In
|
|
|
|
.Cm traditional
|
2006-12-02 19:35:56 +00:00
|
|
|
mode, it will be owned by the user who originally did the
|
2006-12-31 15:36:44 +00:00
|
|
|
union mount, with mode 0777
|
|
|
|
.Pq Dq Li rwxrwxrwx
|
2006-12-02 19:35:56 +00:00
|
|
|
modified by the umask in effect at that time.
|
1994-05-26 06:35:07 +00:00
|
|
|
.Pp
|
|
|
|
If a file exists in the upper layer then there is no way to access
|
|
|
|
a file with the same name in the lower layer.
|
|
|
|
If necessary, a combination of loopback and union mounts can be made
|
|
|
|
which will still allow the lower files to be accessed by a different
|
|
|
|
pathname.
|
|
|
|
.Pp
|
|
|
|
Except in the case of a directory,
|
2002-08-21 18:11:48 +00:00
|
|
|
access to an object is granted via the normal file system access checks.
|
1994-05-26 06:35:07 +00:00
|
|
|
For directories, the current user must have access to both the upper
|
|
|
|
and lower directories (should they both exist).
|
|
|
|
.Pp
|
|
|
|
Requests to create or modify objects in
|
|
|
|
.Ar uniondir
|
|
|
|
are passed to the upper layer with the exception of a few special cases.
|
|
|
|
An attempt to open for writing a file which exists in the lower layer
|
|
|
|
causes a copy of the
|
|
|
|
.Em entire
|
|
|
|
file to be made to the upper layer, and then for the upper layer copy
|
|
|
|
to be opened.
|
|
|
|
Similarly, an attempt to truncate a lower layer file to zero length
|
|
|
|
causes an empty file to be created in the upper layer.
|
|
|
|
Any other operation which would ultimately require modification to
|
|
|
|
the lower layer fails with
|
2000-11-22 16:02:00 +00:00
|
|
|
.Er EROFS .
|
1994-05-26 06:35:07 +00:00
|
|
|
.Pp
|
2002-08-21 18:11:48 +00:00
|
|
|
The union file system manipulates the namespace, rather than
|
|
|
|
individual file systems.
|
1994-05-26 06:35:07 +00:00
|
|
|
The union operation applies recursively down the directory tree
|
|
|
|
now rooted at
|
|
|
|
.Ar uniondir .
|
2002-08-21 18:11:48 +00:00
|
|
|
Thus any file systems which are mounted under
|
1994-05-26 06:35:07 +00:00
|
|
|
.Ar uniondir
|
|
|
|
will take part in the union operation.
|
|
|
|
This differs from the
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm union
|
1994-05-26 06:35:07 +00:00
|
|
|
option to
|
|
|
|
.Xr mount 8
|
|
|
|
which only applies the union operation to the mount point itself,
|
|
|
|
and then only for lookups.
|
2006-12-02 19:35:56 +00:00
|
|
|
.Sh MASQUERADE MODE
|
|
|
|
When a file
|
2006-12-31 15:36:44 +00:00
|
|
|
(or a directory)
|
2006-12-02 19:35:56 +00:00
|
|
|
is created in the upper layer, the
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode sets it the fixed access mode bits given in
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm ufile
|
|
|
|
(for files)
|
2006-12-02 19:35:56 +00:00
|
|
|
or
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm udir
|
|
|
|
(for directories)
|
2006-12-02 19:35:56 +00:00
|
|
|
option and the owner given in
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm udir
|
2006-12-02 19:35:56 +00:00
|
|
|
and
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm gid
|
|
|
|
options, instead of ones in the lower layer.
|
|
|
|
Note that in the
|
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode and when owner of the file or directory matches
|
|
|
|
one specified in
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm uid
|
2006-12-02 19:35:56 +00:00
|
|
|
option, only mode bits for the owner will be modified.
|
|
|
|
More specifically, the file mode bits in the upper layer will
|
|
|
|
be
|
2006-12-31 15:36:44 +00:00
|
|
|
(mode in the lower layer)
|
2006-12-02 19:35:56 +00:00
|
|
|
OR
|
2006-12-31 15:36:44 +00:00
|
|
|
(mode given in
|
|
|
|
.Cm ufile
|
|
|
|
AND 0700), and the ownership will be the same as one in the lower layer.
|
2006-12-02 19:35:56 +00:00
|
|
|
.Pp
|
|
|
|
The default values for
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm ufile , udir , uid ,
|
2006-12-02 19:35:56 +00:00
|
|
|
and
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm gid
|
2006-12-02 19:35:56 +00:00
|
|
|
are as follow:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2006-12-31 15:36:44 +00:00
|
|
|
If none of
|
|
|
|
.Cm ufile
|
2006-12-02 19:35:56 +00:00
|
|
|
and
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm udir
|
|
|
|
were specified, access mode bits in the mount point will be used.
|
2006-12-02 19:35:56 +00:00
|
|
|
.It
|
2006-12-31 15:36:44 +00:00
|
|
|
If none of
|
|
|
|
.Cm uid
|
2006-12-02 19:35:56 +00:00
|
|
|
and
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm gid
|
|
|
|
were specified, ownership in the mount point will be used.
|
2006-12-02 19:35:56 +00:00
|
|
|
.It
|
2006-12-31 15:36:44 +00:00
|
|
|
If one of
|
|
|
|
.Cm udir
|
2006-12-02 19:35:56 +00:00
|
|
|
or
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm ufile
|
|
|
|
is not specified, the value of the other option will be used.
|
2006-12-02 19:35:56 +00:00
|
|
|
.It
|
2006-12-31 15:36:44 +00:00
|
|
|
If one of
|
|
|
|
.Cm uid
|
2006-12-02 19:35:56 +00:00
|
|
|
or
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm gid
|
|
|
|
is not specified, the value of the other option will be used.
|
2006-12-02 19:35:56 +00:00
|
|
|
.El
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
The commands
|
|
|
|
.Bd -literal -offset indent
|
2006-12-02 19:35:56 +00:00
|
|
|
mount -t cd9660 -o ro /dev/cd0 /usr/src
|
|
|
|
mount -t unionfs -o noatime /var/obj /usr/src
|
1994-05-26 06:35:07 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
mount the CD-ROM drive
|
2006-12-02 19:35:56 +00:00
|
|
|
.Pa /dev/cd0
|
1994-05-26 06:35:07 +00:00
|
|
|
on
|
|
|
|
.Pa /usr/src
|
|
|
|
and then attaches
|
|
|
|
.Pa /var/obj
|
|
|
|
on top.
|
|
|
|
For most purposes the effect of this is to make the
|
|
|
|
source tree appear writable
|
2006-12-31 15:36:44 +00:00
|
|
|
even though it is stored on a CD-ROM.
|
|
|
|
The
|
|
|
|
.Fl o Cm noatime
|
2006-12-02 19:35:56 +00:00
|
|
|
option is useful to avoid unnecessary copying from the lower to the
|
|
|
|
upper layer.
|
|
|
|
.Pp
|
|
|
|
The commands
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
mount -t cd9660 -o ro /dev/cd0 /usr/src
|
|
|
|
chown 2020 /usr/src
|
|
|
|
mount -t unionfs -o noatime -o copymode=masquerade -o uid=builder \\
|
|
|
|
-o udir=755 -o ufile=644 /var/obj /usr/src
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
also mount the CD-ROM drive
|
|
|
|
.Pa /dev/cd0
|
|
|
|
on
|
|
|
|
.Pa /usr/src
|
|
|
|
and then attaches
|
|
|
|
.Pa /var/obj
|
2006-12-31 15:36:44 +00:00
|
|
|
on top.
|
|
|
|
Furthermore, the owner of all files and directories in
|
|
|
|
.Pa /usr/src
|
|
|
|
is a regular user with UID 2020
|
|
|
|
when seen from the upper layer.
|
|
|
|
Note that for the access mode bits,
|
2006-12-02 19:35:56 +00:00
|
|
|
ones in the lower layer
|
2006-12-31 15:36:44 +00:00
|
|
|
(on the CD-ROM, in this example)
|
2006-12-02 19:35:56 +00:00
|
|
|
are still used without change.
|
|
|
|
Thus, write privilege to the upper layer can be controlled
|
|
|
|
independently from access mode bits and ownership in the lower layer.
|
|
|
|
If a user does not have read privilege from the lower layer,
|
|
|
|
one cannot still read even when the upper layer is mounted by using
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm masquerade
|
2006-12-02 19:35:56 +00:00
|
|
|
mode.
|
1994-05-26 06:35:07 +00:00
|
|
|
.Pp
|
|
|
|
The command
|
|
|
|
.Bd -literal -offset indent
|
2006-12-02 19:35:56 +00:00
|
|
|
mount -t unionfs -o noatime -o below /sys $HOME/sys
|
1994-05-26 06:35:07 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
attaches the system source tree below the
|
|
|
|
.Pa sys
|
|
|
|
directory in the user's home directory.
|
|
|
|
This allows individual users to make private changes
|
|
|
|
to the source, and build new kernels, without those
|
|
|
|
changes becoming visible to other users.
|
|
|
|
Note that the files in the lower layer remain
|
|
|
|
accessible via
|
|
|
|
.Pa /sys .
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr intro 2 ,
|
|
|
|
.Xr mount 2 ,
|
|
|
|
.Xr unmount 2 ,
|
|
|
|
.Xr fstab 5 ,
|
|
|
|
.Xr mount 8 ,
|
2001-05-24 13:13:56 +00:00
|
|
|
.Xr mount_nullfs 8
|
2005-01-18 10:09:38 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Bx 4.4 .
|
2006-12-02 19:35:56 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Fl r
|
|
|
|
option for hiding the lower layer completely was removed in
|
|
|
|
.Fx 7.0
|
|
|
|
because this is identical to using
|
|
|
|
.Xr mount_nullfs 8 .
|
|
|
|
.Sh AUTHORS
|
2006-12-31 15:36:44 +00:00
|
|
|
.An -nosplit
|
2006-12-02 19:35:56 +00:00
|
|
|
In
|
|
|
|
.Fx 7.0 ,
|
2014-06-20 09:40:43 +00:00
|
|
|
.An Masanori OZAWA Aq Mt ozawa@ongs.co.jp
|
2006-12-02 19:35:56 +00:00
|
|
|
reimplemented handling of locking, whiteout, and file mode bits, and
|
2014-06-20 09:40:43 +00:00
|
|
|
.An Hiroki Sato Aq Mt hrs@FreeBSD.org
|
2006-12-02 19:35:56 +00:00
|
|
|
wrote about the changes in this manual page.
|
1994-05-26 06:35:07 +00:00
|
|
|
.Sh BUGS
|
2002-12-12 17:26:04 +00:00
|
|
|
THIS FILE SYSTEM TYPE IS NOT YET FULLY SUPPORTED (READ: IT DOESN'T WORK)
|
2004-07-02 21:45:06 +00:00
|
|
|
AND USING IT MAY, IN FACT, DESTROY DATA ON YOUR SYSTEM.
|
|
|
|
USE AT YOUR
|
|
|
|
OWN RISK.
|
|
|
|
BEWARE OF DOG.
|
|
|
|
SLIPPERY WHEN WET.
|
2010-09-21 08:25:00 +00:00
|
|
|
BATTERIES NOT INCLUDED.
|
2000-11-22 16:02:00 +00:00
|
|
|
.Pp
|
1998-12-22 11:52:10 +00:00
|
|
|
This code also needs an owner in order to be less dangerous - serious
|
2000-11-22 16:02:00 +00:00
|
|
|
hackers can apply by sending mail to
|
2014-06-20 09:40:43 +00:00
|
|
|
.Aq Mt freebsd-fs@FreeBSD.org
|
2000-11-22 16:02:00 +00:00
|
|
|
and announcing
|
1998-12-22 11:52:10 +00:00
|
|
|
their intent to take it over.
|
2000-11-22 16:02:00 +00:00
|
|
|
.Pp
|
2002-08-21 18:11:48 +00:00
|
|
|
Without whiteout support from the file system backing the upper layer,
|
1994-05-26 06:35:07 +00:00
|
|
|
there is no way that delete and rename operations on lower layer
|
|
|
|
objects can be done.
|
2010-09-05 04:58:16 +00:00
|
|
|
.Er EOPNOTSUPP
|
|
|
|
is returned for this kind of operations as generated by VOP_WHITEOUT()
|
2012-03-29 05:02:12 +00:00
|
|
|
along with any others which would make modifications to the lower
|
2010-09-05 04:58:16 +00:00
|
|
|
layer, such as
|
1994-05-26 06:35:07 +00:00
|
|
|
.Xr chmod 1 .
|
|
|
|
.Pp
|
|
|
|
Running
|
|
|
|
.Xr find 1
|
|
|
|
over a union tree has the side-effect of creating
|
|
|
|
a tree of shadow directories in the upper layer.
|
2006-12-02 19:35:56 +00:00
|
|
|
.Pp
|
|
|
|
The current implementation does not support copying extended attributes
|
|
|
|
for
|
|
|
|
.Xr acl 9 ,
|
|
|
|
.Xr mac 9 ,
|
2006-12-31 15:36:44 +00:00
|
|
|
or so on to the upper layer.
|
|
|
|
Note that this may be a security issue.
|
2006-12-02 19:35:56 +00:00
|
|
|
.Pp
|
|
|
|
A shadow directory, which is one automatically created in the upper
|
|
|
|
layer when it exists in the lower layer and does not exist in the
|
|
|
|
upper layer, is always created with the superuser privilege.
|
|
|
|
However, a file copied from the lower layer in the same way
|
2006-12-31 15:36:44 +00:00
|
|
|
is created by the user who accessed it.
|
|
|
|
Because of this,
|
2006-12-02 19:35:56 +00:00
|
|
|
if the user is not the superuser, even in
|
2006-12-31 15:36:44 +00:00
|
|
|
.Cm transparent
|
2006-12-02 19:35:56 +00:00
|
|
|
mode the access mode bits in the copied file in the upper layer
|
|
|
|
will not always be the same as ones in the lower layer.
|
|
|
|
This behavior should be fixed.
|