xfs
[Top] [All Lists]

Re: xfsdump, xfsrestore and SUID files

To: Dominik Epple <Dominik.Epple@xxxxxx>
Subject: Re: xfsdump, xfsrestore and SUID files
From: Steve Lord <lord@xxxxxxx>
Date: Fri, 11 May 2001 14:13:16 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Message from Dominik Epple <Dominik.Epple@gmx.de> of "Fri, 11 May 2001 18:17:35 +0200." <3AFC109F.E29D0581@gmx.de>
Sender: owner-linux-xfs@xxxxxxxxxxx
> Hi,
> 
> I just did a xfsdump/xfsrestore of a filesystem:
> 
> xfsdump -J -F -f /tmp/opt.xfsdump /opt
> [ ... shutdown of system, added new disk, mkfs.xfs etc... ]
> xfsrestore -f /tmp/opt.xfsdump -J .
> 
> All went fine except that SUID files of the source file system were no
> SUID files after the dump/restore cycle anymore.
> 
> I did not find any hints in the man pages about that. I guess it is a
> security feature, but how can i turn this off? I mean, I want the
> restored filesystem to be an exact copy of the source...
> 
> I dont think it is of importance, but let me note however that I am
> using lvm.
> 
> TIA, Dominik

Hmm, I am informed that restore should create the file, write the data
into it, and then restore the mode flags - including suid. A quick test
shows that this is the case, but that the suid bit is not coming back, using
strace it is not even getting set. I suspect the problem may be in the dump
phase not the restore phase.

Steve



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