Jump to content

[SOLVED] Linux-grsec, Pax, and related


Amarildo
 Share

Recommended Posts

Hello,

I'm running Arch Linux with hardened GRSec Kernel, with softmode set to 0.

Whenever I try to start the game it simply "bugs" and tells me that JavaScript is out of memory. If "kernel.pax.softmode" is set to "1" then the game runs normally because all mitigations are off.

Here's an image for reference: https://i.imgur.com/Siiukcs.png

I set up Pax exceptions for all the files related to 0ad that I could find, including:

/usr/bin/0ad

/usr/lib/0ad/*

/usr/lib64/0ad/*

/usr/share/0ad/*

Note: "*" means all the files in those folders are set with "pemrs" exceptions, which means all mitigations are off for them, with the following command:

setfattr -n user.pax.flags -v "pemrs" /file-locations

Obviously there must be other files that are not executing properly, so here I am asking if that is actually the case and if so, where I can find these files.

Here is the Terminal log:

[amarildo@amarildo ~]$ 0ad
Cache: 400 (total: 3952) MiB
TIMER| InitVfs: 2.31242 ms
TIMER| CONFIG_Init: 2.30964 ms
Sound: AlcInit success, using OpenAL Soft
TIMER| shutdown ConfigDB: 1.149 us
TIMER| resource modules: 2.866 ms
TIMER TOTALS (9 clients)
-----------------------------------------------------
tc_dds_transform: 0 c (0x)
tc_png_decode: 0 c (0x)
tc_pool_alloc: 39.817 kc (2x)
tc_transform: 0 c (0x)
tc_plain_transform: 0 c (0x)
tc_ShaderGLSLLink: 0 c (0x)
tc_ShaderGLSLCompile: 0 c (0x)
tc_ShaderValidation: 0 c (0x)
xml_validation: 0 c (0x)
-----------------------------------------------------
TIMER| shutdown misc: 412.783 us
Cache: 400 (total: 3952) MiB
TIMER| InitVfs: 183.334 ms
TIMER| CONFIG_Init: 2.29167 ms
Sound: AlcInit success, using OpenAL Soft
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ERROR: JavaScript error: out of memory
TIMER| RunHardwareDetection: 25.9649 ms
TIMER| write_sys_info: 17.2546 ms
ERROR: JavaScript error: out of memory
ERROR: LoadGlobalScripts: Failed to load script globalscripts/Math.js
TIMER| InitRenderer: 3.868 ms
ERROR: JavaScript error: out of memory
TIMER| ps_console: 5.15194 ms
TIMER| ps_lang_hotkeys: 1.61711 ms
ERROR: JavaScript error: out of memory
ERROR: LoadGlobalScripts: Failed to load script globalscripts/Math.js
TIMER| common/modern/setup.xml: 268.805 us
TIMER| common/modern/styles.xml: 198.136 us
TIMER| common/modern/sprites.xml: 2.47045 ms
TIMER| common/setup.xml: 492.404 us
TIMER| common/sprite1.xml: 1.88606 ms
TIMER| common/styles.xml: 55.554 us
TIMER| common/common_sprites.xml: 1.97108 ms
TIMER| common/common_styles.xml: 215.404 us
ERROR: JavaScript error: out of memory
ERROR: JavaScript error: out of memory
TIMER| common/init.xml: 1.72902 ms
TIMER| pregame/sprites.xml: 398.12 us
TIMER| pregame/styles.xml: 44.043 us
ERROR: JavaScript error: out of memory
TIMER| pregame/mainmenu.xml: 9.90071 ms
TIMER| common/global.xml: 621.996 us
ERROR: GUI page 'page_pregame.xml': Failed to call init() function
ERROR: JavaScript error: out of memory
sys_cursor_create: using Xcursor to create 32 x 32 cursor
^CTIMER| shutdown TexMan: 2.844 us
TIMER| shutdown Renderer: 288.817 us
TIMER| shutdown SDL: 8.23942 ms
TIMER| shutdown UserReporter: 349.092 us
TIMER| shutdown ConfigDB: 0.326 us
TIMER| resource modules: 47.3564 ms
TIMER TOTALS (0 clients)
-----------------------------------------------------
-----------------------------------------------------
TIMER| shutdown misc: 333.58 us
[amarildo@amarildo ~]$

Regards,

Amarildo

EDIT: Looking at the file list for 0ad I noticed there is a "pyrogenesis" file I didn't flag for exception. I flagged it with "PEmRS" and now the game works fine!

Edited by Amarildo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...