Page 1 of 1

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

PostPosted: Mon Feb 24, 2014 10:16 am
by giddyup
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

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

PostPosted: Tue Feb 25, 2014 9:18 am
by spender
Hi,

This has been fixed in the latest patch.

Thanks,
-Brad

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

PostPosted: Tue Feb 25, 2014 11:15 am
by giddyup
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.