I see people talking about doas saying it’s just like sudo but with less features. I’m just wondering if there is any situation where you should use doas or if it’s just personal preference.

  • taladar
    arrow-up
    3
    arrow-down
    0
    ·
    7 months ago
    link
    fedilink

    If it builds a new image that replaces the entire system it could be compromised to give full access to the entire system just as easily as sudo, possibly more easily.

    • Pantherina
      arrow-up
      1
      arrow-down
      0
      ·
      7 months ago
      link
      fedilink

      No it just pulls the ostree / OCI image from the fedora image registry and applies changes that need sudo privileges to change, remove etc.

      Deploying a different image is not allowed.

      See this issue for details

      • taladar
        arrow-up
        2
        arrow-down
        0
        ·
        7 months ago
        link
        fedilink

        The component that is like sudo in this case is polkit. Of course an unprivileged user can be used to run sudo commands as well, limited by the rules in the sudo config file, just as these polkit rules limit what the user can doas long as there is no security issue in sudo and polkit respectively but the actual work is done by a privileged process that is merely controlled by the commands given by the unprivileged user.

        • Pantherina
          arrow-up
          1
          arrow-down
          0
          ·
          7 months ago
          link
          fedilink

          Yes thats the point, the specific actions are a good way to act like a firewall for the access to the privileged process, invoked by anyone.

          This is brilliant, as unprivileged users over ssh, or not even logged in, can invoke the updates in that case, making a “grandma pc” that is immutable and autoupdating possible.

          See this discussion on how it would eventually be implemented