Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76959 - Access violation on emerge checkpolicy-1.16
Summary: Access violation on emerge checkpolicy-1.16
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 15:38 UTC by Makurin Roman
Modified: 2009-02-23 19:59 UTC (History)
1 user (show)

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 Makurin Roman 2005-01-06 15:38:31 UTC
When tryint to emerge checkpolicy I get ACCESS VIOLATION error

Reproducible: Always
Steps to Reproduce:
1.Read how to convert existent installation to Selinux
2.emerge checkpolicy
3.Error

Actual Results:  
My error: 
lex.yy.c:2028: warning: 'yyunput' defined but not used 
cc -o genpolusers users.tab.o lex.users.o queue.o genpolusers.o 
-lfl /usr/lib/libsepol.a 
cc -o checkpolicy y.tab.o lex.yy.o queue.o checkpolicy.o 
-lfl /usr/lib/libsepol.a 
>>> Test phase [not enabled]: sys-apps/checkpolicy-1.16 
 
>>> Install checkpolicy-1.16 
into /mnt/share1/gentoo/tmp/portage/checkpolicy-1.16/image/ category sys-apps 
mkdir -p /mnt/share1/gentoo/tmp/portage/checkpolicy-1.16/image//usr/bin 
mkdir -p /usr/athena/man/man8 
ACCESS DENIED  mkdir:     /usr/athena/man 
mkdir: cannot create directory `/usr/athena/man': Permission denied 
make: [install] Error 1 (ignored) 
install -m 755 checkpolicy 
genpolusers  /mnt/share1/gentoo/tmp/portage/checkpolicy-1.16/image//usr/bin 
install -m 644 checkpolicy.8 /usr/athena/man/man8 
ACCESS DENIED  open_wr:   /usr/athena/man/man8 
install: cannot create regular file `/usr/athena/man/man8': Permission denied 
make: *** [install] Error 1 
man: 
prepallstrip: 
strip: 
strip: 
   usr/bin/genpolusers 
   usr/bin/checkpolicy 
>>> Completed installing 
into /mnt/share1/gentoo/tmp/portage/checkpolicy-1.16/image/ 
 
--------------------------- ACCESS VIOLATION SUMMARY 
--------------------------- 
LOG FILE = "/tmp/sandbox-sys-apps_-_checkpolicy-1.16-24100.log" 
 
mkdir:     /usr/athena/man 
open_wr:   /usr/athena/man/man8 
-------------------------------------------------------------------------------- 
 

Expected Results:  
emerge info:   
!!! SELinux not loaded: SELinux is not enabled.  
Portage 2.0.51-r3 (selinux/2004.1/x86, gcc-3.4.1, glibc-2.3.4.20040808-r1,  
2.6.10-gentoo-r2selinux i686)  
=================================================================  
System uname: 2.6.10-gentoo-r2selinux i686 Pentium III (Coppermine)  
Gentoo Base System version 1.6.8  
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)  
[disabled]  
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.15.90.0.1.1-r3  
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1  
Libtools: sys-devel/libtool-1.5.2-r7  
ACCEPT_KEYWORDS="x86 ~x86"  
AUTOCLEAN="yes"  
CFLAGS="-march=pentium3 -O2 -pipe -mfpmath=sse,387 -frename-registers -mmmx  
-msse"  
CHOST="i686-pc-linux-gnu"  
COMPILER=""  
CONFIG_PROTECT="/etc /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/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"  
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/default /etc/gconf /etc/sound /etc/terminfo /etc/xinetd.d /etc/env.d"  
CXXFLAGS="-march=pentium3 -O2 -pipe -mfpmath=sse,387 -frename-registers -mmmx  
-msse"  
DISTDIR="/mnt/share1/gentoo/distfiles"  
FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages sandbox  
sfperms strict userpriv usersandbox"  
GENTOO_MIRRORS="http://mirror.gentoo.ru/pub/mirror/gentoo/  
ftp://mirror.gentoo.ru/pub/mirror/gentoo/ ftp://gentoo.inode.at/source/  
http://gd.tuwien.ac.at/opsys/linux/gentoo/  
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"  
MAKEOPTS="-j2"  
PKGDIR="/mnt/share1/gentoo/packages"  
PORTAGE_TMPDIR="/mnt/share1/gentoo/tmp"  
PORTDIR="/usr/portage"  
PORTDIR_OVERLAY="/mnt/share1/gentoo/portage/misc /mnt/share1/gentoo/portage/foreign"  
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"  
USE="GAPING_SECURITY_HOLE S3TC X X509 Xaw3d aac aalib aavm accessibility acpi  
acpi4linux activefilter alsa ansi apache2 arts atm auctex audiofile avi  
bash-completion bdf beepmp berkdb bitmap-fonts blender-game bootspla bzip2 c++  
cap cdparanoia cdr chroot codecs crypt cscope cups curl dedicated dga dhcp  
divx4linux dlopen dmx doc dv dvb dvd dvdr erandom exif ext-png ext-zlib  
extensions extlib faac faad fam fastcgi fb fbcon ffmpegflac fmod font-server  
fpx frascend freetype frlargefiles frxp fwdzone gcj gcl gd gdbm gif gimpprint  
ginac glep glut gmp gphoto2 gpm graphviz iconv icq idea imagemagick imap  
innkeywords innodb inntaggedhash ipv6 ithreads jabber java javascript jbig jce  
jikes jpeg junit kde kerberos krb4 ladcca lcms ldap libsamplerate live  
lufsusermount lzw-tiff mad maildir mailwrapper maps mbox mikmod mmap mmx mng  
motif mozdevelop moznoirc moznomail mozsvg mozxmlterm mpeg4 mpi mppe-mppc msn  
multipleip music mysql nagios-dns nagios-ntp nagios-ping nagios-s ncurses  
network nis nls nntp nocd nowin nptl ntlm nvidia oav objc oggvorbis ooo-kde  
opengl operanom2 oss pam parse-clocks pcap pcre pdflib perl pg-hier  
pg-intdatetime pg-vacuumdelay php pic pie plotutils png pnp posix postgres  
povray pthreads python qhull qt readline rogue samba sasl scanner sdk sdl  
selinux sftplogging silc silverxp skey slang slp smartcard sndfile snmp soap  
sockets socks5 sounds sox speedo speex spl sqlite src sse ssl stencil-buffer  
stroke svg sysvipc tcpd tetex theora threads tidy tiff tools transparent-proxy  
truetype-fonts type1-fonts unicode usb vda vhosts videos vim-with-x virus-scan  
wifi wmf wsconvert x86 xatrix xfs xine xml xml2 xmlrpc xpm xprint xrandr xsl  
xvid xvmc yp yv12 zlib linguas_ru"
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2005-01-06 16:53:39 UTC
You must have MANDIR in your environment, as /usr/athena/man doesn't even exist in the ebuild.  The variable is overriding the setting in the Makefile.  unset MANDIR and try again.
Comment 2 Chris PeBenito (RETIRED) gentoo-dev 2005-01-30 23:10:48 UTC
I believe this is invalid but need more info.
Comment 3 Danny Milosavljevic 2009-02-23 19:58:43 UTC
I have the same problem - and indeed, MANDIR is set to "/usr/athena/man" by 
file "/etc/env.d/02kth-krb" in package "app-crypt/kth-krb-1.2.2-r2".

Comment 4 Danny Milosavljevic 2009-02-23 19:59:52 UTC
*  app-crypt/kth-krb
      Latest version installed: 1.2.2-r2
      Homepage:      http://www.pdc.kth.se/kth-krb/
      Description:   Kerberos 4 implementation from KTH
      License:       as-is

doesn't seem to exist anymore...