From: Evan Green Subject: [PATCH v1 0/2] soc: qcom: rmtfs-mem: Support non-root rmtfs daemons Date: Mon, 17 Dec 2018 16:08:32 -0800 Message-ID: <20181218000834.201748-1-evgreen@chromium.org> Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Andy Gross , Bjorn Andersson Cc: Brian Norris , Ben Chan , Evan Green , linux-arm-msm@vger.kernel.org, David Brown , linux-kernel@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org 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. 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 | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) -- 2.18.1