code: func getUnixSocketFilePermissions(permissions int) (os.FileMode, error) {
  	if permissions > 0 {
  		if permissions > 7777 {
  			return 0, fmt.Errorf("incorrect unix socket file/path permission value '%d'", permissions)
  		}
  		// Convert to correct mode format
  		mode, err := strconv.ParseInt(strconv.Itoa(permissions), 8, 32)
  		if err != nil {
  			return 0, fmt.Errorf("failed to parse socket file permissions %d", permissions)
  		}
  		return os.FileMode(mode), nil
  	}
  	return os.ModePerm, nil
  }
docs: // Resolve permissions and return FileMode