简体   繁体   中英

Is it possible to access debugs using python without sudo?

I have an application in the user space that needs to access debugfs.

How can I do it without running the application using sudo?

Thanks, Erez

It's possible, but someone with root-type access will have had to set things up to allow it...

FromDebugFS in the Linux Kernel Documentation:

Debugfs is typically mounted with a command like:

 mount -t debugfs none /sys/kernel/debug

(Or an equivalent /etc/fstab line). The debugfs root directory is accessible only to the root user by default. To change access to the tree the “uid”, “gid” and “mode” mount options can be used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM