2 # Run ed in restricted mode, allowing the user to edit files in a directory
3 # specific to their client cert.
7 [ -n "$TLS_CLIENT_HASH" ] ||
exit 1
9 mkdir
-p "$var/$TLS_CLIENT_HASH" ||
exit 1
10 cd "$var/$TLS_CLIENT_HASH" ||
exit 1
12 # Impose some severe limits to reduce potential for abuse