If we fail to decrypt the softraid keys, return EPERM rather than falling
authorjsing <jsing@openbsd.org>
Sat, 28 Dec 2013 02:40:41 +0000 (02:40 +0000)
committerjsing <jsing@openbsd.org>
Sat, 28 Dec 2013 02:40:41 +0000 (02:40 +0000)
commita8401cd3de67c28f9d5b83ea351890b9d3473e4f
tree724d73c4772eba0efe0f2aa256f3ec98cdb16f6c
parentb5fca263e57406f2b9d0d44818adefd80df98999
If we fail to decrypt the softraid keys, return EPERM rather than falling
through and failing when we attempt to read and validate the disklabel.
Also return ENOTSUP rather than EPERM if an attempt is made to write to a
softraid volume.
sys/arch/amd64/stand/libsa/biosdev.c
sys/arch/amd64/stand/libsa/softraid.c
sys/arch/i386/stand/libsa/biosdev.c
sys/arch/i386/stand/libsa/softraid.c