Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Hey peanut gallery!

Hey peanut gallery!

Scheduled Pinned Locked Moved Uncategorized
6 Posts 4 Posters 23 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • swick@hachyderm.ioS This user is from outside of this forum
    swick@hachyderm.ioS This user is from outside of this forum
    swick@hachyderm.io
    wrote last edited by
    #1

    Hey peanut gallery! systemd-appd explained in a few sentences: https://blog.sebastianwick.net/posts/so-peerpidfd-gets-more-useful/

    I will not take questions.

    valpackett@social.treehouse.systemsV scorpion8741@infosec.exchangeS 2 Replies Last reply
    0
    • swick@hachyderm.ioS swick@hachyderm.io

      Hey peanut gallery! systemd-appd explained in a few sentences: https://blog.sebastianwick.net/posts/so-peerpidfd-gets-more-useful/

      I will not take questions.

      valpackett@social.treehouse.systemsV This user is from outside of this forum
      valpackett@social.treehouse.systemsV This user is from outside of this forum
      valpackett@social.treehouse.systems
      wrote last edited by
      #2

      @swick one thing I do like about dedicated sockets (like security-context-v1) is that they're kinda capability-shaped (in the proper sense not the silly linux caps sense) (very vaguely and weakly but still).. But yeah, a general "what sandbox is on the other end of the socket" API is a very practical need right now

      adrianvovk@fosstodon.orgA 1 Reply Last reply
      0
      • valpackett@social.treehouse.systemsV valpackett@social.treehouse.systems

        @swick one thing I do like about dedicated sockets (like security-context-v1) is that they're kinda capability-shaped (in the proper sense not the silly linux caps sense) (very vaguely and weakly but still).. But yeah, a general "what sandbox is on the other end of the socket" API is a very practical need right now

        adrianvovk@fosstodon.orgA This user is from outside of this forum
        adrianvovk@fosstodon.orgA This user is from outside of this forum
        adrianvovk@fosstodon.org
        wrote last edited by
        #3

        @valpackett @swick IMO security-context is closer to appd than to capabilities as you mean them. It's all about attaching the app's identity to the socket connection. The compositor knows who the app is and this can enforce policy on it

        appd is the same thing, but made generic. Instead of having N protocol-specific ways to attach an app's identity to a given socket connection, we build out a mechanism to query an app's identity given any connection

        Thus they're fundamentally the same thing

        valpackett@social.treehouse.systemsV 1 Reply Last reply
        0
        • adrianvovk@fosstodon.orgA adrianvovk@fosstodon.org

          @valpackett @swick IMO security-context is closer to appd than to capabilities as you mean them. It's all about attaching the app's identity to the socket connection. The compositor knows who the app is and this can enforce policy on it

          appd is the same thing, but made generic. Instead of having N protocol-specific ways to attach an app's identity to a given socket connection, we build out a mechanism to query an app's identity given any connection

          Thus they're fundamentally the same thing

          valpackett@social.treehouse.systemsV This user is from outside of this forum
          valpackett@social.treehouse.systemsV This user is from outside of this forum
          valpackett@social.treehouse.systems
          wrote last edited by
          #4

          @AdrianVovk @swick right, you can attach metadata in security-context, but that's sort-of optional in practice? Many compositors don't really care about app identity, e.g. in Sway the only policy is "if connected from security-context, then hide all 'privileged' protocols like layer-shell", nothing more complicated, so effectively that new socket is a strictly-reduced-capability one vs. the original connection

          adrianvovk@fosstodon.orgA 1 Reply Last reply
          0
          • valpackett@social.treehouse.systemsV valpackett@social.treehouse.systems

            @AdrianVovk @swick right, you can attach metadata in security-context, but that's sort-of optional in practice? Many compositors don't really care about app identity, e.g. in Sway the only policy is "if connected from security-context, then hide all 'privileged' protocols like layer-shell", nothing more complicated, so effectively that new socket is a strictly-reduced-capability one vs. the original connection

            adrianvovk@fosstodon.orgA This user is from outside of this forum
            adrianvovk@fosstodon.orgA This user is from outside of this forum
            adrianvovk@fosstodon.org
            wrote last edited by
            #5

            @valpackett @swick Sounds like anti-capabilities :p. Holding the special socket takes away your capability to do privileged actions, rather than granting you the capability to do the actions

            Anyway on a more practical note the Wayland compositor can do exactly the same thing with appd. Check if the incoming client is any sandboxed app, if yes hide the privileged protocols, if no don't. No need to look at all the metadata if you don't need it. But boy is it useful to have right there if you do

            1 Reply Last reply
            0
            • swick@hachyderm.ioS swick@hachyderm.io

              Hey peanut gallery! systemd-appd explained in a few sentences: https://blog.sebastianwick.net/posts/so-peerpidfd-gets-more-useful/

              I will not take questions.

              scorpion8741@infosec.exchangeS This user is from outside of this forum
              scorpion8741@infosec.exchangeS This user is from outside of this forum
              scorpion8741@infosec.exchange
              wrote last edited by
              #6

              @swick This is confusing. The blog post does not even mention the name systemd-appd. But it mentions that the method does not depend on systemd, nevertheless you name it systemd-appd. Is there some repo where we can have a look at it?

              1 Reply Last reply
              1
              0
              • R relay@relay.infosec.exchange shared this topic
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups