Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 129534

Summary: media-libs/allegro-4.2.0-r1 --enable-vga and iopl()
Product: Gentoo Linux Reporter: Alar Kvell <alar>
Component: [OLD] LibraryAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alar Kvell 2006-04-10 15:09:14 UTC
I emerged allegro with all graphical stuff disabled:
[ebuild   R   ] media-libs/allegro-4.2.0-r1  -X -alsa -arts -doc -esd -fbcon +mmx -oss +sse -static -svga -tetex

I have hardened-sources (2.4.32-hardened-r1), with Grsecurity, configured with "Disable privileged I/O" option:
CONFIG_GRKERNSEC_IO=y

Using allegro_init() in my program produces the following message in my system logs:
Apr 10 22:38:46 server grsec: From 217.159.165.139: denied use of iopl() by /home/alar/testapp[testapp:16731] uid/euid:1000/1000 gid/egid:100/100, parent /bin/bash[bash:21687] uid/euid:1000/1000 gid/egid:100/100

This happens because allegro is always compiled with --enable-vga (even when all graphical USE flags are disabled) and allegro's VGA portion uses iopl() for some reason (in linux/lsystem.c and unix/uptimer.c files). Recompiling allegro with --disable-vga solves this issue - no more warnings about iopl() calls.

So, why is allegro always compiled with --enable-vga, even when I don't want any graphical stuff in allegro and disable all such USE flags?
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2007-02-02 20:26:58 UTC
Fixed in 4.2.1