[solved] Docker and grsecurity on raspberry pi

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

[solved] Docker and grsecurity on raspberry pi

Postby semitom » Mon Jul 20, 2015 2:42 pm

Hi there,

I patched and compiled my own grsecurity kernel on the raspberry pi 2. When testing, everything works fine, except docker. When I try to start it I get a:
Code: Select all
Killed (core dumped)

When inspecting further, I see in the kernel logs that the error comes from PAX:
Code: Select all
Jul 20 19:03:46 rPi kernel: PAX: From 192.168.1.37: execution attempt in: (null), 00000000-00000000 00000000
Jul 20 19:03:46 rPi kernel: PAX: terminating task: /usr/bin/docker(docker):720, uid/euid: 1000/1000, PC: ffff0fc0, SP: 76bc9f1c
Jul 20 19:03:46 rPi kernel: PAX: bytes at PC: ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
Jul 20 19:03:46 rPi kernel: PAX: bytes at SP-4: ffffffff 000527e8 00056610 76bc9f38 00000001 00000002 76bc9f74 00003039 00000001 60cbf8d0 76bc9f4c 000139d8 00800000 00000000 00000000 00000000 00001000 00000000 00000000 00000000 00000000

Since I am still learning about both grsecurity and docker, I am really not sure what can be the cause of this. Is there any specific configuration that needs to be done for using docker? Or is there another way to solve the problem?

Thanks in advance for any advice.

OS: ArchLinux armv7h
Current grsec/pax kernel config: http://pastebin.com/SgpPu9nG
Last edited by semitom on Fri Jul 24, 2015 10:23 am, edited 1 time in total.
semitom
 
Posts: 2
Joined: Mon Jul 20, 2015 1:57 pm

Re: Docker and grsecurity on raspberry pi

Postby spender » Thu Jul 23, 2015 6:17 pm

This is the exact same issue as in the following post:
viewtopic.php?f=3&t=4052

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

Re: Docker and grsecurity on raspberry pi

Postby semitom » Fri Jul 24, 2015 10:22 am

Thanks a lot for digging that thread up. I got it working now.
semitom
 
Posts: 2
Joined: Mon Jul 20, 2015 1:57 pm


Return to grsecurity support