∞ 🏳️‍⚧️Edie [it/its, she/her, fae/faer, love/loves, ze/hir, des/pair, none/use name, undecided]

AuDHD cat. Warning: Do not feed pronouns, no matter how much it asks.

  • 0 Posts
  • 13 Comments
Joined 5 months ago
cake
Cake day: June 5th, 2024

help-circle








  • This is a list of things that could help harden, some of these I am not as sure about

    PrivateTmp=true # Does prunner use tmp? Does ffmpeg use tmp?
    PrivateMounts=true # prunner/ffmpeg shouldn't need to mount stuff anyways... right?
    ProtectClock=true # prunner and ffmpeg do not need to set hardware clock
    ProtectKernelTunables=true # "Few services need to write to these at runtime"
    ProtectKernelModules=true # I don't see prunner/ffmpeg needing to mod_probe
    ProtectKernelLogs=true # prunner/ffmpeg do not need to write to dmesg
    ProtectControlGroups=true # Not a container manager
    ProtectProc=invisible # Keep an eye out
    RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 # Other socket types are rare
    LockPersonality=true # prunner/ffmpeg shouldn't need to change personality?
    #MemoryDenyWriteExecute=true # Wait, prunner is a JS app isn't it? Hoping no JIT is needed **EDIT**: Yes, this is a problem
    RestrictSUIDSGID=true # No privilege elevation
    RestrictNamespaces=true # ffmpeg does not need namespaces
    SystemCallArchitectures=native # hardens other options
    
    ProtectHostname=true # Actually, seems like it might not be a problem. Hostname is "copied from callers namespace"
    
    # Not setting:
    # PrivateUsers=true # Meh. Problem I had with it in bind should not be the case here. If you feel like it, try it out.
    
    # SystemCallFilter # Can't be bothered to go through the list
    
    # ProcSubset=pid # Kernel APIs, not sure if ffmpeg needs them
    # PrivateDevices=true # afraid ffmpeg needs it
    # RestrictRealtime=true # prunner sets the niceness of ffmpeg