You are not logged in.

#1 2018-09-20 02:17:09

super_trash
Banned
Registered: 2018-07-04
Posts: 50

error when reading /proc/28850/stack: operation not permitted

I got this error when trying to run a command in a zsh script that would check /proc/$var/stack in a subshell

$(</proc/$var/stack) = *tty_read*

But seem I don't have permission to read on /proc. What should I do to have it run probably? Meanwhile I'm superuser in the system. I doubt that I have to modify kernel parameter about audit or something to lose the rope.

Last edited by super_trash (2018-09-20 02:18:15)

Offline

#2 2018-09-20 02:22:50

super_trash
Banned
Registered: 2018-07-04
Posts: 50

Re: error when reading /proc/28850/stack: operation not permitted

Passing kernel parameter "audit=0" to /boot/loader/entries/arch.conf doesn't work.

Offline

#3 2018-09-20 06:57:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,840

Re: error when reading /proc/28850/stack: operation not permitted

Please do not bump, but edit your posts.

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

You can access the stack as the PID owning user afterwards.

And remove the "audit=0" token again.

Offline

Board footer

Powered by FluxBB