]> git.proxmox.com Git - mirror_zfs.git/commit
splat cred:groupmember: Fix false positives
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 Apr 2014 21:31:21 +0000 (14:31 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Apr 2014 19:44:41 +0000 (12:44 -0700)
commite19101e08f25708b03e5ff98a4da5756cfd709f7
treeb3f6c1800bb62dc74799fae471be141990534d36
parent668d2a0da5d542983ab200b35732d44c8b724305
splat cred:groupmember: Fix false positives

Due to certain assumptions made in the the cred:groupmember test it
could result in false positives when run on specific distributions.
This was solely a bug in the test case and not in the groupmember()
function which the test case was validating.

To prevent future false positives the test case has been rewritten
to be both more rigerous and to make fewer assumptions about the
system.

Minor style cleanup was done to cr_groups_search() and groupmember()
functions.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/spl/spl-cred.c
module/splat/splat-cred.c