Page MenuHomeFreeBSD

sysctl: Return ECAPMODE when trying to access sysctls in capability mode
ClosedPublic

Authored by markj on Tue, Sep 22, 2:01 PM.
Tags
None
Referenced Files
F175201589: D59887.id.diff
Fri, Oct 9, 1:44 AM
Unknown Object (File)
Thu, Oct 8, 3:52 AM
Unknown Object (File)
Wed, Oct 7, 5:07 PM
Unknown Object (File)
Wed, Oct 7, 8:21 AM
Unknown Object (File)
Wed, Oct 7, 6:56 AM
Unknown Object (File)
Wed, Oct 7, 5:13 AM
Unknown Object (File)
Tue, Oct 6, 3:46 PM
Unknown Object (File)
Tue, Oct 6, 9:17 AM

Details

Summary

We have always returned EPERM in this case, but it seems incorrect.
Fix the errno value.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77164
Build 74047: arc lint + arc unit

Event Timeline

From rG:ff66f6a404282, early days. Please update sysctl(3) to reference the errno.

This revision is now accepted and ready to land.Tue, Sep 22, 2:40 PM