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
F156637226: D37589.id113769.diff
Fri, May 15, 7:17 AM
F156614822: D37589.id.diff
Fri, May 15, 3:29 AM
F156576060: D37589.id113764.diff
Thu, May 14, 7:20 PM
Unknown Object (File)
Wed, May 13, 6:28 PM
Unknown Object (File)
Mon, May 11, 6:45 PM
Unknown Object (File)
Thu, May 7, 10:49 AM
Unknown Object (File)
Thu, Apr 30, 6:21 PM
Unknown Object (File)
Mon, Apr 27, 3:18 PM
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 Not Applicable
Unit
Tests Not Applicable

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.