Page MenuHomeFreeBSD

Allow any user to read the NFS stats, for example with nfsstat(1).
ClosedPublic

Authored by asomers on Dec 1 2022, 9:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 17, 5:21 AM
Unknown Object (File)
Wed, May 14, 2:40 AM
Unknown Object (File)
Fri, May 9, 6:47 AM
Unknown Object (File)
Sat, May 3, 7:09 PM
Unknown Object (File)
Apr 24 2025, 8:58 PM
Unknown Object (File)
Mar 24 2025, 7:21 PM
Unknown Object (File)
Mar 10 2025, 10:08 AM
Unknown Object (File)
Mar 10 2025, 5:25 AM
Subscribers

Details

Summary

This was originally allowed by 3cea29603d3 (2011). But it got broken by
693957f8861 (2016) and apparently nobody noticed.

MFC after: 1 week
Sponsored by: Axcient

Test Plan

manually tested

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48597
Build 45483: arc lint + arc unit

Event Timeline

ken accepted this revision.EditedDec 1 2022, 9:35 PM

This looks good to me.

I guess we only ever tested as root. Thanks for catching this, this will be helpful.

This revision is now accepted and ready to land.Dec 1 2022, 9:35 PM

Looks good to me, rick

Ok, I committed it. Next I'll fix sysutils/nfs_exporter to run as non-root too.