From nobody Thu Oct 31 10:28:14 2024 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 4XfKvX5pytz5bdMP for ; Thu, 31 Oct 2024 10:28:08 +0000 (UTC) (envelope-from vini.ipsmaker@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 4XfKvX26yNz4TGc; Thu, 31 Oct 2024 10:28:08 +0000 (UTC) (envelope-from vini.ipsmaker@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2fb50e84ec7so4993131fa.1; Thu, 31 Oct 2024 03:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730370486; x=1730975286; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Z+WBXGQUW/Ib/SNCPTXLdjCFH610552pXLhn51jNlCQ=; b=iVYprHA0iUszqUxwGcYq+l1roWu7V3hCp5OAbpareNB5G5/FS2KHmQ70GyUXIDki6B dyy2t8ejzHGjvZuhBezQaSK2agXn8z9Cap5C51318C4OGNLqBPAeDjeW6mBDZfplihoI 6NtlcGII5ddx50FLT8V7ckhWFfrh9o7suQ0djeCkfw8yBr3WoPvLxJzHZzi64wx9RwYZ hn/geaODFznHr++JXX39rnPib7BS4kYBqPHJDvhmD+8oJYoxKjznn06VEtz9O1R+t++1 VIPqJPIs05VGGyREn4mv3O1S2OBL2ligc4vKJMeBkiVO/A92xzfUrx4aXPPOtJQBmi81 nGGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730370486; x=1730975286; 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=Z+WBXGQUW/Ib/SNCPTXLdjCFH610552pXLhn51jNlCQ=; b=M7PL0hDc4Kp+9yJcrGoC7O3Rdj+IZHKD41fKH5gU/2Yz02r2qU+xMBbCfxnxdEwd22 8pN9algovUFvvSgxY17ZbQw52lGRZ+2uqF6CwVPJmBs+qsvKghzzSh9vLUM0Gv39cOaZ 2aOwN008nQAmyT96hdv6bpZ1w9DJZJ37KBzVym/3MT3aIdGBR67wv8g+iJi8UVGGHlb5 olCdU6DgLx7pdukaujTFaEvuNsaR+viIHI2LmEiqqj35FDoYIalJJc0qUdGc2OilgCHJ 2p5UtlloUSbqeRSzObtnUwjw+V7erEuLiQD012r2kvJyq9zRjYWK9OYiYjyJe/wFIDuk U6SQ== X-Gm-Message-State: AOJu0YwXmYw8K1jPC/lM4pEKR+fn0SXBUCEFdScBEKgJkhnsrsTiYzkG K2VgrA6Yh9d4xR9LwfQ3SIN2RzGELjU3xiDpyCTasLpR/Rr/AkmoT6aHFAEAFKcdfZtzxAVRazq 5zlYROr1yEyghvse1gTBP66LLtgsqLztY X-Google-Smtp-Source: AGHT+IGWhycsmUHRRz71zz4RudlOvGmkmkHAlMrERMF3XKVf0KEj1qohALPWPgNQ3baUXimM1NHoBgbeP4sk0qx8g8w= X-Received: by 2002:a2e:a984:0:b0:2fb:5d41:bdac with SMTP id 38308e7fff4ca-2fcbdf5faa7mr108557301fa.1.1730370485862; Thu, 31 Oct 2024 03:28:05 -0700 (PDT) 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: =?UTF-8?Q?Vin=C3=ADcius_dos_Santos_Oliveira?= Date: Thu, 31 Oct 2024 07:28:14 -0300 Message-ID: Subject: Re: [rtld] fdlopen(), fdlputpath() and capsicum To: Konstantin Belousov Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4XfKvX26yNz4TGc X-Spamd-Bar: ---- Em qui., 31 de out. de 2024 =C3=A0s 03:09, Konstantin Belousov escreveu: > Try this https://reviews.freebsd.org/D47351 An API like this should work. It's also more flexible as it'd allow me to remove inherited already set fd numbers from the search set. > if (!lvd->can_update || (lvd->unsecure && !trust)) Maybe it's also okay to allow it if the process has already called cap_ente= r()? --=20 Vin=C3=ADcius dos Santos Oliveira https://vinipsmaker.github.io/