From nobody Wed Dec 08 06:43:41 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4776018C634F for ; Wed, 8 Dec 2021 06:44:17 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J871X2w19z3rXx for ; Wed, 8 Dec 2021 06:44:16 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f49.google.com with SMTP id z7so3511850lfi.11 for ; Tue, 07 Dec 2021 22:44:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tD5+BFkNnjfXCeeMYk4TXX/K7d0pHeeGqCbx9YcTTrw=; b=x4l5xsEzsIbsm0HBzWfgYx74vZbXYnTdZwrLDmXn/o1AU6ExYpsp3AeeYb1Wafpkno R+jYeGchbUM+kvDywgAjbYHFvBKfdsC9OF7wi7fu1x7v4HRdQEZCL2rfRNdw3snpK5dC aE53CrPJnXnNRjGdCXzx7tMv+nYJ2LsFlSo3iHflKR2DA3QO+Ujb8JJzdiS1nKJ+NTLH QEjKEL/LmLC9/mJA9BtBY1gRfcSscU+4ZyDbBUohxeFIjYOg6QBxBPUTh9ewT2TL7VRZ r4cLtVXQmJVyyeBmnlgH3bHxUzG8G3nJhyT0ZlnhOxC4zZSYRwJzR6gq1MtX3WVY2Hx/ +WFw== X-Gm-Message-State: AOAM530er8Re1GA+J+2vmGLIeA2eBs9dAZZ15nN/ezqWoM8whvZnf7a8 CW3qZ6l9n+UkNQM2U+yqgQIJHO1aN4ff9A== X-Google-Smtp-Source: ABdhPJz7JzvrWzIBjQiDAQFC8eTl2my/s/RKH4pV+qVOk8N2d9XsDQ2IWFyWk983Xj+OJfK9gHKuCA== X-Received: by 2002:a05:6512:aca:: with SMTP id n10mr46834365lfu.265.1638945848940; Tue, 07 Dec 2021 22:44:08 -0800 (PST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id f39sm160587lfv.221.2021.12.07.22.44.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Dec 2021 22:44:08 -0800 (PST) Received: by mail-lf1-f54.google.com with SMTP id bi37so3586273lfb.5 for ; Tue, 07 Dec 2021 22:44:08 -0800 (PST) X-Received: by 2002:a05:6512:308b:: with SMTP id z11mr44605166lfd.177.1638945847849; Tue, 07 Dec 2021 22:44:07 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: Gleb Popov Date: Wed, 8 Dec 2021 09:43:41 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: What to use in place of abstract unix sockets? To: freebsd-hackers Content-Type: multipart/alternative; boundary="0000000000001139f805d29cd169" X-Rspamd-Queue-Id: 4J871X2w19z3rXx X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.167.49 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-0.05 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; NEURAL_SPAM_MEDIUM(0.95)[0.946]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[freebsd.org]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.49:from,209.85.167.54:received]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.167.49:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] X-ThisMailContainsUnwantedMimeParts: Y --0000000000001139f805d29cd169 Content-Type: text/plain; charset="UTF-8" Hello hackers. I'm porting a software that does the following things on Linux: 1. Binds an abstract UDS (the socket name starts with '\0') 2. Launches a "client" process. 3. "Client" uses chroot() to constrain itself in a sort of jail. 4. "Client" connects to the abstract UDS. From what I can tell, this works because abstract UDS's do not use the filesystem namespace, which is why "client" can connect out of the chroot'ed environment. What can I do to make this software work for FreeBSD? Simply using regular UDS instead of abstract ones doesn't work for obvious reasons - the "client" can't find the socket file. Thanks in advance. --0000000000001139f805d29cd169--