1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2012 Lennart Poettering
12 int polkit_agent_open(void);
13 void polkit_agent_close(void);
15 static inline int polkit_agent_open_if_enabled(
16 BusTransport transport,
19 /* Open the polkit agent as a child process if necessary */
21 if (transport != BUS_TRANSPORT_LOCAL)
27 return polkit_agent_open();