Page MenuHomeFreeBSD

md5: extend capabilites
ClosedPublic

Authored by oshogbo on Aug 7 2023, 11:11 AM.
Tags
None
Referenced Files
F102789899: D41348.diff
Sun, Nov 17, 5:50 AM
Unknown Object (File)
Thu, Oct 24, 1:23 AM
Unknown Object (File)
Oct 16 2024, 11:03 AM
Unknown Object (File)
Oct 15 2024, 12:18 AM
Unknown Object (File)
Oct 13 2024, 9:45 PM
Unknown Object (File)
Oct 12 2024, 8:49 PM
Unknown Object (File)
Oct 12 2024, 1:02 PM
Unknown Object (File)
Oct 11 2024, 4:38 AM
Subscribers

Details

Summary

In 4849767cb16a4, we did a large refactor of the md5(1) source code.
One of them is that instead of reading data using read(2) syscall, we
are using binary stream input (fread(3)).

fread(3) requires additional Capsicum capabilities:
sha256 CAP operation requires CAP_FSTAT, descriptor holds CAP_READ
sha256 RET fstat -1 errno 93 Capabilities insufficient

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

oshogbo created this revision.
This revision is now accepted and ready to land.Aug 7 2023, 11:24 AM
This revision was automatically updated to reflect the committed changes.