Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68699 - gcc-config should enforce file permissions, not inherit from umask
Summary: gcc-config should enforce file permissions, not inherit from umask
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 68640 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-24 06:28 UTC by Elan Ruusamäe
Modified: 2004-12-06 20:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elan Ruusamäe 2004-10-24 06:28:38 UTC
# l `epm -ql gcc-config `
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /lib/cpp*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/c++*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/cc*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/cpp*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/g++*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/gcc*
-rwxr-xr-x  1 root root  10K Oct 24 16:19 /usr/bin/gcc-config*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/i686-pc-linux-gnu-c++*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/i686-pc-linux-gnu-g++*
-rwxr-x---  1 root root 7.4K Oct 24 16:19 /usr/bin/i686-pc-linux-gnu-gcc*
-rwxr-xr-x  1 root root 7.4K Oct 24 16:19 /usr/lib/gcc-config/wrapper*


Reproducible: Always
Steps to Reproduce:
1. echo "umask 7" >> /etc/profile
2. emerge gcc-config
3. epm -ql gcc-config | xargs ls -l
Actual Results:  
gcc-config programs were inaccessible for system users. 

Expected Results:  
gcc-config binaries being world executable. 

# emerge info 
Portage 2.0.51-r2 (default-linux/x86/2004.2, gcc-3.3.4, 
glibc-2.3.3.20040420-r2, 2.4.22-1.2115.nptlsmp i686) 
================================================================= 
System uname: 2.4.22-1.2115.nptlsmp i686 Intel(R) Xeon(TM) CPU 2.80GHz 
Gentoo Base System version 1.4.16 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.14.90.0.8-r1 
Headers:  sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe 
-fomit-frame-pointer -ffast-math" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe 
-fomit-frame-pointer -ffast-math" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs buildpkg ccache distcc distlocks noinfo sandbox sfperms 
userpriv usersandbox" 
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles 
http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.linux.no/ 
ftp://gentoo.linux.no/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/" 
MAKEOPTS="-j22" 
PKGDIR="/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/gentoo/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="X alsa apache2 apm arts artswrappersuid avi bitmap-fonts chroot crypt 
cups dga directfb divx4linux dvd encode fam flac foomaticdb ggi gif gphoto2 
gpm gstreamer gtk2 imagemagick imlib jpeg kde libg++ libwww lirc mad maildir 
memlimit mmx mng motif mozilla mpeg ncurses oggvorbis opengl oss pam perl png 
pthreads qt quicktime samba sdl slang speex spell sse ssl svg tiff truetype 
wmf x86 xinerama xml xml2 xprint xv xvid zlib video_cards_rage128 linguas_et"
Comment 1 SpanKY gentoo-dev 2004-10-25 19:51:01 UTC
fixed in 1.3.7-r1
Comment 2 SpanKY gentoo-dev 2004-12-06 20:21:36 UTC
*** Bug 68640 has been marked as a duplicate of this bug. ***