From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 818ECD53F for ; Fri, 11 Oct 2024 01:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728609656; cv=none; b=SibDBnZ6h9hCvV5JqO61jz99hekI8omFSt7Q2J4K7dnK4X3gg3WiNX2Llx61FXH8uRb6Ftnby+Aql3YY5QYHsG8RAMo3EwGX6BxMqCzyTo5DccyE5+Cskbld7p9aUEmO/bsviR1d/XRGuQsZz5VYGuE1owZ4dilG2y7oM+p1S4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728609656; c=relaxed/simple; bh=J21f4ExjS1aOz7pOzlm+buIPn3KKSC2NKTl2Put8zxI=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Cc:Subject: References:In-Reply-To; b=dXdGiPJjybEMajY8MH+y8QD1vCNsCtG+p4jt3iEmQWjQ0XYWdYNcd5HqE8DyWVi9izyBQKwwufqyFtYWDoChOJfrF0eqkfdB32x3WE+tXIE6/Y7HN8lAXSuXwVTkfe79M52cP7fDKVMhnzaed325fBlXGj3e0wIasf2wd56Byfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=OdRM6saY; arc=none smtp.client-ip=209.85.222.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="OdRM6saY" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-7afcf50e2d0so70901885a.3 for ; Thu, 10 Oct 2024 18:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1728609652; x=1729214452; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :mime-version:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=UwmxlHyqdcIkfUbxcldjXD3k5eAHPqyJ6cSsNTro4sk=; b=OdRM6saYOzff707QPH60ilbsHrj89rR5vXqrkMmdGK3kWhU8UP4h76oh1W472fE1yG 6hZRvvmjaGGDZcFUhzOSyB89fotmLDgmWqV3e8zLWVtnyOiC96KLiy0ssZT7lhj+7BQM P17gT1yNuLnGOns2odyDTewf7lf3vDl9ij0lwXa9A1PqOmDPBja9h0zNObxkdd2cING3 y9V6ab1/Kuu2hH5MW2uPAg68cu0A4P+PF+48Jufa/jTt5ch9ENWWxSSFCbyioT9Ax0FJ LA3RzwtQBENFoVEn/qEj+uKy0c7GwG+nrQKNMTBXb1tS2UFFzA1CC35jhf/XzHImZRdM umJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728609652; x=1729214452; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :mime-version:message-id:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=UwmxlHyqdcIkfUbxcldjXD3k5eAHPqyJ6cSsNTro4sk=; b=SK1ciSaDhRlCM4qNcZcRTHSZJUHNk8BcsuVKeg7D+z+9erYC0S+xj3iC624otz7RIA hvhxWtlWnHCyNjbQR58ac4phycj9p/PJv4RE5cNPFYedeu68ikWMRpa2YdLqj0RXpOE2 U6DF3Cbpu8uF3xXYCDk5McEP+LqhsrNptOoB++/OY8ZSat+DZbJNNTZ4qfiDsO+TNyUN MS6FFIas4+brRo4zFqZA+EUTZBhEZHQ+HYu4hinTEbkEbdyWkGI9IcV4dA766/hZE6Cx jjY2zlq/Po9dBYq5S1ppIaYAz53SRG3J7ULuNRU9ibQgIs5gicseVtQCrNXXpKyxkgr6 JQNA== X-Forwarded-Encrypted: i=1; AJvYcCVW1Dcud+UZG4N4JXBKRPwQGE+Cr73PujF4iZWVXFYEIT0kFBLM4OSX+hlAfavUOsUvAtHNm69NXciX+7PyqqaCPVVm9cg=@vger.kernel.org X-Gm-Message-State: AOJu0YwKVfDlxaj2hMG4P5BtWwU5n3clh1p7wgmLYXM7ejnSp4epoLWM K7vHo/phxESvgZVWTOkjDs1tRkjVbDr/B4HULHXfXqU1hA8JPROjAXkUfiJgHg== X-Google-Smtp-Source: AGHT+IHsP+qjIfAHxSjbfwyU9Ll/Jk/YZJnfQHNgATTxrgV21R4CyfxNf0EaoX4MDa5EPoddGmwvtw== X-Received: by 2002:a05:620a:31a1:b0:7a9:b744:fc38 with SMTP id af79cd13be357-7b11a360c5cmr198405385a.15.1728609652412; Thu, 10 Oct 2024 18:20:52 -0700 (PDT) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b1149894efsm91601185a.131.2024.10.10.18.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 18:20:51 -0700 (PDT) Date: Thu, 10 Oct 2024 21:20:51 -0400 Message-ID: <1fbc3e320cccdf2264404f51f2e1131c@paul-moore.com> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paul Moore To: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Christian Brauner Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-security-module@vger.kernel.org, audit@vger.kernel.org, Stephen Smalley , Ondrej Mosnacek Subject: Re: [PATCH RFC v1 3/7] selinux: Fix inode numbers in error messages References: <20241010152649.849254-3-mic@digikod.net> In-Reply-To: <20241010152649.849254-3-mic@digikod.net> On Oct 10, 2024 =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= wrote: > > Use the new inode_get_ino() helper to log the user space's view of > inode's numbers instead of the private kernel values. > > Cc: Paul Moore > Cc: Stephen Smalley > Cc: Ondrej Mosnacek > Signed-off-by: Mickaël Salaün > --- > security/selinux/hooks.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) Acked-by: Paul Moore -- paul-moore.com