Page MenuHomeFreeBSD

md5: extend capabilites
ClosedPublic

Authored by oshogbo on Aug 7 2023, 11:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 11:04 AM
Unknown Object (File)
Dec 26 2023, 2:49 AM
Unknown Object (File)
Dec 20 2023, 7:58 AM
Unknown Object (File)
Dec 12 2023, 2:57 AM
Unknown Object (File)
Sep 12 2023, 4:52 AM
Unknown Object (File)
Sep 5 2023, 11:08 PM
Unknown Object (File)
Sep 4 2023, 1:38 PM
Unknown Object (File)
Aug 19 2023, 10:08 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.