Skip to content
  • Jérémy Bobbio's avatar
    Make ControlSocketsGroupWritable work with User. · 54d7d31c
    Jérémy Bobbio authored and Nick Mathewson's avatar Nick Mathewson committed
    Original message from bug3393:
    
    check_private_dir() to ensure that ControlSocketsGroupWritable is
    safe to use. Unfortunately, check_private_dir() only checks against
    the currently running user… which can be root until privileges are
    dropped to the user and group configured by the User config option.
    
    The attached patch fixes the issue by adding a new effective_user
    argument to check_private_dir() and updating the callers. It might
    not be the best way to fix the issue, but it did in my tests.
    
    (Code by lunar; changelog by nickm)
    54d7d31c