HomeFreeBSD

linux(4): Add a helper to copyout getsockopt value

Description

linux(4): Add a helper to copyout getsockopt value

For getsockopt(), optlen is a value-result argument, which is modified
on return to indicate the actual size of the value returned.
For some cases this was missed, fixed.

MFC after: 2 weeks

(cherry picked from commit e92b9a9eaa646bc1037af2a838270c43ea607d55)

Details

Provenance
dchaginAuthored on May 28 2022, 8:30 PM
Parents
rGccdf2cd4237d: linux(4): Check the socket before any others sanity checks
Branches
Unknown
Tags
Unknown