Subject: kern/13878: Can't create a union mount as a non-root user; Operation not permitted
To: None <gnats-bugs@gnats.netbsd.org>
From: None <trevin@xmission.com>
List: netbsd-bugs
Date: 09/06/2001 08:17:44
>Number: 13878
>Category: kern
>Synopsis: Can't create a union mount as a non-root user; Operation not permitted
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 06 08:18:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Trevin Beattie
>Release: 1.5.1
>Organization:
>Environment:
NetBSD clyde.wh.ca.us 1.5.1 NetBSD 1.5.1 (GENERIC) #56: Mon Jul 2 15:54:23 CEST 2001 he@nsa.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
Under 1.4.2 I was able to do a reverse-mount of a source tree below my
own build directory using a command like "mount_union -b /usr/src/sys
$HOME/sys". On 1.5.1, attempting to do so fails with:
mount_union: /usr/src/sys on /home/trevin/sys: Operation not permitted
root can perform the mount, but then all directories created in the
upper layer would be owned by root, so I wouldn't be able to do a build.
>How-To-Repeat:
cd $HOME
mkdir sys
mount -t union -o -b /usr/src/sys $HOME/sys
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: