Page MenuHomeFreeBSD

md5: extend capabilites
ClosedPublic

Authored by oshogbo on Aug 7 2023, 11:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 22, 12:41 PM
Unknown Object (File)
Sun, Jan 12, 7:33 PM
Unknown Object (File)
Sun, Jan 5, 8:30 AM
Unknown Object (File)
Nov 24 2024, 9:40 PM
Unknown Object (File)
Nov 24 2024, 2:36 AM
Unknown Object (File)
Nov 22 2024, 11:08 AM
Unknown Object (File)
Nov 22 2024, 11:08 AM
Unknown Object (File)
Nov 22 2024, 11:07 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.