mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [KERNEL 2.6.15]  All files have -rw-rw-rw- permission.
@ 2006-01-05 12:15 Komuro
  2006-01-06  3:17 ` Randy.Dunlap
  2006-01-06 12:04 ` Komuro
  0 siblings, 2 replies; 6+ messages in thread
From: Komuro @ 2006-01-05 12:15 UTC (permalink / raw)
  To: linux-kernel

Hello,

All files have -rw-rw-rw- permission.(kernel 2.6.15, 2.6.14)

for example,
-rw-rw-rw-  1 root root 65359 Jan  3 12:21 MAINTAINERS

Is this correct?

Best Regards
Komuro


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [KERNEL 2.6.15]  All files have -rw-rw-rw- permission.
  2006-01-05 12:15 [KERNEL 2.6.15] All files have -rw-rw-rw- permission Komuro
@ 2006-01-06  3:17 ` Randy.Dunlap
  2006-01-06  4:21   ` Bernd Eckenfels
  2006-01-06 12:04 ` Komuro
  1 sibling, 1 reply; 6+ messages in thread
From: Randy.Dunlap @ 2006-01-06  3:17 UTC (permalink / raw)
  To: Komuro; +Cc: linux-kernel

On Thu, 5 Jan 2006 21:15:11 +0900 (JST) Komuro wrote:

> Hello,
> 
> All files have -rw-rw-rw- permission.(kernel 2.6.15, 2.6.14)
> 
> for example,
> -rw-rw-rw-  1 root root 65359 Jan  3 12:21 MAINTAINERS
> 
> Is this correct?

Hi,
We (lkml) have been thru this before.
Don't untar the tarball as root and this won't happen.

---
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [KERNEL 2.6.15]  All files have -rw-rw-rw- permission.
  2006-01-06  3:17 ` Randy.Dunlap
@ 2006-01-06  4:21   ` Bernd Eckenfels
  0 siblings, 0 replies; 6+ messages in thread
From: Bernd Eckenfels @ 2006-01-06  4:21 UTC (permalink / raw)
  To: linux-kernel

Randy.Dunlap <rdunlap@xenotime.net> wrote:
> We (lkml) have been thru this before.
> Don't untar the tarball as root and this won't happen.

or use umask as it is suppsoed to be used with --no-same-permissions

Gruss
Bernd

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [KERNEL 2.6.15]  All files have -rw-rw-rw- permission.
  2006-01-05 12:15 [KERNEL 2.6.15] All files have -rw-rw-rw- permission Komuro
  2006-01-06  3:17 ` Randy.Dunlap
@ 2006-01-06 12:04 ` Komuro
  2006-01-07 23:30   ` Junio C Hamano
  2006-01-08  5:22   ` Komuro
  1 sibling, 2 replies; 6+ messages in thread
From: Komuro @ 2006-01-06 12:04 UTC (permalink / raw)
  To: linux-kernel

Hello,

>We (lkml) have been thru this before.
>Don't untar the tarball as root and this won't happen.
>

Thanks for your reply.

But, is there any reason to set -----w--w- bit
by default?

> tar tvjf linux-2.6.15.tar.bz2
>
>?rw------- git/git          52 1970-01-01 09:00:00 pax_global_header >unknown
 file type `g'
>drwxr-xr-x git/git           0 2006-01-03 12:21:10 linux-2.6.15/
>-rw-rw-rw- git/git         391 2006-01-03 12:21:10 linux-2.6.15/.gitignore
>-rw-rw-rw- git/git       18693 2006-01-03 12:21:10 linux-2.6.15/COPYING
>-rw-rw-rw- git/git       89582 2006-01-03 12:21:10 linux-2.6.15/CREDITS

Best Regards
Komuro


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [KERNEL 2.6.15]  All files have -rw-rw-rw- permission.
  2006-01-06 12:04 ` Komuro
@ 2006-01-07 23:30   ` Junio C Hamano
  2006-01-08  5:22   ` Komuro
  1 sibling, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2006-01-07 23:30 UTC (permalink / raw)
  To: Komuro; +Cc: linux-kernel

Komuro <komurojun-mbn@nifty.com> writes:

> But, is there any reason to set -----w--w- bit
> by default?

Yes.

Please do not extract the kernel tarball as the root user,
especially if you do not know how tar command works for root
user by default (hint: --no-same-permissions).

Setting g-w in the archive forces arbitrary policy on people who
work with umask 002 as a non-root user.  We can let that policy
to be controlled by user's umask by being lenient in the
tarball.  For the same reason, if somebody has umask 0, there is
no reason for us (as tarball creator) to impose o-w as a policy
on him either, hence git-tar-tree output has 0666 or 0777 modes.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [KERNEL 2.6.15]  All files have -rw-rw-rw- permission.
  2006-01-06 12:04 ` Komuro
  2006-01-07 23:30   ` Junio C Hamano
@ 2006-01-08  5:22   ` Komuro
  1 sibling, 0 replies; 6+ messages in thread
From: Komuro @ 2006-01-08  5:22 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: linux-kernel

Hello,

>> But, is there any reason to set -----w--w- bit
>> by default?
>
>Yes.
>
>Please do not extract the kernel tarball as the root user,
>especially if you do not know how tar command works for root
>user by default (hint: --no-same-permissions).
>
>Setting g-w in the archive forces arbitrary policy on people who
>work with umask 002 as a non-root user.  We can let that policy
>to be controlled by user's umask by being lenient in the
>tarball.  For the same reason, if somebody has umask 0, there is
>no reason for us (as tarball creator) to impose o-w as a policy
>on him either, hence git-tar-tree output has 0666 or 0777 modes.
>

O.K.

Thanks,
Komuro



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-08  5:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-05 12:15 [KERNEL 2.6.15] All files have -rw-rw-rw- permission Komuro
2006-01-06  3:17 ` Randy.Dunlap
2006-01-06  4:21   ` Bernd Eckenfels
2006-01-06 12:04 ` Komuro
2006-01-07 23:30   ` Junio C Hamano
2006-01-08  5:22   ` Komuro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®