Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129534 - media-libs/allegro-4.2.0-r1 --enable-vga and iopl()
Summary: media-libs/allegro-4.2.0-r1 --enable-vga and iopl()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-10 15:09 UTC by Alar Kvell
Modified: 2007-02-02 20:26 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 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