Skip to content

soc: qcom: rmtfs-mem: Support non-root rmtfs daemons

Evan Green linux-arm-msm lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Removed spurious whitespace changes (Brian, Bjorn)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2soc: qcom: rmtfs-mem: Add class to enable ueventsdrivers/soc/qcom/rmtfs_mem.c+21 -50 replies
2/2soc: qcom: rmtfs-mem: Make sysfs attributes world-readabledrivers/soc/qcom/rmtfs_mem.c+3 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBrian NorrisBjorn Andersson
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] soc: qcom: rmtfs-mem: Support non-root rmtfs daemons

This series contains minor fixes needed to better support running an rmtfs daemon from an unprivileged process:
- Enable uevents on the child character device by adding a struct
class to the parent. I needed these so that I could change the ownership of /dev/qcom_rmtfs_mem1, and drove myself crazy trying to understand why my udev rules never fired.
- Enable access to phys_addr and size sysfs attributes. The daemon
needs to read these, and they don't really contain anything sensitive, so expose them.

I still need CAP_NET_ADMIN to be able to bind to the right qrtr port, but at least with these changes I can run as a different user, and drop all other privileges.

Changes in v3:
- Removed spurious whitespace changes (Brian, Bjorn)

Changes in v2:
- Moved class registration/deregistration into init/exit routines (Brian)

Evan Green (2):
soc: qcom: rmtfs-mem: Add class to enable uevents
soc: qcom: rmtfs-mem: Make sysfs attributes world-readable

 drivers/soc/qcom/rmtfs_mem.c | 32 ++++++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 8 deletions(-)
Signature · 1 line
2.18.1