HomeFreeBSD

libcasper/cap_grp tests: Reset the group database handle

Description

libcasper/cap_grp tests: Reset the group database handle

Some tests verify that the capgrp capability does not permit calls to
setgrent(3), but all tests need to ensure that they reset the
capability's group database handle, otherwise the local process and
casper process will be out of sync.

The cap_pwd tests already handle this.

Sponsored by: The FreeBSD Foundation
MFC after: 1 month

Details

Provenance
markjAuthored on Jan 21 2021, 7:30 PM
Parents
rG48a186863431: libc/nss: Ensure that setgroupent(3) actually works as advertised
Branches
Unknown
Tags
Unknown