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?
Fixed in 4.2.1