Page MenuHomeFreeBSD

uipc_shm: Add racct support
Needs ReviewPublic

Authored by cyril_freebsdfoundation.org on Jun 15 2021, 7:26 PM.

Details

Reviewers
markj
Summary

This adds racct support for POSIX shared memory objects. They are now counted in the racct "nshm" and "shmsize" resources.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

Use new racct_add_cred_checked function instead of racct_add on resize. This is the correct behaviour, since a process might be able to resize a shared memory object that was created by a different process.