Skip to contentSkip to conversation

Too restrictive permissions on some files prevent non-root build (with KBUILD_OUTPUT) [bug 2669]

DISCUSSION Pascal Schmidt 2 participants 2 messages May 13, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

On Thu, 13 May 2004 15:30:14 +0200, you wrote in linux.kernel:

Quoted 4 lines

For 2.6.6 the files in question can be found by:
cd /sometempdir
tar xjf linux-2.6.6.tar.bz2
find linux-2.6.6 ! -perm -004 -exec ls -l {} \;

This can only be a problem when unpacking as root, otherwise all files are owned by the user running tar, anyway. I guess most people don't do their kernel work as root... and why should they?

The simple workaround is to unpack the tar archive as the user planning to run the compile.

Signature · 2 lines
Ciao,
Pascal
#2 lore raw
Quoted 8 lines · Pascal Schmidt

On Thu, 13 May 2004 15:30:14 +0200, you wrote in linux.kernel:

Quoted 4 lines

For 2.6.6 the files in question can be found by:
cd /sometempdir
tar xjf linux-2.6.6.tar.bz2
find linux-2.6.6 ! -perm -004 -exec ls -l {} \;

Quoted 7 lines

This can only be a problem when unpacking as root, otherwise all files are owned by the user running tar, anyway. I guess most people don't do their kernel work as root... and why should they?

The simple workaround is to unpack the tar archive as the user planning to run the compile.

Well, I guess you are right, but I prefer (and usually do) a single source tree in /usr/src/linux-2.6.6 as for the kurrent kernel and then other users (i.e. non root) compile with the KBUILD_OUTPUT in other directories.

Why?

Because I compile all my kernels on a single machine (but with distcc running on 4+ boxes) and then install it on the other machines.

Even if these file permissions are note a "real bug" there is no point in only some files being non-world readable (some in the Documentation/ as well).

Kalin.

Signature · 3 lines
||///_ o  *****************************
||//'_/>     WWW: http://ThinRope.net/
|||\/<" |||\\ ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^