mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
hastd: Remove some now useless assertion
It is in fact redundant with the previous one, as the set of supplementary groups is expected to be empty. MFC after: 5 days MFC to: stable/15 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52281
This commit is contained in:
parent
10b789d7e1
commit
59049f4b47
1 changed files with 0 additions and 2 deletions
|
|
@ -156,7 +156,6 @@ drop_privs(const struct hast_resource *res)
|
|||
struct passwd *pw;
|
||||
uid_t ruid, euid, suid;
|
||||
gid_t rgid, egid, sgid;
|
||||
gid_t gidset[1];
|
||||
bool capsicum, jailed;
|
||||
|
||||
/*
|
||||
|
|
@ -285,7 +284,6 @@ drop_privs(const struct hast_resource *res)
|
|||
PJDLOG_VERIFY(egid == pw->pw_gid);
|
||||
PJDLOG_VERIFY(sgid == pw->pw_gid);
|
||||
PJDLOG_VERIFY(getgroups(0, NULL) == 0);
|
||||
PJDLOG_VERIFY(getgroups(1, gidset) == 0);
|
||||
|
||||
pjdlog_debug(1,
|
||||
"Privileges successfully dropped using %s%s+setgid+setuid.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue