SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Jim Meyering
I've merged the SELinux changes onto the trunk. For reference, this work is based on the patches from Fedora, as of about 6 months ago, but with some semantic changes. For example, I've removed the --lcontext and --scontext options that were specific to their version of ls. Since the new -Z opti

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Jim Meyering
Russell Coker <[EMAIL PROTECTED]> wrote: > On Friday 30 March 2007 21:18, Jim Meyering <[EMAIL PROTECTED]> wrote: >> Regarding the --context=C (-Z C) option that is now accepted by >> mkdir, mknod, mkfifo, and install, I am inclined to > > Currently mkdir, mknod, and mkfifo support a -m option to s

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Pádraig Brady
Jim Meyering wrote: > I've merged the SELinux changes onto the trunk. For reference, this > work is based on the patches from Fedora, as of about 6 months ago [snip] > Unlike with other SELinux-enabled coreutils, here, mv and cp do not > provide the "-Z context" option. It is not the job of suc

FYI: savannah cvs repository is currently not tracking git

2007-03-30 Thread Jim Meyering
The git-to-cvs "update" hook that was keeping the CVS repository in sync with the master git one was unable to deal with the non-linear deltas of today's big merge. If you rely on the savannah coreutils cvs repository, please consider switching to git. In the long run, we hope to set up a git-cvs

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Jim Meyering
Russell Coker <[EMAIL PROTECTED]> wrote: > On Friday 30 March 2007 23:13, Jim Meyering <[EMAIL PROTECTED]> wrote: >> What did you think of the proposal (in the link above) for >> >> fscon CTX mkdir /new/directory >> >> IMHO, it's not so much less "user friendly" than this equivalent: >> >>

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Andreas Schwab
Jim Meyering <[EMAIL PROTECTED]> writes: > Russell Coker <[EMAIL PROTECTED]> wrote: >> On Friday 30 March 2007 23:13, Jim Meyering <[EMAIL PROTECTED]> wrote: >>> What did you think of the proposal (in the link above) for >>> >>> fscon CTX mkdir /new/directory >>> >>> IMHO, it's not so much les

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Jim Meyering
Karl MacMillan <[EMAIL PROTECTED]> wrote: ... >> However, your example raises a good point: with mode-setting, we *do* >> have the option of selecting a default mode via the "umask" command. >> Currently, there is no analog to set the default SELinux file system >> context, and that is part of why

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Jim Meyering
Jim Meyering <[EMAIL PROTECTED]> wrote: > I've merged the SELinux changes onto the trunk. In case you're interested in trying it out, here's a snapshot including the new SELinux bits: http://meyering.net/cu/coreutils-6.9+.tar.gz http://meyering.net/cu/coreutils-6.9+.tar.gz.sig aka http://

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Russell Coker
On Friday 30 March 2007 21:18, Jim Meyering <[EMAIL PROTECTED]> wrote: > Regarding the --context=C (-Z C) option that is now accepted by > mkdir, mknod, mkfifo, and install, I am inclined to Currently mkdir, mknod, and mkfifo support a -m option to set the mode. Install has options to also set t

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Russell Coker
On Friday 30 March 2007 23:13, Jim Meyering <[EMAIL PROTECTED]> wrote: > What did you think of the proposal (in the link above) for > > fscon CTX mkdir /new/directory > > IMHO, it's not so much less "user friendly" than this equivalent: > > mkdir -C CTX /new/directory How about: umask what

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Karl MacMillan
On Fri, 2007-03-30 at 15:13 +0200, Jim Meyering wrote: > Russell Coker <[EMAIL PROTECTED]> wrote: > > On Friday 30 March 2007 21:18, Jim Meyering <[EMAIL PROTECTED]> wrote: > >> Regarding the --context=C (-Z C) option that is now accepted by > >> mkdir, mknod, mkfifo, and install, I am inclined to

chown - not like other Unixes.

2007-03-30 Thread Sam G
Hi a little new to Linux - but an old timer at Unix (incl. at&t, HP-UX, SCO, DG-UX, AIX, SUN-OS) in other unixes, any user can use chown - provided the file is owned by that user. (except for root, which can chown any file). I was wondering why the gnu chown doesn't have an option to behave li

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Karl MacMillan
On Fri, 2007-03-30 at 17:39 +0200, Jim Meyering wrote: > Russell Coker <[EMAIL PROTECTED]> wrote: > > On Friday 30 March 2007 23:13, Jim Meyering <[EMAIL PROTECTED]> wrote: > >> What did you think of the proposal (in the link above) for > >> > >> fscon CTX mkdir /new/directory > >> > >> IMHO, i

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Daniel J Walsh
Karl MacMillan wrote: On Fri, 2007-03-30 at 17:39 +0200, Jim Meyering wrote: Russell Coker <[EMAIL PROTECTED]> wrote: On Friday 30 March 2007 23:13, Jim Meyering <[EMAIL PROTECTED]> wrote: What did you think of the proposal (in the link above) for fscon CTX mkdir /new/direc

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Christopher J. PeBenito
On Fri, 2007-03-30 at 13:16 -0400, Karl MacMillan wrote: > On Fri, 2007-03-30 at 17:39 +0200, Jim Meyering wrote: > > Russell Coker <[EMAIL PROTECTED]> wrote: > > > On Friday 30 March 2007 23:13, Jim Meyering <[EMAIL PROTECTED]> wrote: > > >> What did you think of the proposal (in the link above) f

Re: SELinux for upstream coreutils, finally (RFC: does mkdir need -Z?)

2007-03-30 Thread Karl MacMillan
On Fri, 2007-03-30 at 19:53 +0200, Jim Meyering wrote: > Karl MacMillan <[EMAIL PROTECTED]> wrote: > ... > >> However, your example raises a good point: with mode-setting, we *do* > >> have the option of selecting a default mode via the "umask" command. > >> Currently, there is no analog to set the

Re: chown - not like other Unixes.

2007-03-30 Thread Brian Dessent
Sam G wrote: > I was wondering why the gnu chown doesn't have an option to behave > like other unixes, where the 'owner' of a file can chown. FAQ: http://www.gnu.org/software/coreutils/faq/#Why-can-only-root-chown-files_003f ___ Bug-coreutils mailing

Re: chown - not like other Unixes.

2007-03-30 Thread Andreas Schwab
Sam G <[EMAIL PROTECTED]> writes: > a little new to Linux - but an old timer at Unix > (incl. at&t, HP-UX, SCO, DG-UX, AIX, SUN-OS) > > in other unixes, any user can use chown - provided > the file is owned by that user. This is a property of the system, see the description of _POSIX_CHOWN_RESTRI

Re: FYI: savannah cvs repository is currently not tracking git

2007-03-30 Thread James Youngman
On 3/30/07, Jim Meyering <[EMAIL PROTECTED]> wrote: If you rely on the savannah coreutils cvs repository, please consider switching to git. In the long run, we hope to set up a git-cvsserver interface so we won't have to rely on the script that failed today. In the mean time, it may be a few da