From nobody Wed Feb 12 05:24:36 2025 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 4Yt6Fs41bvz5nQ9k for ; Wed, 12 Feb 2025 05:25:05 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yt6Fs1GxGz42wC for ; Wed, 12 Feb 2025 05:25:05 +0000 (UTC) (envelope-from 6yearold@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-6f7031ea11cso60911237b3.2 for ; Tue, 11 Feb 2025 21:25:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739337904; x=1739942704; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OMwwWMX4ytmj2FMZDYssHAmxH+UZcZqJBQJX2eKkjw4=; b=p4qmPvFhQYf0EXROhxymQgdgpCPY0gf4D8Bo5pxs9SD6iOMUcHAvcx1Od0I0cFRSQd mXYROyUH0Pr5vx9a+6VpY7acH0iKP3uxDc1VX1qrkP6X6T0qcjOcsvYMhVFcEsThlymj rOhhOKy6AjVNkFB7Z60UPx2R+vYyPm8pa4jlRaMxAdH1+LbLStZbJDaiiDwmR8Z6py76 spxVUQJ/VnuhYCwvNRNdb5YWrxY7AHIP7rLcTWbChd17UB6anJs67UQ7LKVhzOA9Rc78 BFSDZNAdS7qqVCNLpdwllRbLJqvd7OdfAPJhBmqRAWPGgwcMiKY+lmVlYoSejNq/5oaj scgA== X-Gm-Message-State: AOJu0Yz/kHduKxnsXKG5ny0n4U0Mq7dwky40Ew/YE8H/8Ej/sqpyuDRF +MCmfXWaxB2+WRl6EyJJZKhA16/J7XfU4cdKw9A0iAsnlkPwARG2yedMcvxl X-Gm-Gg: ASbGncs6Mx3XwTdx97YPd+p0LilnlQWexCE6W/4psQe4Z9l9jmfkoYWoBb5nVZQxClv ieurXJUD2SF3ZsxM2myra3tWQfs7XvDyn0fa4Y+OFvAThdR0oY+52ylF1sbC2OMzRggFdQHJUro xnumd9AVivksJ2DHYNObNmfWO/D+WpG7rer3DyxoS+1jyNbKWHBVNT+Vk/r8hlpMGTtYnB4GUQp LY32PT/bPBQTCc7gB+1n1coMamkIbfWnrU4/7D6qAj2bPaKHFRmwDAm01yXhDetUo0Wp2hxlpX2 rTpW63rlnYhG/egQ+MPDNkd2MsYasL+6L/kf1ocq5fCs+QvVygTHS/A= X-Google-Smtp-Source: AGHT+IGfbObfAQ52taixOv+B3rrjo775/wn67UEJ7vQlpZK79a7xtRIl+kn1oECBtxR6gw2RcoXr8A== X-Received: by 2002:a05:690c:690e:b0:6f7:406e:48d with SMTP id 00721157ae682-6fb1f29bcfdmr22143457b3.35.1739337903889; Tue, 11 Feb 2025 21:25:03 -0800 (PST) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6f99fcf4b5csm24828697b3.18.2025.02.11.21.25.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Feb 2025 21:25:03 -0800 (PST) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-6f6ca1a8aa6so36485607b3.3 for ; Tue, 11 Feb 2025 21:25:03 -0800 (PST) X-Received: by 2002:a05:690c:6709:b0:6f7:ad8d:f566 with SMTP id 00721157ae682-6fb1f2b14bamr19196947b3.36.1739337903372; Tue, 11 Feb 2025 21:25:03 -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 References: In-Reply-To: From: Gleb Popov Date: Wed, 12 Feb 2025 08:24:36 +0300 X-Gmail-Original-Message-ID: X-Gm-Features: AWEUYZmilSZYvfvSBDA0yVPinpxuexdurAFVune9jbw1qhTVMKP5R7gc3uU2hqg Message-ID: Subject: Re: Would we want pidfd_open(2) & SO_PEERPIDFD? To: Konstantin Belousov Cc: freebsd-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Yt6Fs1GxGz42wC X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] On Wed, Feb 12, 2025 at 8:17=E2=80=AFAM Konstantin Belousov wrote: > > On Wed, Feb 12, 2025 at 07:10:25AM +0300, Gleb Popov wrote: > > On Tue, Feb 11, 2025 at 9:57=E2=80=AFPM Konstantin Belousov wrote: > > > > > > > > > The semantic of the Linux' fd returned by pidfd_open() is not compati= ble > > > with our pidfd. > > > > What's the difference, exactly? > > I mean, it is still a descriptor and the only thing I need to do with > > it is check if it is still open. We even have pdgetpid() to go from > > the fd to a PID. This all looks like a perfect match to me. > > Read the man page for Linux pidfd_open(), and compare with our procdesc(4= ). > The one feature _you plan to use_ might be almost identical, but everythi= ng > else is different. So, that's a "no" to my original question and my way forward is patching D-Bus itself?