#include "parse-util.h"
#include "path-util.h"
#include "proc-cmdline.h"
+#include "process-util.h"
#include "selinux-util.h"
#include "smack-util.h"
#include "stat-util.h"
if (streq(username, c->parameter))
return 1;
- if (getpid() == 1)
+ if (getpid_cached() == 1)
return streq(c->parameter, "root");
u = c->parameter;
return in_gid(id);
/* Avoid any NSS lookups if we are PID1 */
- if (getpid() == 1)
+ if (getpid_cached() == 1)
return streq(c->parameter, "root");
return in_group(c->parameter) > 0;