Ira Weiny
e116a64fab
IB/hfi: Properly set permissions for user device files
...
Some of the device files are required to be user accessible for PSM while
most should remain accessible only by root.
Add a parameter to hfi1_cdev_init which controls if the user should have access
to this device which places it in a different class with the appropriate
devnode callback.
In addition set the devnode call back for the existing class to be a bit more
explicit for those permissions.
Finally remove the unnecessary null check before class_destroy
Tested-by: Donald Dutile <ddutile@redhat.com >
Signed-off-by: Haralanov, Mitko (mitko.haralanov@intel.com )
Signed-off-by: Ira Weiny <ira.weiny@intel.com >
Signed-off-by: Doug Ledford <dledford@redhat.com >
2015-09-18 11:28:47 -04:00
..
2015-08-14 11:20:20 +02:00
2015-08-17 16:20:45 -07:00
2015-08-12 09:06:39 -07:00
2015-08-14 15:56:32 -07:00
2015-07-14 22:54:55 +02:00
2015-06-26 11:54:29 -07:00
2015-08-03 10:53:58 -07:00
2015-08-14 16:10:04 -07:00
2015-08-20 17:22:56 +02:00
2015-08-14 11:33:47 +02:00
2015-07-09 22:59:49 +02:00
2015-08-13 15:08:25 +08:00
2015-08-17 22:47:43 +05:30
2015-08-13 06:02:19 +02:00
2015-07-31 15:18:41 +09:00
2015-08-19 15:00:08 +02:00
2015-07-18 10:27:12 -07:00
2015-08-21 19:43:18 +10:00
2015-08-10 15:16:48 -07:00
2015-07-02 10:25:22 -07:00
2015-08-05 08:31:59 -07:00
2015-07-01 16:15:05 +03:00
2015-08-01 12:11:58 +02:00
2015-07-01 10:49:25 -07:00
2015-07-19 14:54:45 +01:00
2015-09-11 18:13:35 -04:00
2015-08-21 10:54:53 -07:00
2015-07-31 15:15:41 +02:00
2015-08-20 00:25:26 +02:00
2015-07-15 17:24:45 -07:00
2015-07-01 19:09:11 -07:00
2015-06-22 17:59:09 -07:00
2015-07-23 20:00:35 +10:00
2015-07-02 10:36:29 -07:00
2015-08-12 11:27:29 -04:00
2015-08-21 11:03:06 -07:00
2015-08-12 01:43:49 -07:00
2015-06-30 19:44:57 -07:00
2015-08-10 10:48:11 -07:00
2015-08-03 14:51:30 -07:00
2015-07-24 10:18:39 +02:00
2015-07-01 10:49:25 -07:00
2015-08-30 18:12:20 -04:00
2015-06-26 14:51:15 -07:00
2015-08-09 16:32:22 -04:00
2015-07-25 09:57:56 -07:00
2015-07-27 08:24:39 -05:00
2015-07-25 12:48:05 -07:00
2015-08-20 17:16:37 -05:00
2015-07-02 10:25:22 -07:00
2015-08-01 15:52:58 +05:30
2015-07-21 15:27:27 -07:00
2015-08-10 10:48:11 -07:00
2015-07-06 23:52:21 +02:00
2015-07-02 10:42:13 -07:00
2015-06-23 13:32:38 -07:00
2015-06-23 14:08:54 -07:00
2015-07-24 16:19:25 +01:00
2015-06-18 11:44:41 +03:00
2015-07-18 00:42:31 +02:00
2015-07-23 13:07:04 -07:00
2015-08-23 20:46:22 -07:00
2015-07-01 15:19:35 -07:00
2015-07-02 14:40:49 -07:00
2015-07-24 16:19:50 +01:00
2015-09-18 11:28:47 -04:00
2015-08-18 21:51:54 -07:00
2015-08-14 18:26:23 -07:00
2015-07-23 18:08:29 -07:00
2015-08-03 14:41:48 -07:00
2015-07-24 15:14:04 -06:00
2015-07-27 18:05:05 +03:00
2015-08-10 17:20:32 +03:00
2015-08-06 10:40:35 +03:00
2015-07-17 16:39:53 -07:00
2015-08-13 13:36:22 -07:00
2015-06-24 21:24:10 -04:00
2015-06-29 10:34:42 -07:00