[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190103000213.230652-1-evgreen@chromium.org>
Date: Wed, 2 Jan 2019 16:02:11 -0800
From: Evan Green <evgreen@...omium.org>
To: Andy Gross <andy.gross@...aro.org>
Cc: Bjorn Andersson <bjorn.andersson@...aro.org>,
Brian Norris <briannorris@...omium.org>,
Ben Chan <benchan@...omium.org>,
Evan Green <evgreen@...omium.org>,
linux-arm-msm@...r.kernel.org,
David Brown <david.brown@...aro.org>,
linux-kernel@...r.kernel.org
Subject: [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(-)
--
2.18.1
Powered by blists - more mailing lists