Page MenuHomeFreeBSD

veriexec: Improve comments
ClosedPublic

Authored by imp on Mar 14 2023, 5:06 PM.
Tags
None
Referenced Files
F171095595: D39079.id118811.diff
Tue, Sep 8, 4:29 PM
F171061270: D39079.diff
Tue, Sep 8, 11:34 AM
Unknown Object (File)
Tue, Sep 8, 4:51 AM
Unknown Object (File)
Mon, Sep 7, 10:01 PM
Unknown Object (File)
Mon, Sep 7, 7:12 PM
Unknown Object (File)
Sun, Sep 6, 2:18 AM
Unknown Object (File)
Sat, Sep 5, 5:30 PM
Unknown Object (File)
Sat, Sep 5, 12:55 PM
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 Not Applicable
Unit
Tests Not Applicable

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.