]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libcasper/cap_grp tests: Reset the group database handle
authorMark Johnston <markj@FreeBSD.org>
Thu, 21 Jan 2021 19:30:19 +0000 (14:30 -0500)
committerMark Johnston <markj@FreeBSD.org>
Sat, 20 Feb 2021 16:35:32 +0000 (11:35 -0500)
commit92cf69cb8da62688a9e77cb1baeab083d075728d
tree1c4a9fe96e04a3bb15d330819f5bad447daf9194
parenta46d7192f41aa977a49bb3aae2947131186878ca
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

(cherry picked from commit 1a05d9519de62cc0f7719a995fded0926d8b2747)
lib/libcasper/services/cap_grp/tests/grp_test.c