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
..
2015-09-17 18:11:26 +00:00
2015-03-13 20:14:35 +00:00
2016-07-04 03:19:06 +00:00
2016-07-04 03:19:06 +00:00
2017-06-02 02:37:17 +00:00
2017-05-24 14:24:47 +00:00
2016-07-04 03:19:06 +00:00
2017-02-14 13:35:59 +00:00
2016-07-06 16:02:15 +00:00
2017-02-14 13:35:59 +00:00
2015-05-21 04:19:22 +00:00
2015-06-18 06:00:17 +00:00
2015-06-18 06:00:17 +00:00
2016-07-04 03:19:06 +00:00
2016-07-04 03:19:06 +00:00
2017-02-14 16:49:32 +00:00
2017-02-14 13:35:59 +00:00
2016-04-22 06:25:32 +00:00
2015-10-02 21:09:49 +00:00
2015-05-06 16:25:20 +00:00
2016-07-14 17:16:10 +00:00
2016-07-14 17:16:10 +00:00
2017-06-02 02:35:16 +00:00
2017-10-31 00:07:04 +00:00
2017-02-14 13:35:59 +00:00
2017-04-02 20:57:59 +00:00
2017-07-28 21:42:59 +00:00
2016-07-14 17:16:10 +00:00
2016-07-08 21:30:18 +00:00
2017-06-02 02:35:16 +00:00
2015-05-21 20:11:52 +00:00
2016-07-14 17:16:10 +00:00
2016-07-14 17:16:10 +00:00
2015-06-18 06:00:17 +00:00
2015-06-18 06:00:17 +00:00
2017-04-27 05:48:52 +00:00
2016-05-13 14:38:04 +00:00
2017-02-14 13:35:59 +00:00
2017-02-14 13:35:59 +00:00
2017-02-14 13:35:59 +00:00
2017-04-28 05:09:51 +00:00
2016-07-04 03:19:06 +00:00
2015-04-23 14:22:20 +00:00
2016-07-11 06:31:15 +00:00
2016-07-04 03:19:06 +00:00
2017-01-08 20:29:35 +00:00
2016-07-04 03:19:06 +00:00
2017-06-16 01:26:01 +00:00
2017-06-02 02:35:16 +00:00
2016-07-04 03:19:06 +00:00
2016-07-04 03:19:06 +00:00
2016-07-06 16:02:15 +00:00
2017-11-11 22:50:14 +00:00
2016-07-04 03:19:06 +00:00
2016-07-04 03:19:06 +00:00
2017-03-22 16:53:03 +00:00
2017-07-28 21:47:10 +00:00
2016-07-04 03:19:06 +00:00
2015-05-11 21:24:10 +00:00
2017-01-08 20:58:58 +00:00
2017-10-29 08:17:03 +00:00