Jump to content
  • -1

open a file in directory /proc/pid/.


Daisy123

Question

Posted

Hi. I am doing script with need access file /proc/pid/maps to get some information. I use this code

local pid = gg.getTargetInfo().pid
local file = string.format("%s%d%s", "/proc/",pid, "/maps")
local inp=io.open(file, 'r')

and when I execute script I got this error: io error: /proc/3811/maps:open failed: EPERM(Operation not permitted)

I run this script in root devices. Can you explain me why this can not work in root devices? And are there any solution? Thank you very much.

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.