gnuroot
gnuroot copied to clipboard
Knox problem
On my Samsung galaxy note 10.1 (P605) gnuroot is getting blocked by knox, accused of trying to access system without permission (during apt-get, and after trying to ping - here I get message: setuid: Permission denied)
This is not a knox issue. Knox errors are different and will show up as pop-ups. Does apt-get work in general when running as fake root? What specifically doesn't work with apt-get (please provide command attempted)? As for ping, I will look into this one. Btw.. most android devices have a built in ping but, of course, it would be nice to have the standard version of ping that is part of your chroot work.
@corbinlc, it is not possible to get ping working under GNURoot because it requires privileges to forge "low-level" network packets. The Linux kernel does not allow ptraced programs to raise their privileges for security reasons, unless the ptracer (PRoot) is executed as root (for real).
When I start wheezyx, I get knox alert "GNURoot attempted to access system on your device without authorisation. This attempt has been blocked.". Shell starts and i am logged in as (fake)root. Then I try "apt-get update", knox sends the same alert, and apt-get tries to connect servers, but can't resolve name in dns (probably access to network is blocked - it waits till timeout).
It turned out that knox alerts and dns problems are not connected. By default resolv.conf is set to google dns, but in my network external dnses are blocked. I should have checked it in the beginning, but I assumed that it uses the same dns as android, my mistake :)
Is there a solution? I am using th same model and encountered the same problem
Not exactly the same, I don't get permission problems, I just cannot connect
As for "By default resolv.conf is set to google dns" I've been using GNUroot Debian, and I had the impression my network's configured DNS was used until I upgraded GNUroot Debian recently.
Perhaps, I don't remember correctly the previous DNS settings though...
192.168.100.3 is Samsung galaxy s8+ #protected with #KNOX 192.168.100.6 is an android device owned by TECNO company # not KNOX protected
i recently was trying device configurations and security practices, on the above two images, compare the router configuration and the cmd PING request, it appears that samsung devices that are protected by KNOX do not accept PINGs from netwoked devices in the same network, it might therefore be protection from samsung knox as the other android device i was pinging returned normal string packets and the TTL(Time To Live) from the packet hops