Bartek Rutkowski 569aaa3b97 bhyve: avoid applying capsicum capabilities to file that was not opened
When using -l option targeting file that can't be opened (ie. nmdm module
is not loaded and /dev/nmdm* is specified) bhyve tries to apply capsicum
capabilities to a file that was not opened.

Enclose that code in an if statement and only run it on correctly opened
descriptor also providing meaningful message in case of an error.

Submitted by:	Pawel Biernacki <pawel.biernacki@gmail.com>
Reviewed by:	grehan, emaste
Sponsoied by:	Mysterious Code Ltd.
Differential Revision:	D12985
2017-11-11 22:50:14 +00:00
..
2017-06-02 02:37:17 +00:00
2017-02-14 13:35:59 +00:00
2017-02-14 13:35:59 +00:00
2017-02-14 16:49:32 +00:00
2017-02-14 13:35:59 +00:00
2017-02-14 13:35:59 +00:00
2017-10-29 08:17:03 +00:00