Page MenuHomeFreeBSD

emit permission denied error if unprivileged user attempts zpool import
Needs ReviewPublic

Authored by ashfixit_gmail.com on Sep 11 2018, 8:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 23 2024, 7:50 PM
Unknown Object (File)
Sep 17 2024, 5:35 PM
Unknown Object (File)
Sep 16 2024, 7:39 AM
Unknown Object (File)
Sep 3 2024, 1:24 PM
Unknown Object (File)
Aug 29 2024, 6:32 PM
Unknown Object (File)
May 1 2024, 7:42 PM
Unknown Object (File)
Apr 11 2024, 4:50 PM
Unknown Object (File)
Mar 7 2024, 1:55 AM
Subscribers

Details

Reviewers
allanjude
Summary

Buglet fix from openzfs hackathon: zpool import without sudo has misleading error

Extend condition check for emitting permission denied error.

Test Plan

before (incorrect behaviour)

zpool import fred

cannot import 'fred': no such pool available

after( corrected )

/usr/obj/usr/12headsrc/amd64.amd64/cddl/sbin/zpool/zpool import asdf

cannot discover pools: permission denied
Exit 1

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped