From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=AdcjLtYG; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id DD0F95A004E for ; Tue, 10 Sep 2024 23:26:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726003618; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AaqaOWG80MzMfHDjxD89OtVdQss3ZCJ5cox5cqnm6nw=; b=AdcjLtYGtdtECtOUj1HrKC7kgNntCV3UOcfVDRH/hWZlN4wB95ve0qwZOmDU7R3keN1e1s VdQ7et7ixeyiiCJvyPuYfoDXQQxd0zyLMqbc0dPWJXkkKedJIGNKz46YPuPUc7YuTwbaDs nWuiHGQXvdeDAm74iXQZdsHHCQT3xhA= Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-394-JoipNIpLPUu_kFaLtZMqmQ-1; Tue, 10 Sep 2024 17:26:57 -0400 X-MC-Unique: JoipNIpLPUu_kFaLtZMqmQ-1 Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-718e2757e5dso323838b3a.0 for ; Tue, 10 Sep 2024 14:26:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726003617; x=1726608417; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AaqaOWG80MzMfHDjxD89OtVdQss3ZCJ5cox5cqnm6nw=; b=r/qrsMjBZnYllq/2lo4yZRLva8DJj0SGdBjOe5s6B1mwjlFI0Su50eiWxdJ+mVk0eC 1nokewE3qMT9REqgR7/+iV6rjuVpZy3jFdTtSnXi+igZgyKjQ5pbCsehsdG9MvyaruT2 8firftqlo4A5e2MCGhxlAZwNUU3l1VJ8dJXG1qz6VzHMndt4Hwn7GnitC+4awOYMInkl Yk6cyIHB0/vc0KG7C+t8DVpH2rYrq5VOfQHUZas5hMbSVnTLB4Z5WUsQQwYat13r49MT O6blTgzu8r6GGF0bebC52lDugV2G7GXeDfEc+RzbMAgFAQGxqQZBmH1lAUC1nMfnpwip fMXg== X-Gm-Message-State: AOJu0YzM7L2F3PRhVX2Pcec4SGRfJDxnI50mfy8LLWQ02Hm4qjiDSBaw CG0mLTgSBPckX+zLJX/O0X4pvOdr5iyx/yi8W3FESIwdul7oAHV2Qiu1txZplAK4G4EoDOukoQ7 batJ0ACcsJ1wFXuRDwQUoQ4lqbLy+9P2QLWxo6/v4oLyU8P8icA== X-Received: by 2002:a05:6a00:6f0c:b0:70d:26cd:9741 with SMTP id d2e1a72fcca58-71907f29d40mr5943493b3a.12.1726003616416; Tue, 10 Sep 2024 14:26:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFx3WqZXgYoKiX3cSFeO1kqsryCXXWoGP5Tsnec3b2dnh0UbIItlj0lVROPvcfBR+B+Qvel/A== X-Received: by 2002:a05:6a00:6f0c:b0:70d:26cd:9741 with SMTP id d2e1a72fcca58-71907f29d40mr5943467b3a.12.1726003615859; Tue, 10 Sep 2024 14:26:55 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71908fe27bfsm1788322b3a.56.2024.09.10.14.26.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 14:26:55 -0700 (PDT) Date: Tue, 10 Sep 2024 23:26:52 +0200 From: Stefano Brivio To: DUO Labs Subject: Re: Porting to macOS Message-ID: <20240910232652.29fddf4c@elisabeth> In-Reply-To: References: Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: KRHWLVFSDYOODOKESL5OCLFNYCFGQ5C2 X-Message-ID-Hash: KRHWLVFSDYOODOKESL5OCLFNYCFGQ5C2 X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi, On Tue, 10 Sep 2024 16:15:33 -0400 DUO Labs wrote: > I started doing some preliminary work on porting passt to macOS That's great to hear! > (I would have responded to issue 6 directly, but I can't seem to make an > account); Sorry for that, you should have your request confirmation email now. I'm reviewing those manually as we have botnets sending automated account requests for seemingly no benefit, so they might be a bit delayed from time to time. > however, I wanted to know how exactly the system works --- > does it _require_ a tap device, or can I safely remove that file from > the compilation target (I know that pasta requires it, though)? passt itself doesn't need a tap device, but note that tap.c is a bit of a misnomer: it refers to anything guest/container side (be it a UNIX domain socket, a pre-opened file, or an actual tuntap network interface). I guess a reasonable way forward would be to conditionally disable pasta-related functions, in tap.c and elsewhere, for non-Linux targets (perhaps easier: conditionally enable them for Linux?). That is, you won't need tap_handler_pasta() and friends, but you'll need tap_handler_passt(). -- Stefano