What are the permissions on &#x2F;proc&#x2F;sunxi_debug&#x2F;sunxi_debug?<p>Anyone know?<p>This could be locked down so that, say, only processes which are members of a certain group can open a file descriptor to this proc entry.<p>This is a lot of unnecessary effort to implement something that can be obtained with a simple &#x2F;bin&#x2F;rootmydevice executable that is chmod u+s.  (Though it is somewhat more streamlined: no intervening process execution is required).<p>Which, in turn, is a lot of effort to reinvent sudo.<p>(But of course, those are arguably front doors; you can easily scan the filesystem image for items that have u+s perms.)<p>I would do this kind of hole differently: why not just hack the kernel so that any process can do setuid(0). Or, slightly hide it: say, setuid(-42) gives you root privs.