PostgreSQL FATAL: shmat(id=0) failed: Permission denied

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

PostgreSQL FATAL: shmat(id=0) failed: Permission denied

Postby giddyup » Mon Feb 24, 2014 10:16 am

Going from Gentoo hardened sources 3.12.5 to 3.13.1 I now get "FATAL: shmat(id=0) failed: Permission denied" when trying to start PostgreSQL. I believe this to be related to a change in grsecurity but am unsure. I've googled about, and cannot find a solid answer. Any help, guidance would be appreciated.

PostgreSQL starts successfully on: vanilla-3.12.5 + genpatches-3.12-6 + grsecurity-3.0-3.12.5-201312132204
PostgreSQL fails to start on: vanilla-3.13.3 + genpatches-3.13-6 + grsecurity-3.0-3.13.3-201402192252

Config for 3.13.1 here: https://www.brundagemgt.com/config-3.13.1
giddyup
 
Posts: 2
Joined: Fri Feb 21, 2014 3:12 pm

Re: PostgreSQL FATAL: shmat(id=0) failed: Permission denied

Postby spender » Tue Feb 25, 2014 9:18 am

Hi,

This has been fixed in the latest patch.

Thanks,
-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: PostgreSQL FATAL: shmat(id=0) failed: Permission denied

Postby giddyup » Tue Feb 25, 2014 11:15 am

Great thanks. I found the config item that was causing it, but since you have it fixed... seems like I don't need to say anything else :)

It was a change in the code behind CONFIG_GRKERNSEC_HARDEN_IPC for anyone interested. Brad can expound I guess.
giddyup
 
Posts: 2
Joined: Fri Feb 21, 2014 3:12 pm


Return to grsecurity support