http://defect.opensolaris.org/bz/show_bug.cgi?id=2057

           Summary: zpool key -u - permission denied should be clear
    Classification: Development
           Product: zfs-crypto
           Version: unspecified
          Platform: Other
        OS/Version: Solaris
            Status: NEW
          Severity: minor
          Priority: P3
         Component: other
        AssignedTo: ajscarp at yahoo.com
        ReportedBy: ajscarp at yahoo.com
         QAContact: hua.tang at sun.com
                CC: zfs-crypto-discuss at opensolaris.org
   Estimated Hours: 0.0


While building the zfscrypto gate as my user (not root).  I ran into not having
permission to do the operation..   One should get a better error message for
not having permission to..  In general the coding we have done for error
messages in key loading is lacking in key unloading.. unload should not need as
much luckily..

izick at cag-v20zb:/$ zpool key -u export
Key error in 'export': crypto key failure

---
/1 at 1:       <- libzfs:zpool_disable_datasets() = 0
/1 at 1:       -> libzfs:unload_key(0x80bb548, 0x8042580)
/1 at 1:         -> libzfs:crypto_key_ioctl(0x80bb548, 0x8042580)
/1 at 1:           -> libzfs:zfs_ioctl(0x80bb548, 0x5a2f, 0x8042580)
/1:     ioctl(3, ZFS_IOC_CRYPTO, 0x08042580)            Err#1 EPERM
[sys_config]
/1 at 1:           <- libzfs:zfs_ioctl() = -1
/1 at 1:         <- libzfs:crypto_key_ioctl() = 1
/1 at 1:       <- libzfs:unload_key() = 1
/1 at 1:     <- libzfs:zpool_unload_key() = 1

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to