Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492630 - Kernel >=3.10.17 - wrong file/directory permissions in /usr/src
Summary: Kernel >=3.10.17 - wrong file/directory permissions in /usr/src
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-26 18:33 UTC by Toni Ballesta
Modified: 2013-11-28 21:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gentoo-sources-3.10.17 error (file_492630.txt,7.20 KB, text/plain)
2013-11-28 17:42 UTC, Toni Ballesta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Ballesta 2013-11-26 18:33:45 UTC
The Other bits aren't set on some directories/files, and emerging modules for the newest kernel like nvidia or virtualbox is impossible, due to not found the needed path/file.

Only resetting all the kernel tree to read for others, the problem is solved.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-27 13:24:35 UTC
1) Please post your `emerge --info' output in a comment.
2) Please show some examples of the wrong file permissions in the kernel sources' directory.
Comment 2 Toni Ballesta 2013-11-28 17:42:27 UTC
Created attachment 364142 [details]
gentoo-sources-3.10.17 error
Comment 3 Toni Ballesta 2013-11-28 17:50:27 UTC
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.15-r3, 3.10.20-gentoo x86_64)
=================================================================
System uname: Linux-3.10.20-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:     4054048 total,   1007620 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of tree: Tue, 26 Nov 2013 07:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer -Wall"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://91.121.125.139/gentoo-distfiles/ http://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aacplus aalib acl acpi ads aiglx alac alsa amd64 apache2 apng audacious automount berkdb bzip2 cairo caps cdda cddax cddb cdr cgi cli cracklib crypt cups curl cxx dbus declarative device-mapper directfb dri dvb dvd dvdr encode examples exif extras faac fbcon ffmpeg flac fortran freerdp ftp fuse gd gdbm geoip gif gnutls gphoto2 gpm gtk gudev hddtemp hwdb iconv id3tag ipv6 jpeg jpeg2k kdrive kerberos krb5 lame ldap libcanberra libmad libnotify libsamplerate lm_sensors lua lzma lzo mad matroska md5sum mdnsresponder-compat midi mikmod minizip mjpeg mmx mmxext mng mod modplug modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nptl nsplugin ntfs odbc ogg oggvorbis openal opengl openmp pam pango pcre pdf php php5 png postgres postgresql ppds python qt3support quicktime quota rdesktop rdp readline reiserfs samba scanner scsi sdl sensord server session shout slp sndfile snmp soap sqlite sse sse2 ssh ssl static-libs subtitles svg syslog system-libvncserver tcl tcpd theora threads thunar tidy tiff timidity tk toolbar truetype udev udisks unicode usb v4l v4l2 vboxwebsrv vcd vcdinfo vcdx virtualbox vnc vorbis wavpack winbind wma x264 xcomposite xend xinerama xml xmlreader xmlwriter xrandr xsl xvid zip zlib" ABI_X86="64" ALSA_CARDS="emu10k1 ice1712" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="panasonic" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LINGUAS="es es_ES ca ca_ES" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Toni Ballesta 2013-11-28 18:00:32 UTC
On ">=3.10.17", "generated" and some other files is badly:

include # ls -l
total 20
drwxr-xr-x 7 root root 12288 2013-11-27 15:53 asm
drwxr-x--- 4 root root  4096 2013-11-27 15:54 generated
drwxr-xr-x 3 root root  4096 2013-11-27 15:53 uapi

generated # ls -lR
.:
total 8
drwxr-x--- 2 root root 4096 2013-11-28 18:15 asm
drwxr-x--- 3 root root 4096 2013-11-27 15:54 uapi

./asm:
total 60
-rw-r----- 1 root root    32 2013-11-27 15:54 clkdev.h
-rw-r----- 1 root root 16943 2013-11-27 15:54 syscalls_32.h
-rw-r----- 1 root root 17123 2013-11-27 15:54 syscalls_64.h
-rw-r----- 1 root root 10978 2013-11-27 15:54 unistd_32_ia32.h
-rw-r----- 1 root root  1102 2013-11-27 15:54 unistd_64_x32.h

./uapi:
total 4
drwxr-x--- 2 root root 4096 2013-11-28 18:15 asm

./uapi/asm:
total 40
-rw-r----- 1 root root  9228 2013-11-27 15:54 unistd_32.h
-rw-r----- 1 root root  8368 2013-11-27 15:54 unistd_64.h
-rw-r----- 1 root root 14723 2013-11-27 15:54 unistd_x32.h

----------------------

On "<=3.10.16" (on this case, the 3.10.7-r1) is ok:

include # ls -l
total 20
drwxr-xr-x 7 root root 12288 2013-11-28 18:25 asm
drwxr-xr-x 4 root root  4096 2013-11-28 18:28 generated
drwxr-xr-x 3 root root  4096 2013-11-28 18:25 uapi
----------------------

The drivers don't compile ok if it need sources.
Comment 5 Toni Ballesta 2013-11-28 21:45:19 UTC
Ooooohhh sorryyyyy........

MY Problem: I take the errors with sudo command from user. I unmerge the kernel, remove all files, rebuild and compile directly with root and NO ERRORS!! Using su command and NO ERRORS too.

Sorry.