From nobody Sat Apr 11 02:17:32 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2894C3F6B0 for ; Tue, 16 Aug 2022 17:58:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236715AbiHPR63 (ORCPT ); Tue, 16 Aug 2022 13:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234947AbiHPR61 (ORCPT ); Tue, 16 Aug 2022 13:58:27 -0400 Received: from bg5.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 534797A50A; Tue, 16 Aug 2022 10:58:25 -0700 (PDT) X-QQ-mid: bizesmtp75t1660672699tjx496j5 Received: from harry-jrlc.. ( [182.148.12.144]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 17 Aug 2022 01:58:08 +0800 (CST) X-QQ-SSF: 0100000000200060D000B00A0000020 X-QQ-FEAT: 83ShfzFP0oBfXPjbvoBDh05AY293R7I3p4PxOapQ/oj9Qccgz39w9ubSlsBB/ jLiwnA/xVDvzf3P0bRgrViL3Kx/ie919kpwmw7ZCxeNThkng80I0k+ZAYQhI7JqabZCo/LP M/eK8g42ZeE8rVKboNRIU1qXq2Yrysl6KSLBQc3eGzOadDEuUlBfxTOru9+/eLgp0IyVtqD 0eNR5HDyNq0e1nck9qGWuFduPcA23Qgbf29C8di28xwkuDfH4lgz2DYZIEvor+zL72QRAn7 0Gj5Jm/VjbN+FTDkMGsDkGjcXAl+7Zz1JGnDimOLhq3C4j5+vv30cNJYuQ05t+eVGjBQLSk gZ5W5gozR/XfmA0E0ahdoNfF58uHL6EsabRSh7IbMUJloDZFvRWkxc7V1VqTkC8WiAN8YBf X-QQ-GoodBg: 0 From: Xin Gao To: paul@paul-moore.com, stephen.smalley.work@gmail.com, eparis@parisplace.org Cc: selinux@vger.kernel.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] selinux: Variable type completion Date: Wed, 17 Aug 2022 01:58:07 +0800 Message-Id: <20220816175807.8447-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 'unsigned int' is better than 'unsigned'. Signed-off-by: Xin Gao --- security/selinux/hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index beceb89f68d9..13f3271d2c6a 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2392,7 +2392,7 @@ static int selinux_bprm_creds_for_exec(struct linux_b= inprm *bprm) return 0; } =20 -static int match_file(const void *p, struct file *file, unsigned fd) +static int match_file(const void *p, struct file *file, unsigned int fd) { return file_has_perm(p, file, file_to_av(file)) ? fd + 1 : 0; } @@ -2404,7 +2404,7 @@ static inline void flush_unauthorized_files(const str= uct cred *cred, struct file *file, *devnull =3D NULL; struct tty_struct *tty; int drop_tty =3D 0; - unsigned n; + unsigned int n; =20 tty =3D get_current_tty(); if (tty) { --=20 2.30.2