From nobody Sun Oct 06 20:40:59 2024 X-Original-To: bugs@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 4XMDhD0xP7z5YWKC for ; Sun, 06 Oct 2024 20:41:00 +0000 (UTC) (envelope-from bugzilla-noreply@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 4XMDhC5Hvcz4mLV for ; Sun, 6 Oct 2024 20:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728247259; 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: in-reply-to:in-reply-to:references:references; bh=t0pJ1BTxvG38GjJhmv0ozFx92+SSv1ZVV7L/X6pCKwI=; b=xXqWwHCWg0vffadz2FnbaGRDMCPX4Si+Yepdr6Ubd7sI6jn/YFSw5vFut3/3lEQbNYMLx7 APbC9EuSsR4CbuRFfK/jkdGUN4PsGGHW09z8rfTdy8mhcnD4jXy1nQ4AHY86aW9K08WD/Q CmrsHpV9d3FGa1n/TtnKRvZMOhX71Pwe6O0RG3f2ldAPJTn4dh6NOc/wwRpDuQT5U+a4PB m0E7IQx5ldB2vH8JLyVrscIiAairb4sXXccDvomAXh82WeijHk+O5wAypQtosQbYqS/fYZ tsQkpqrZJXPJgxW+akH/vmPw61xkrkytjXmX8yZka8fCTRcI7Z4grFQBOy0mOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728247259; a=rsa-sha256; cv=none; b=RwCe8ciwF2j7ExEW+Lu0KBZEjrZ/YsCEzWclTLQNhjzsF8dq1FZGXwOhYlsrQe/QTPoOG4 YEWYq5ORhfxeQU5eM8FGl6MsdYUOHPiYafrxvnAf9LQEo+Mb9RIUApn8p2GAjuq13jf6Mn QOEvOQkP8uJtAOIPzxoPzH+LrA7uBFAkCuAcqx3JfZmp0rrXsaKNofKXlVcVBNrJMOky6L ICJmYe1cyRdxJNaiHVMFYxcAP6v+uaQHhbZPGZZHWJVdhPJzc3QD3iBCzySTzV1yzFtJEF eDjcTnd+f7LF+RGkI3YTu4EvsG2U+eZ6AZR8XDubG2ytxM0BUj48TVqXOrlaTA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4XMDhC4vbdzHJj for ; Sun, 6 Oct 2024 20:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 496KexIa043275 for ; Sun, 6 Oct 2024 20:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 496KexGe043274 for bugs@FreeBSD.org; Sun, 6 Oct 2024 20:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281820] mdo: failed to call initgroups: Operation not permitted Date: Sun, 06 Oct 2024 20:40:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jlduran@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281820 --- Comment #1 from Jose Luis Duran --- Created attachment 254060 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D254060&action= =3Dedit WIP: Not thoroughly tested - mac_do: Allow a gid-only rule to any - mac_do: Avoid locking around vn_fullpath() - mac_do: check if freebuf is non-NULL before freeing This is my weekly progress on this bug. I would like to test it further, a= nd familiarize with the code a bit more before submitting it for review. Posting it here just in case it is of any help. Tests: As 'root' issue: # kldload mac_do # sysctl security.mac.do.rules=3Dgid=3D0:any [1] # sysctl security.mac.do.rules=3Dgid=3D1001:any [2] A user 'freebsd' already exists with a GID 1001 and belongs to 'wheel': $ mdo pkg upgrade [1] [2] Updating FreeBSD repository catalogue... ... --=20 You are receiving this mail because: You are the assignee for the bug.=