From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from markus.defensec.nl (markus.defensec.nl [45.80.168.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C984F2E7192 for ; Wed, 23 Jul 2025 13:39:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.80.168.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753277987; cv=none; b=S3jhlSGYdoH9W+KdyEiajnFOIyw1LxTYQFtl6YAzA7WUOeigGiNkNsGvqU3H3TJgt+rKetcVequl/JbJOHj4Er6b0JyYC9sEcWs9MlsqPhanX8R/7P5SGvycDzgMHumt3jod8q+j7WTkQeeetHWOY8IeGP03WGZpdsDKSUAAD0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753277987; c=relaxed/simple; bh=6AFLAMtjwkjXqo31Yfu7KHgxfdKjgTYMDxjg17k1pzQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=edhR4ohIwP89phjhlCZYhA8i9xOsvGG9fatfsme0i1uT8dJqWWBPohD8GxBXf25HihEHF5/4HCHnHOTfZILeVeMCAVxEXENYl7ALgizGvtMjt8OKUWS3BIc2PMTKB/39NWMfpAAMX3ybBvu7dUtIdaG4pw68BHZNfB9jDV6clVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=defensec.nl; spf=pass smtp.mailfrom=defensec.nl; dkim=pass (1024-bit key) header.d=defensec.nl header.i=@defensec.nl header.b=KTzLnPnm; arc=none smtp.client-ip=45.80.168.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=defensec.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=defensec.nl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=defensec.nl header.i=@defensec.nl header.b="KTzLnPnm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=defensec.nl; s=default; t=1753277983; bh=6AFLAMtjwkjXqo31Yfu7KHgxfdKjgTYMDxjg17k1pzQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KTzLnPnmjrAk52dVwHUZbvWljHIobcIEnr4HRQNMCPgCHc/RSqwlpBaecWvIho5qh EB1zFkv0kbIDrZ5JPyCaRlgS+zZfi7wm4CQyZrXJbQOAlxSN64c++fM4MiXGU9kYrG niNi8m9+1s4tPtkesUuOEVWAXxYOhuaGLvBAmzjc= Received: from nimbus (nimbus.lan [IPv6:2a10:3781:2099::514]) by markus.defensec.nl (Postfix) with ESMTPSA id 013561B3A4B; Wed, 23 Jul 2025 15:39:42 +0200 (CEST) From: Dominick Grift To: Russell Coker Cc: SELinux Reference Policy mailing list , Chris PeBenito Subject: Re: systemd and dontaudit In-Reply-To: <12737856.O9o76ZdvQC@dojacat> (Russell Coker's message of "Wed, 23 Jul 2025 22:57:56 +1000") References: <13022276.O9o76ZdvQC@xev> <2ee08e8f-59f4-418d-ab5e-01e0addaf17b@ieee.org> <12737856.O9o76ZdvQC@dojacat> Date: Wed, 23 Jul 2025 15:39:42 +0200 Message-ID: <871pq758m9.fsf@defensec.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: selinux-refpolicy@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Russell Coker writes: > On Wednesday, 23 July 2025 22:37:09 AEST Chris PeBenito wrote: >> On 7/22/2025 8:15 PM, Russell Coker wrote: >> > kernel_dontaudit_getattr_proc(systemd_logind_t) >> > >> > The above hides the fact that systemd-logind wants to statfs /proc and >> > that >> > can cause it to abort in some situations, to refuse to respond to dbus >> > requests, and to delay all logins by 25 seconds. >> >> Can you elaborate on what one of those failing situations is? > > It only happened repeatedly on one of my systems. I think that triggering > that particular condition required multiple settings, so just not allowing > statfs isn't necessarily enough, some other combination of things allowed and > denied seemed necessary to get it into that state. The one system that had > this had it persist across reboots but other systems never had it. I had seen > it briefly happen on other systems but a reboot fixed it. > > I didn't put as much effort into investigating this as I might have because > the access in question is fairly innocuous. I suspect this is triggered by libcap-ng's init function: https://github.com/stevegrubb/libcap-ng/blob/master/src/cap-ng.c#L236 -- gpg --locate-keys dominick.grift@defensec.nl (wkd) Key fingerprint = FCD2 3660 5D6B 9D27 7FC6 E0FF DA7E 521F 10F6 4098 Dominick Grift Mastodon: @kcinimod@defensec.nl