...

Source file src/github.com/Microsoft/hcsshim/internal/runhcs/util.go

Documentation: github.com/Microsoft/hcsshim/internal/runhcs

     1  package runhcs
     2  
     3  import "net/url"
     4  
     5  const (
     6  	SafePipePrefix = `\\.\pipe\ProtectedPrefix\Administrators\`
     7  )
     8  
     9  // ShimSuccess is the byte stream returned on a successful operation.
    10  var ShimSuccess = []byte{0, 'O', 'K', 0}
    11  
    12  func SafePipePath(name string) string {
    13  	// Use a pipe in the Administrators protected prefixed to prevent malicious
    14  	// squatting.
    15  	return SafePipePrefix + url.PathEscape(name)
    16  }
    17  

View as plain text