Page MenuHomeFreeBSD

tests: cover PMU group authorization across exec
Needs ReviewPublic

Authored by afscoelho_gmail.com on Thu, Sep 3, 9:33 PM.
Tags
None
Referenced Files
F174311025: D59373.id188116.diff
Fri, Oct 2, 6:54 AM
F174271425: D59373.id188264.diff
Thu, Oct 1, 10:03 PM
Unknown Object (File)
Thu, Oct 1, 5:37 AM
Unknown Object (File)
Sun, Sep 27, 9:27 AM
Unknown Object (File)
Sat, Sep 26, 9:41 AM
Unknown Object (File)
Sun, Sep 20, 10:06 PM
Unknown Object (File)
Sat, Sep 19, 10:20 AM
Unknown Object (File)
Sat, Sep 19, 8:51 AM
Subscribers

Details

Summary

Add a credential-changing helper and deterministic ATF cases for inherited resident and evicted groups. Verify that exec reauthorizes authoritative group targets, rejects stale handles with ESRCH, and releases all tracked objects.

Sponsored by: AMD

Signed-off-by: Andre Silva <andasilv@amd.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76467
Build 73350: arc lint + arc unit

Event Timeline

Rebase onto main after D58256 landed. main now has its own pmc_exec_test.c, so rename this test to pmc_group_exec_test.c. The test still expects the groups to be dropped, because the owner (nobody) is not privileged.