Re: [PATCH] IB/hfi: Properly set permissions for user device files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/16/2015 05:41 PM, ira.weiny@xxxxxxxxx wrote:
From: Ira Weiny <ira.weiny@xxxxxxxxx>

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 <mitko.haralanov@xxxxxxxxx>
Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
---
  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 <ddutile@xxxxxxxxxx>

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux