summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2025-01-07 21:34:50 +0300
committerChristian Brauner <brauner@kernel.org>2025-01-10 16:54:07 +0300
commit3e914febd79a8d1a78ee6e67ff3fa4214d6d1d57 (patch)
treec946b49553e9b25cf055f367afd6b7ea9a1c5e12 /tools/perf/scripts/python/export-to-postgresql.py
parent92f08e9d3cf0f8005ac6fcb931e3c388efc3ac49 (diff)
downloadlinux-3e914febd79a8d1a78ee6e67ff3fa4214d6d1d57.tar.xz
afs: Add rootcell checks
Add some checks for the validity of the cell name. It's may get put into a symlink, so preclude it containing any slashes or "..". Also disallow starting/ending with a dot. This makes /afs/@cell/ as a symlink less of a security risk. Also disallow multiple setting of /proc/net/afs/rootcell for any given network namespace. Once set, the value may not be changed. This makes it easier to only create /afs/@cell and /afs/.@cell if there's a rootcell. Signed-off-by: David Howells <dhowells@redhat.com> Link: https://lore.kernel.org/r/20250107183454.608451-3-dhowells@redhat.com cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions