Page MenuHomeFreeBSD

Verified execution (veriexec) library interface to MAC/veriexec per-policy syscall
ClosedPublic

Authored by stevek on Nov 18 2016, 4:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 11:17 PM
Unknown Object (File)
Fri, Mar 22, 10:23 PM
Unknown Object (File)
Fri, Mar 22, 10:23 PM
Unknown Object (File)
Mar 8 2024, 8:26 AM
Unknown Object (File)
Mar 3 2024, 7:33 AM
Unknown Object (File)
Mar 3 2024, 7:06 AM
Unknown Object (File)
Jan 7 2024, 6:12 AM
Unknown Object (File)
Jan 6 2024, 6:48 AM
Subscribers

Details

Summary

This library allows for user space applications to check file descriptors
or paths to see if they can be verified by MAC/veriexec.

Depends on D8554

Test Plan

Various versions of this code (with some differences) has been in use for a few years and has gone through in-house testing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

stevek retitled this revision from to Verified execution (veriexec) library interface to MAC/veriexec per-policy syscall.
stevek updated this object.
stevek edited the test plan for this revision. (Show Details)
stevek added a reviewer: rwatson.
stevek added a subscriber: sjg.
wblock added inline comments.
lib/libveriexec/veriexec.3
27 ↗(On Diff #22311)

This needs to be bumped.

48 ↗(On Diff #22311)

Maybe simplify this?

.Fn veriexec_check_fd
​function checks the signature of the file represented by the
.Fa fd
file descriptor.
54 ↗(On Diff #22311)

Likewise, can't this just be:

(There's a typo on "specfied", which this avoids.)

function checks the signature of the file path
.Fa file .
63 ↗(On Diff #22311)

Um... if not the first thing or the second thing?

functions return zero on a successful signature match or if veriexec is not enabled.
If the signature does not match,
.Va errno
is set.

(Although "set" is a little ambiguous. Set in the binary sense (non-zero) or set to a particular number?

jtl added a subscriber: jtl.

I think this should be committed after addressing @wblock's comments.

This revision is now accepted and ready to land.Jan 10 2018, 12:30 AM
This revision was automatically updated to reflect the committed changes.