test-capability: Modify ambient capability tests to test clearing caps
authorKevin Kuehler <keur@xcf.berkeley.edu>
Tue, 26 Nov 2019 01:52:42 +0000 (17:52 -0800)
committerKevin Kuehler <keur@xcf.berkeley.edu>
Wed, 27 Nov 2019 18:57:21 +0000 (10:57 -0800)
commit155a6234ea2c0ddab69d539ac9d8e57b49909e17
treeb75beee6958a5f44c6630d8f03291e049e87db70
parent82d832b435a0ae799011aeec75584af8188fb8db
test-capability: Modify ambient capability tests to test clearing caps

Change test_set_ambient_caps() to test_apply_ambient_caps(), since the
function capability_ambient_set_apply() not only sets ambient
capabilities, but clears inherited capabilities that are not explicitly
requested by the caller.
src/test/test-capability.c