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 0CEB9277C88 for ; Mon, 28 Sep 2026 04:33:58 +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=1790570041; cv=none; b=kuo1YZXIW96mwxDPr22g5LsyuFZeveCaEB21Q6Akocq+QvoYmK1ZNC6SelfYhDFcDz/fBREGfIuxKucO9IMmC3YeM9Ab1MVx4QYgaTK3GZQkZIwsnT/YxhipYLQk0Oa1eLeMoDiJRcd6zYanY2qCGTCqr0PDQx2jV9Wv/LLoDgo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790570041; c=relaxed/simple; bh=HFpoVsMRyrZZLZYPWMfqQyaRo3CJzjg/HsTZwSZuKX8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Z0lLYBhwUhx5iCi4qGFcv+ashOGvO8r6sHXdDTKBPyPVDkGwG1bVQTht98K92r2KhZZB/H75R62t+HUIbrjaCkrLI93Qr0+ab9AD4Nwzn8nuW2WZR3OUMWnGSI3SuyLf3p5oe98F3RVcDVSQdvgKZFqmvVm5o9SGbifLU0Oaq5s= 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=QAfOOiEp; 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="QAfOOiEp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=defensec.nl; s=default; t=1790569708; bh=HFpoVsMRyrZZLZYPWMfqQyaRo3CJzjg/HsTZwSZuKX8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=QAfOOiEpYgns9ER+fMfTuZb6WElrY1zVgjKHxn5JjEtl+PF3rkxTJppSZya2nZ49O dM9ZDMsOR8CCIQXxUi06DJ+85aimXNiaRw8M15OP//jq8iYImItX5+ORM/C+muRgda 8bWAKSf8UJfwxvHnfQORGprIssb1pDlPxHSx2eVM= Received: from nimbus (nimbus.defensec.nl [IPv6:2a10:3781:2099::514]) by markus.defensec.nl (Postfix) with ESMTPSA id 7B5262F2417; Mon, 28 Sep 2026 06:28:28 +0200 (CEST) From: Dominick Grift To: Russell Coker Cc: selinux-refpolicy@vger.kernel.org Subject: Re: /dev/full In-Reply-To: (Russell Coker's message of "Mon, 28 Sep 2026 11:28:48 +1000") References: Date: Mon, 28 Sep 2026 06:28:27 +0200 Message-ID: <87ld8m3spg.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: > Running a recent Debian kernel with latest git policy without the unconfined > module I'm seeing the following. Why would /dev/full be getting the wrong > label early in the boot? It gets fixed along the way somewhere before the > system goes to multi-user mode. > > # dmesg|grep event_device_t > [ 11.282465] audit: type=1400 audit(1790509173.037:4): avc: denied { write > } for pid=534 comm="modprobe" name="full" dev="devtmpfs" ino=7 > scontext=system_u:system_r:kmod_t:s0 > tcontext=system_u:object_r:event_device_t:s0 tclass=chr_file permissive=0 > # ls -lZi /dev/full > 7 crw-rw-rw-. 1 root root system_u:object_r:null_device_t:s0 1, 7 Sep 27 21:39 > /dev/full > # uname -a > Linux babycakes 7.2.8+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.2.8-1 > (2026-09-26) x86_64 GNU/Linux I noticed similar. I suspect this is due to how userspace_initial_sid polcap is implemented in refpolicy (refpolicy does leverage it does it not?). Misssing an appropriate auto type transition because the scenario changed. -- gpg --auto-key-locate clear,nodefault,wkd --locate-external-keys dominick.grift@defensec.nl Key fingerprint = FCD2 3660 5D6B 9D27 7FC6 E0FF DA7E 521F 10F6 4098 Dominick Grift Mastodon: @kcinimod@defensec.nl