GNU bug report logs - #12606
Make mv work better with SELinux.

Previous Next

Package: coreutils;

Reported by: Daniel J Walsh <dwalsh <at> redhat.com>

Date: Mon, 8 Oct 2012 19:24:01 UTC

Severity: normal

Tags: notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12606 in the body.
You can then email your comments to 12606 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#12606; Package coreutils. (Mon, 08 Oct 2012 19:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel J Walsh <dwalsh <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 08 Oct 2012 19:24:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel J Walsh <dwalsh <at> redhat.com>
To: bug-coreutils <at> gnu.org
Subject: Make mv work better with SELinux.
Date: Mon, 08 Oct 2012 15:19:14 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

One of if not the most common problem people hit with SELinux is the mv
command, which maintains the file context of the source destination.

mv /home/dwalsh/index.html /var/www/html/

This blows up on everybody and then the users have no idea why.

I was thinking about adding -Z (--restorecon) to mv and having it basically do a
internal restorecon on the destination.

Then we could suggest people who get burnt by this to:

alias mv="mv -Z"

In Fedora 18 we have greatly enhanced matchpathcon, by pre-compiling the
regex, so there should be very little slow down in doing this.

I will work on the patch, if people agree with the idea.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBzJzIACgkQrlYvE4MpobNG/wCeOYZTGihp2r/Om27JDYy756V9
mLUAoNX4oyg6wENjCjHgZWXACwkY3HEm
=sScn
-----END PGP SIGNATURE-----




Information forwarded to bug-coreutils <at> gnu.org:
bug#12606; Package coreutils. (Mon, 08 Oct 2012 19:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 12606 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Daniel J Walsh <dwalsh <at> redhat.com>
Cc: 12606 <at> debbugs.gnu.org
Subject: Re: bug#12606: Make mv work better with SELinux.
Date: Mon, 8 Oct 2012 13:57:17 -0600
tag 12606 + notabug
close 12606
thanks

Daniel J Walsh wrote:
> I will work on the patch, if people agree with the idea.

This would be a perfect topic for the discussion list.  Could we hold
the discussion there?  Until this because a trackable bug I am going
to go ahead and close the bug ticket.

Thanks!
Bob




Added tag(s) notabug. Request was from Bob Proulx <bob <at> proulx.com> to control <at> debbugs.gnu.org. (Mon, 08 Oct 2012 19:58:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12606 <at> debbugs.gnu.org and Daniel J Walsh <dwalsh <at> redhat.com> Request was from Bob Proulx <bob <at> proulx.com> to control <at> debbugs.gnu.org. (Mon, 08 Oct 2012 19:58:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Nov 2012 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.