Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ifconfig permission denied #5748

Closed
Mahroof313 opened this issue Aug 28, 2020 · 4 comments
Closed

Ifconfig permission denied #5748

Mahroof313 opened this issue Aug 28, 2020 · 4 comments
Labels
not-bug Issue is not a bug.

Comments

@Mahroof313
Copy link

I need one help that
Ifconfig command is not running in my phone it showing
Screenshot_20200828_080318

Warning: cannot open /proc/net/dev (Permission denied). Limited output.lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)rmnet0: flags=193<UP,RUNNING,NOARP> mtu 1400 inet 100.102.150.188 netmask 255.255.255.255 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)

@ghost
Copy link

ghost commented Aug 28, 2020

Modern Android OS versions restrict access to /proc/net. You need to root your device to use ifconfig now.

That's a won'tfix as Termux can't overcome the SELinux restrictions.

@ghost ghost closed this as completed Aug 28, 2020
@ghost ghost added not-bug Issue is not a bug. wontfix Issue won't be fixed. labels Aug 28, 2020
@Mahroof313
Copy link
Author

Mahroof313 commented Aug 28, 2020 via email

@ghost
Copy link

ghost commented Aug 28, 2020

Why it restricted. It have any problems?

Access to /proc/net was restricted because it allows any application to read the list of IPs/domains you visiting and send this data to third-parties. So that's a privacy hole and Android 10+ has fixed it.

@Mahroof313
Copy link
Author

Mahroof313 commented Aug 28, 2020 via email

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
@xtkoba xtkoba removed the wontfix Issue won't be fixed. label Oct 17, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
not-bug Issue is not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants