]> 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>
Thu, 21 Jan 2021 19:30:19 +0000 (14:30 -0500)
commit1a05d9519de62cc0f7719a995fded0926d8b2747
treed907ae5d36e7f130e42ef3311f608dd56b14d43d
parent48a186863431ec7a23c6174bc376cafa59dd5fbf
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
lib/libcasper/services/cap_grp/tests/grp_test.c