Ever had a question about Linux but felt too afraid to ask? Well now’s your chance, ask any question about Linux, no matter how noob or repeated it is, and I and others will help answer them.

Previous noob question thread: https://lemmy.ml/post/14261893

  • bloodfart@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    3 months ago

    I got one!

    What constrains access to an rpc socket in the file system? Is it just the permissions of the socket or is there more to the whole process?

    E: I originally wrote port instead of socket because it was early lol.

    • cizra@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      What’s an rpc port anyway? Do you mean DBus? Then FS perms of the socket. Perhaps also something in the protocol itself.

      • bloodfart@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        I meant to write socket instead of port because I was tired.

        If for example a program can take rpc over a socket which is a file somewhere is it just the filesystem permissions that determine what can be done or is there more at play?

        • cizra@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          3 months ago

          FS permissions are the main thing, yes. One can build more systems around it (don’t mount the socket into a Flatpak container, if you don’t want the Flatpak to talk to DBus) or (implement some sort of auth protocol like TLS does).