firmware(9): Check for securelevel > 0 instead of PRIV_ROOT.
authorSascha Wildner <saw@online.de>
Sun, 25 Apr 2010 22:19:26 +0000 (00:19 +0200)
committerSascha Wildner <saw@online.de>
Sun, 25 Apr 2010 22:19:26 +0000 (00:19 +0200)
commitc8e0b924d5136c97c1b3648c4b6a1d9cfeeb53bc
tree8737d64a439c1a35795160bb56f66a694f5cedc3
parentbc3c93258fef1bc5c843ecf4fb1ef567e8b6b58a
firmware(9): Check for securelevel > 0 instead of PRIV_ROOT.

The patch is modeled after FreeBSD and fixes a panic when loading a
firmware image.

Submitted-by: Johannes Hofmann <johannes.hofmann@gmx.de>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1735>
sys/kern/subr_firmware.c