Running strace

3 posts / 0 new
Last post
#1 Tue, 2015-12-01 04:26
smebberson
  • smebberson's picture
  • Offline
  • Last seen: 2 years 4 months ago
  • Joined: 2015-10-01

I've been having a few problems with a tool I use Consul, receiving a bunch of signals which I don't think it should be. I tried to use strace to debug this and listen in on the signals it is actually receiving but I haven't been able to.

I keep getting the following error from my strace command:

strace: test_ptrace_setoptions_for_all: PTRACE_TRACEME doesn't work: Permission denied
strace: test_ptrace_setoptions_for_all: unexpected exit status 1

I tried to add the following into /etc/sysctl.d/01-alpine.conf, but it hasn't changed anything:

kernel.grsecurity.harden_ptrace = 0
kernel.grsecurity.ptrace_readexec = 0

Is there anything else I can do to get strace running on Alpine Linux?

Tue, 2015-12-01 04:28
smebberson
  • smebberson's picture
  • Offline
  • Last seen: 2 years 4 months ago
  • Joined: 2015-10-01

A couple of other points to note:

- I'm running this inside Docker
- The Consul process is running as the consul user

Sat, 2016-01-30 17:40
commandline.be
  • commandline.be's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2016-01-30

Did you validate this by output on dmesg or paxctl ?

Log in or register to post comments