From nobody Tue Oct 22 18:45:23 2024 X-Original-To: dev-commits-src-main@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 4XY1MR6v3Gz5Vk5w; Tue, 22 Oct 2024 18:45:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XY1MR6LlDz4lYg; Tue, 22 Oct 2024 18:45:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729622723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9AoxMbN7Pd43zSpoF8/ZcnqhxuKG4EQJqtlSUytMaws=; b=K1OEyGnyye0aTlOSaA5kT90xGXGAL2p6fRtoZTfKTjixQ5eFhh9h8/KGLJFV4W7S3DZHjn 1SRuKpL/WP4meGUgJ03WzbIBAonP837UgSY3lA3eh0K6SvEpZkdUBAbxbyWJPIpM/v9h5j /ulroRPFBJoynCtQL/7Eavq8Ol3p+FBcv8O4bFAM3gySg/bnFiut+W0vqwUm2aonoo6JdG vSYr0JJs5XZSn8XEQq33aguLpdWFG6vWjNVPep3xuRlhxsgnBS9HB2maqOfdpS16nKuZaS Bclr02FHWQaQanv53FILfsGbY2MdRGmexuMa1aIdqXQ0BeiSyzTGf21LJG9I5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729622723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9AoxMbN7Pd43zSpoF8/ZcnqhxuKG4EQJqtlSUytMaws=; b=bsp82TeC3Nn7br7/Q3MexfbIlsqE0TlHMnTbfro/OsTe9CECnxOVfh37bXFJ9tzICqZBx+ Hc3AI/nQT2uGxuEm9P6Bh6gO/VXtZuBoxcxcIOSXk1ALI7jbsbEmgu35Qnco8wVB7wtNst UxPjRKZlaQAR7MzctemX33XKUH0XWmJ3w8KJE0ZjF97k7LI+65yYNeXlLD3oQkgGh63hHL jksK5PqN5d6FoP69fAgOJBbhHEbotQmS0QpZMlGJm8xcSqaZOAmiI1XJ0t5BCec+5Rpawe IxxdnRT+m5N3Qxewh3vgGnFAsG2KY38H+6nVrNEHjB86jgI3cJytdBIFIg7wtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729622723; a=rsa-sha256; cv=none; b=oKc9VAC0ejs2Ns01MWHuAusDJSmhk9RWLwg30yuGBueH6kEizrXOeQGvQQRO8hmIZO4gHv L13L6iPvt6y/K5l9A/xAiQwJzaGX0P/iGutxbazv4w6RTwhJ3ZA4B7VZV8BHOujy87aKUw k/sQArNSkCZsQlxK7CCdQhWZOzuUr7IIhN2RjSTq8W4myUtw99HO6oHT1c0WiSLQ32gAgc ICY6e7jpBAjQ4ZOgN/ltKyDvQWMoF9WOCCj1yi9g8heDqEY5fnWGm4mL5gkjGeSWhc5xpN 9YD5eCqo14jv/kt4XTfzp7vVVLuglOIrtlZlxHCEQK9bkajcreoS0ApeFwmp3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XY1MR5qbCzQGK; Tue, 22 Oct 2024 18:45:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49MIjNMS023948; Tue, 22 Oct 2024 18:45:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49MIjNga023945; Tue, 22 Oct 2024 18:45:23 GMT (envelope-from git) Date: Tue, 22 Oct 2024 18:45:23 GMT Message-Id: <202410221845.49MIjNga023945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 8ae9921f2e9e - main - sys_capability.c: update the source of CAPENABLED List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ae9921f2e9e770462613bb6bae76a470dbdfcbd Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=8ae9921f2e9e770462613bb6bae76a470dbdfcbd commit 8ae9921f2e9e770462613bb6bae76a470dbdfcbd Author: Brooks Davis AuthorDate: 2024-10-22 17:49:43 +0000 Commit: Brooks Davis CommitDate: 2024-10-22 18:44:41 +0000 sys_capability.c: update the source of CAPENABLED System calls allowed in capability mode have been specified by the CAPENABLED flag in syscalls.master since 2021. --- sys/kern/sys_capability.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/kern/sys_capability.c b/sys/kern/sys_capability.c index e71dc4f3285b..d43102ab7849 100644 --- a/sys/kern/sys_capability.c +++ b/sys/kern/sys_capability.c @@ -50,11 +50,12 @@ * derived from existing capabilities, but only if they have the same or a * strict subset of the rights on the original capability. * - * System calls permitted in capability mode are defined in capabilities.conf; - * calls must be carefully audited for safety to ensure that they don't allow - * escape from a sandbox. Some calls permit only a subset of operations in - * capability mode -- for example, shm_open(2) is limited to creating - * anonymous, rather than named, POSIX shared memory objects. + * System calls permitted in capability mode are defined by CAPENABLED + * flags in syscalls.master; calls must be carefully audited for safety + * to ensure that they don't allow escape from a sandbox. Some calls + * permit only a subset of operations in capability mode -- for example, + * shm_open(2) is limited to creating anonymous, rather than named, + * POSIX shared memory objects. */ #include