xfs
[Top] [All Lists]

Re: [Bug 256] New: Strange owner change using fakeroot

To: linux-xfs@xxxxxxxxxxx
Subject: Re: [Bug 256] New: Strange owner change using fakeroot
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Fri, 27 Jun 2003 03:05:29 -0800
In-reply-to: <200306271045.h5RAjbDf030315@xxxxxxxxxxx>
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <200306271045.h5RAjbDf030315@xxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Fri, Jun 27, 2003 at 03:45:37AM -0700, bugzilla-daemon@xxxxxxxxxxx wrote:
> http://oss.sgi.com/bugzilla/show_bug.cgi?id=256
> 
>            Summary: Strange owner change using fakeroot
>            Product: Linux XFS
>            Version: unspecified
>           Platform: All
>         OS/Version: Linux
>             Status: NEW
>           Severity: major
>           Priority: High
>          Component: XFS kernel code
>         AssignedTo: xfs-master@xxxxxxxxxxx
>         ReportedBy: duck@xxxxxxxxxxxx
> 
> 
> I'm using kernel 2.4.21 with XFS patch ck3 from Con Kolivas
> (http://members.optusnet.com.au/ckolivas/kernel/).
> I'm packaging some softwares for the Debian distribution.
> As it is cleaner and more secure, i am using fakeroot to simulate root
> permissions over my build directory.
> So i am using a normal user, and the build directory and ALL the files and
> subdirectories inside are owned by this user.
> At the end of the packaging process, i see an error "permission denied" which
> only happen when building on my xfs partition.
> Looking for explanation, i found files previously owned by the normal user now
> owned by root !!!
> It happens either when doing su or when directly login with the normal user 
> account.

it appears the default for the fs/xfs/restrict_chown sysctl is 0 in
2.4.21 split patches.

this is wrong.

for a quick workaround run:

sysctl -w fs/xfs/restrict_chown=1

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpll6Dq9RcwI.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>