Page MenuHomeFreeBSD

veriexec: Improve comments
ClosedPublic

Authored by imp on Mar 14 2023, 5:06 PM.
Tags
None
Referenced Files
F122215331: D39079.id118811.diff
Thu, Jul 3, 10:24 AM
F122183809: D39079.diff
Thu, Jul 3, 2:01 AM
F122161642: D39079.id.diff
Wed, Jul 2, 8:21 PM
Unknown Object (File)
Tue, Jul 1, 4:38 PM
Unknown Object (File)
Tue, Jul 1, 3:46 AM
Unknown Object (File)
Sun, Jun 22, 9:03 PM
Unknown Object (File)
Wed, Jun 18, 3:02 AM
Unknown Object (File)
Tue, Jun 17, 11:55 AM
Subscribers

Details

Summary

Make it clear we're checking to see if the target is a verified file and
prevent its replacement if so.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Mar 14 2023, 5:06 PM

Oh, do simon's suggestion too

I would just have a single comment for the new functions: The target is verified, so disallow replacement.

In setmode, Prohibit chmod (set-[gu]id) of verified file.

I would just have a single comment for the new functions: The target is verified, so disallow replacement.

In setmode, Prohibit chmod (set-[gu]id) of verified file.

I get the second one, but not the first one... where should that be? I'm having trouble seeing where it might be helpful...

sys/security/mac_veriexec/mac_veriexec.c
604–605

Delete the leading comment entirely.

606–609
/* The target is verified, so disallow replacement. */

ravi's suggestions, I hope

This revision is now accepted and ready to land.Mar 15 2023, 4:38 AM
This revision was automatically updated to reflect the committed changes.