summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDave Marchevsky <davemarchevsky@fb.com>2022-07-11 10:48:08 -0700
committerMiklos Szeredi <mszeredi@redhat.com>2022-07-21 16:06:19 +0200
commit9ccf47b26b73ecf5b7278a4cb8d487d8ebb4c095 (patch)
treea74a0364b8eb36b4824856ea84270a7a2967efd1 /tools/perf/scripts/python
parentc64797809a64c73497082aa05e401a062ec1af34 (diff)
downloadkernel-9ccf47b26b73ecf5b7278a4cb8d487d8ebb4c095.tar.gz
fuse: Add module param for CAP_SYS_ADMIN access bypassing allow_other
Since commit 73f03c2b4b52 ("fuse: Restrict allow_other to the superblock's namespace or a descendant"), access to allow_other FUSE filesystems has been limited to users in the mounting user namespace or descendants. This prevents a process that is privileged in its userns - but not its parent namespaces - from mounting a FUSE fs w/ allow_other that is accessible to processes in parent namespaces. While this restriction makes sense overall it breaks a legitimate usecase: I have a tracing daemon which needs to peek into process' open files in order to symbolicate - similar to 'perf'. The daemon is a privileged process in the root userns, but is unable to peek into FUSE filesystems mounted by processes in child namespaces. This patch adds a module param, allow_sys_admin_access, to act as an escape hatch for this descendant userns logic and for the allow_other mount option in general. Setting allow_sys_admin_access allows processes with CAP_SYS_ADMIN in the initial userns to access FUSE filesystems irrespective of the mounting userns or whether allow_other was set. A sysadmin setting this param must trust FUSEs on the host to not DoS processes as described in 73f03c2b4b52. Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com> Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
regulator: bd70528: Support ROHM BD70528 regulator blockMatti Vaittinen 2018-12-13regulator: mcp16502: add regulator driver for MCP16502Andrei.Stefanescu@microchip.com 2018-10-12regulator: lochnagar: Add support for the Cirrus Logic LochnagarCharles Keepax 2018-10-08regulator: stpmic1: add stpmic1 regulator driverpascal paillet 2018-09-28regulator: bd718xx: rename bd71837 to 718xxMatti Vaittinen 2018-08-10regulator: add QCOM RPMh regulator driverDavid Collins 2018-07-30regulator: bd71837: adobt MFD changes to regulator driverMatti Vaittinen 2018-07-11regulator: uniphier: add regulator driver for UniPhier SoCKunihiko Hayashi 2018-05-30regulator: bd71837: BD71837 PMIC regulator driverMatti Vaittinen 2018-05-09regulator: add support for SY8106A regulatorOndrej Jirman 2018-03-09regulator: 88pg86x: new i2c dual regulator chipAlexander Monakov 2017-12-05regulator: sc2731: Add regulator driver to support Spreadtrum SC2731 PMICErick Chen 2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman 2017-09-04Merge remote-tracking branches 'regulator/topic/rc5t619' and 'regulator/topic...Mark Brown 2017-08-30regulator: Add support for stm32-vrefbufFabrice Gasnier 2017-08-15regulator: mt6380: Add support for MT6380Chenglin Xu 2017-07-03Merge remote-tracking branches 'regulator/topic/hi6421v530', 'regulator/topic...Mark Brown