Skip to main content

validate_socket_path

Function validate_socket_path 

Source
pub fn validate_socket_path(socket_path: &Path) -> DaemonResult<()>
Expand description

Validate that a socket path is safe to use.

ยงSecurity Checks (TIGER-P3-01, TIGER-P3-04)

  1. Path must be within the system temp directory
  2. Path must not contain symlinks
  3. Path must not escape temp dir via .. traversal