• Dan Williams's avatar
    system-settings: let UID 0 bypass PolicyKit for PK < 1.0 · 9c8e6000
    Dan Williams authored
    PK < 1.0 doesn't work with UID 0 processes that aren't spawned via a
    session-manager, and thus don't have the XDG_SESSION_COOKIE in their
    environment (which ConsoleKit uses to figure out what session the
    caller is in).  But since root could just scribble over the config
    files anyway, bypassing PK for UID 0 doesn't meaningfully decrease
    security.
    9c8e6000
nm-polkit-helpers.c 5.51 KB