I’ve been thinking. Android implements app permissions on top of Linux, Flatpak does it too. But why is it it’s not part of the kernel?

Like all executable files would be sandboxed and would only be able to access syscalls and parts of the file system if they were allowed to. Making sandboxing the default instead of having to restrict programs.

I’m not a kernel developper so this question may be naive, but it bothers my mind. I guess part of it is because of historical reasons but are there any practical ones that make it not feasable?

EDIT : Thank you all for your answers, almost all of you were very nice and explained things clearly

  • Pfeffy@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    17
    ·
    3 days ago

    Go ahead, Champ. Build a kernel. I feel like your question is more “why doesn’t somebody else do this thing that I just thought of and don’t really understand?”

    • TurboHarbinger@feddit.cl
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      3 days ago

      Champ, I feel like your comment is implying you didn’t read anything except the title.

      I’m not a kernel developper so this question may be naive, but it bothers my mind. I guess part of it is because of historical reasons but are there any practical ones that make it not feasable?

      • Pfeffy@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        6
        ·
        3 days ago

        Normally you don’t include yourself when asking questions of people who are actually knowledgeable. I was making fun of you saying ‘we’ and following up by directly saying you aren’t part of ‘we’.

        My point stands. You could make any Linux kernel that you wanted to. Your question isn’t ‘why haven’t we done something’ but ‘why hasn’t somebody done something for me that I probably don’t even really want?’

        • CrayonRosary@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          I was making fun of you…

          You don’t even know how to use “you”, and you have the audacity to be pedantic about OP’s use of “we”?

          You weren’t replying to OP!

          And at this moment, you’re not talking to the person who commented above. I just thought I would explain that to prevent your further confusion.

      • Pfeffy@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        5
        ·
        3 days ago

        Go ahead and respond over and over to pointless bots asking stupid questions while someone pretends to be creating an engaging community. Do you honestly believe someone just created an account on an obscure platform like Lemmy to ask that question? Seriously?