On 09/16/2015 05:41 PM, [email protected] wrote:
From: Ira Weiny <[email protected]>
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.
Signed-off-by: Haralanov, Mitko <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
---
drivers/staging/rdma/hfi1/device.c | 48 ++++++++++++++++++++++++++++++++++--
drivers/staging/rdma/hfi1/device.h | 3 ++-
drivers/staging/rdma/hfi1/diag.c | 5 ++--
drivers/staging/rdma/hfi1/file_ops.c | 9 ++++---
4 files changed, 57 insertions(+), 8 deletions(-)
Can add my
Tested-by: Donald Dutile <[email protected]>
Verified that permissions were modified as expected, and now
work with OPA libs that failed due to previous permission settings.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html