Slashdot Mirror


Steve "CyanogenMod" Kondik Contemplates The Death of Root On Android

c0d3g33k writes "Prompted by the addition of new security features in Android 4.3 that limit the effectiveness of elevated privileges, Steve Kondik wonders which uses really require full root. Most common activities that prompt owners to root their devices (backup/restore tools, firewall/DNS resolver management, kernel tuning), could be accomplished without exposing root, argues Kondik, by providing additional APIs and extensions to the user. This would improve security by limiting the exposure of the system to exploits. Reasonable enough, on the face of it. The title of the post, however, suggests that Kondik believes that eventually all useful activities can be designed into the system so the 'dangerous and insecure' abilities provided by root/administrator privileges aren't needed. This kind of top-down thinking seems a bit troubling because it leads to greater control of the system by the developer at the expense of the owner of the device. It's been said that the best tools are those that lend themselves to uses not anticipated by the creator. Reducing or eliminating the ability of the owner to use a device in ways that are unanticipated ultimately reduces its potential power and usefulness. Perhaps that's what is wanted to prevent an owner from using the device in ways that are inconvenient or contrary to an established business model."

43 of 240 comments (clear)

  1. stop phone carriers / oems from slowing down updat by Joe_Dragon · · Score: 3, Insightful

    stop phone carriers / oems from slowing down updates and force loading software that can't be removed.

    also force unlocked sims on all android phones.

  2. ObXKCD by Anonymous Coward · · Score: 5, Funny

    All applicable XKCD should just be in tags at top of Slashdot stories.

  3. Fairly Obvious by Nemyst · · Score: 4, Insightful

    The issue is that those new APIs and extensions are NEVER provided because the hardware manufacturers and software providers don't want to provide them. Providing deeper access to the software and hardware means you can do more things, including circumvent protections and such. They'd rather make it as hard as possible to do this, and rooting is harder than using a sanctioned app.

    In an ideal world, we'd have all the functionality we need straight up and "rooting" wouldn't even exist as a term.

  4. Re:If no root, no Android. FirefoxOS anyone? by barlevg · · Score: 5, Informative

    You missed the point--he's saying that root access might one day no longer be necessary, not that it'll become impossible to root an Android device.

  5. In my opinion by drolli · · Score: 5, Insightful

    Most things which required me to root my phone should be preinstalled

    -backup
    -firewall
    -disable any service *which i do not need*

  6. Bad summary by swillden · · Score: 5, Insightful

    He's not talking about root going away, he's talking about reducing the need for it, in order to have much of the freedom provided by a rooted phone without the associated security risks. Whether or not root is available is a separate, and orthogonal question, and he clearly never wants to lose the ability to root, just the need.

    --
    Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    1. Re:Bad summary by bmo · · Score: 5, Interesting

      This.

      Just like Linus' justifiable rant about having to be root in SuSE to set up a printer.

      There are legitimate reasons why an end user should need Root/Administrator, but they should be as few as possible. Microsoft has seen the light and has tried to beat developers over the head with UAC to make them see the light. (a game needing admin to run? seriously?)

      --
      BMO

    2. Re:Bad summary by c0d3g33k · · Score: 2

      He's not talking about root going away, he's talking about reducing the need for it

      Submitter here. I'm probably a little thick, clearly Kondik meant something more subtle by naming his post "The Death of Root" than I was able to discern. Shame on me for taking that as a suggestion of where his thoughts might be turning.

    3. Re:Bad summary by intermodal · · Score: 2

      The problem with UAC is that it is highly obnoxious and intrusive. As it was put to me recently, an admin account will let you install drivers and modify system files, but user access is all they need to get into the average user's email, finances, social networks, and so on.

      Root/admin access should be available to everyone who wants it, but many of the functions that require it really shouldn't for most users outside certain environments. And the interfaces should absolutely make it clearer and easier for people to elevate (with appropriate credentials if applicable) to the needed priveleges.

      Ever try to edit a hosts file in Win7 on an administrator account, and then still had to reopen the file running AS administrator to accomplish it, making sure to keep your changes available to paste back in? It's nonsense. I have an app for changing the hosts file on my Galaxy Tab for the hosts file on my Galaxy Tab. After all, I have a LAN at home with hosts I access rather a lot. Did I have to root my tablet to do it? You betcha.

      But that's nothing compared to all the things I had to jailbreak my old iPhone for.

      --
      In SOVIET RUSSIA... erm...NSA AMERICA, the Internet logs onto YOU!
  7. Reminds me of linux without a root prompt by hibiki_r · · Score: 2

    There's a certain well known Linux distro that starts with a disabled su command, because root prompts are evil. You can, however, use sudo, to run one command at a time.

    Like, for instance, sudo bash.

    You can provide a single API to let your user do what he wants. it's called admin access.

    1. Re:Reminds me of linux without a root prompt by Anonymous Coward · · Score: 2, Informative

      Just use "sudo su" instead..

      No no no no no no no no no no no no no no no! If you need to drop into a root shell use "sudo -i".

    2. Re: Reminds me of linux without a root prompt by chihowa · · Score: 2

      -i simulates an initial login, so it's more like "sudo su -" in that you get a root shell and all of the .profile and such are read. -s doesn't read those files.

      --
      If you want a vision of the future, imagine a youtube comments section scrolling - forever.
    3. Re:Reminds me of linux without a root prompt by GTRacer · · Score: 3, Funny

      Phil Collins reportedly uses "sudo su su sudio" for his root calls...

      --
      Defending IP by destroying access to it? That makes sense, RIAA/MPAA. Go to the corner until you can play nice!
  8. Re:If no root, no Android. FirefoxOS anyone? by Dracos · · Score: 5, Insightful

    Root will be nesessary until the carriers allow us to freely uninstall their bloatware, and other useless/quasi-hostile junk (for me, that means facebook).

  9. Re:Controller by Nerdfest · · Score: 2

    The first thing I noticed when upgrading to 4.3 was that my ad-blocker that works by altering the hosts file no longer works. That's one thing I'm sure Google would love to see people stop doing. I'm sure it's fixable with some new SELinux rules, but I haven't looked into it yet.

  10. Wi-Fi-only devices by tepples · · Score: 4, Insightful

    So the only people who will need it will be the carriers and NSA.

    Wi-Fi carriers such as cable and DSL ISPs typically don't provide a subsidized tablet. Nor do cellular carriers outside North America and maybe Japan. So what do "carriers" necessarily have to do with rooting, especially with rooting a Wi-Fi-only device?

  11. Re:android by Skapare · · Score: 2

    Warning: SPAM link in parent.

    --
    now we need to go OSS in diesel cars
  12. Your forgot ... by Skapare · · Score: 5, Insightful

    -remove any app *which i do not want*

    --
    now we need to go OSS in diesel cars
  13. CDMA2000 by tepples · · Score: 2

    also force unlocked sims on all android phones.

    How would that work on a CDMA2000 network, which doesn't use a SIM in the first place?

  14. Re:If no root, no Android. FirefoxOS anyone? by dc29A · · Score: 5, Informative

    I don't care if I don't root my phone until I can write to the hosts file.

  15. Re:If no root, no Android. FirefoxOS anyone? by icebike · · Score: 4, Interesting

    You missed the point--he's saying that root access might one day no longer be necessary, not that it'll become impossible to root an Android device.

    Exactly.
    The reason people root phones is to get around arbitrary restrictions imposed by the carriers or the manufacturers.
    Remove those restrictions, by providing APIs that allow users to do every legal thing, and virtually all reason to root disappear.

    When you can remove bloatware, change carriers, bypass carrier restrictions, change the UI, and maybe even change the OS, all without requiring root, what would be the point of rooting?

    There will still be those who will root simply because they can. These are the same kids that always ran their Linux machines at root because they were so 133t.

    --
    Sig Battery depleted. Reverting to safe mode.
  16. SE/Linux (and SE/Android) by lkcl · · Score: 5, Interesting

    there's an extremely common mistake made which needs to be pointed out: the clue is in the phrase "This kind of top-down thinking". the fundamental assumption is that there is a concept of "more privilege is required than before" to achieve privileged tasks. people imagine that security is hierarchical - that the further towards "the top" you get, the more access you are permitted. this is simply NOT TRUE. the classic example is "root", which is a drastic binary oversimplification which is simply very convenient.

    so, people invent new security systems, but they invent them without actual proper thought towards design, and they invent them thinking that this "top down" hierarchical approach is the only way. thus, new APIs have to be invented.

    there is another way: it's called SE/Linux (and there's a variant called SE/Android). SE/Linux follows the FLASK model, which basically says that based on the current context, the current application, that a new executable is given a COMPLETELY new security context, where the new privileges have to be explicitly given. the most important implication of this model is: it absolutely does not matter how "powerful" you were in the previous context - the one that fires up the new executable; the new one is literally a completely and utterly separate security context.

    to give an example: take a 5 Star General, and send him to a security base. when he gets there, standard security procedure: they take away his passport and all his credentials, and they give him a security pass (a new context). that security pass has a pre-prepared set of restricted corridors and rooms that the 5 Star General can go to. he can go to the conference room, and the bathroom. if he tries to leave without returning the security pass, he has no passport, and no papers.

    this incredibly powerful security model - FLASK basically fits on top of an OS *without* interfering with it. it's particularly fascinating because it can watch which programs exec() other programs, and it can watch what APIs those programs use.... *without* needing to actually modify those programs.

    basically what i'm saying is that the problem that cyanogen is trying to solve already has a way in which it can be solved, if the SE/Android team haven't already solved it. and that's because, under SE/Linux and SE/Android, you can operate both the normal "root access" system *in parallel* with SE/Linux. all you need to do is create a FLASK security context which restricts access to only those applications that *should* be accessing the restricted APIs. you don't need to modify the applications, nor do anything special to the underlying OS.

  17. Re:If no root, no Android. FirefoxOS anyone? by Pioto · · Score: 3, Informative

    Root will be nesessary until the carriers allow us to freely uninstall their bloatware, and other useless/quasi-hostile junk (for me, that means facebook).

    Good news! You haven't needed root to do that for a Long Time now. You can just click the "Disable" button in the app's details page, or drag it to the trash can from the apps drawer, and it's disabled. Sure, it's taking up a few MB of space on your system image, but, "oh well." At least, this is certainly true on any Android 4.x device I've owned.

  18. Re:If no root, no Android. FirefoxOS anyone? by Pioto · · Score: 4, Informative

    You missed the point--he's saying that root access might one day no longer be necessary, not that it'll become impossible to root an Android device.

    Yes, this. You shouldn't root your device "just because you can", which seems to be the mentality some people have. It greatly increases your attack surface for security vulnerabilities. I'm certain that the ability to root will stick around "forever", but for most people having a well thought out API which allows separation of privileges is going to lead to better results.

  19. Re:No root = developer headaches by Tr3vin · · Score: 2

    As an Android developer I can tell you that switching versions on a device is not provided by root access. Root gives you access to all of the system while the phone is running. Getting a different version running requires an unlocked bootloader. For example, on my Nexus devices I first do a "fastboot oem unlock" to unlock the bootloader, then I can use fastboot to send any version of the OS I want to the device. It gets tricky on more locked down devices, but the same basic idea still applies. You need to get past the bootloader to get a different OS running.

  20. Steve "CyanogenMod" Kondik by SixGunMojo · · Score: 2

    Am I the only one irritated by this? It should be Steve "Cyanogen" Kondik, CyanogenMod is the ROM. FFS

  21. Recurring fee by tepples · · Score: 2

    I've never had a backup issue because there are apps for that

    Some existing "apps for that" require root to backup or restore because they try to back up private data that belongs to another application.

    and everything is in the cloud anyway

    If you have more than a couple GB of data to back up, cloud backup becomes an expensive recurring fee compared to backing up to local physical media.

  22. Re:If no root, no Android. FirefoxOS anyone? by aztracker1 · · Score: 2

    What bugs me, is the likes of Twitter and Pandora asking for every privilege under the sun. I'm sticking with a prior version of twitter for that reason.. it will suck when I have to change out phones again. I don't use most games for the same reasons... it's wrong on so many levels. I wish I could remove privileges from installed apps, like you can with facebook "apps" (setting their posts to only visible to you, etc)... at least then you could work around the crap/spyware.

    --
    Michael J. Ryan - tracker1.info
  23. Re:If no root, no Android. FirefoxOS anyone? by L4m3rthanyou · · Score: 2

    It's kind of a moot point. If the system is that badly "infected", you should probably replace the rom anyway.

    On my aging Gingerbread phone, I used root to delete the OEM bloatware- Facebook, Amazon, NFL Mobile, etc. A few months later, an OTA update rolled out, and it threw a shit fit because the pre-installed crap was missing. Fortunately I had backups. Now I use Titanium Backup's "freeze" feature to disable (and prevent execution of) apps while still keeping them installed/updated.

    --
    One of these days, I'm going to cut you into little pieces.
  24. Re:If no root, no Android. FirefoxOS anyone? by gnoshi · · Score: 2

    Check out XPrivacy. Of course, it requires the Xposed Framework to be installed. Which requires root.
    Or, of course, the Privacy Guard on the new CyanogenMod 10.1 builds, but which requires CyanogenMod.
    Or OpenPDroid, but that requires patching your rom.

  25. Re:If no root, no Android. FirefoxOS anyone? by dinfinity · · Score: 2

    It greatly increases your attack surface for security vulnerabilities.

    As far as I understand, 'rooting your Android phone' generally allows elevation to root privileges, access to which is handled by an SU-application. That means that if you never allow anything to have root privileges, you face no increased risk at all.

  26. Re:If no root, no Android. FirefoxOS anyone? by Anonymous Coward · · Score: 5, Informative

    Good news! You haven't needed root to do that for a Long Time now. You can just click the "Disable" button in the app's details page, or drag it to the trash can from the apps drawer, and it's disabled.

    Bad news! You can only disable apps that your carrier has decided that they want to allow you to disable.

  27. Re:If no root, no Android. FirefoxOS anyone? by citizenr · · Score: 3, Informative

    what hardware? there is NO HARDWARE - thats why its on igg and not kickstarter (rules prevent vaporware)

    --
    Who logs in to gdm? Not I, said the duck.
  28. Re: If no root, no Android. FirefoxOS anyone? by corychristison · · Score: 4, Informative

    You don't need root to image a new ROM. You need an UNLOCKED BOOTLOADER. Two completely different things.

  29. Re: If no root, no Android. FirefoxOS anyone? by corychristison · · Score: 2

    Don't "buy" your phone subsidized through your carrier? I just bought two Nexus 4's right from Google and switched carriers. No contract _and_ got a 10% discount on my bill each month by bringing my own device.

    To be clear I live in Canada, and just switched to Telus.

  30. Re:If no root, no Android. FirefoxOS anyone? by Anonymous Coward · · Score: 5, Insightful

    Good news! You haven't needed root to do that for a Long Time now. You can just click the "Disable" button in the app's details page, or drag it to the trash can from the apps drawer, and it's disabled. Sure, it's taking up a few MB of space on your system image, but, "oh well."

    Good news, I just took a dump on your doorstep! Don't worry though, you can just throw your doormat over it. It will still stink, but "oh well"

  31. No CSIM in USA by tepples · · Score: 2

    Or you could try supporting the concept of non-carrier devices by purchasing Nexus devices at "full price".

    Good luck doing that in the United States if you happen to live where T-Mobile has poor coverage. CDMA2000 carriers in the United States don't use CSIM.

  32. Re:If no root, no Android. FirefoxOS anyone? by GNious · · Score: 2

    Perhaps get a Jolla instead?
    http://www.jolla.com/
    Yeah, I've already pre-ordered mine...

  33. Everyone just stay calm and.... by JayRott · · Score: 3, Informative
  34. Re: If no root, no Android. FirefoxOS anyone? by GigaplexNZ · · Score: 4, Informative

    It's not just carrier bloatware. The Galaxy S4 comes with some Samsung junk that can't be disabled either, for example.

  35. Re:If no root, no Android. FirefoxOS anyone? by dinfinity · · Score: 2

    You have no idea what you are talking about, do you?

  36. Re:If no root, no Android. FirefoxOS anyone? by TheRaven64 · · Score: 2

    If you expose every single thing that requires root to non-root users, then there is no distinction between root and non-root and so root is unnecessary. Very few people, for example, feel the need to enable root on OS X, but since normal users in the administrator group can sudo with their password there is no need because they can do anything that a root user can.

    If, however, you expose some subset of what root can do to normal users, then you are always going to find some users who need to do some of the things that you haven't thought of. In my case, for example, I want to stick a Debian chroot on my Android device for development. This requires the chroot system call, which is only permitted for root users for reasonably good security reasons (it makes various categories of confused deputy attacks easier). I'm sure that other people will find other interesting things to do that require root.

    --
    I am TheRaven on Soylent News
  37. Re:If no root, no Android. FirefoxOS anyone? by andydread · · Score: 2

    It looks like that problem is solved in Android 4.3