Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp119449pxb; Thu, 2 Sep 2021 21:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj11SKyChfUOfqZJ+QYIxTyT4Q0AXCPaMarKsMUIjAgkR2yJB/bRhDnNsCQWzDHD8SDdj5 X-Received: by 2002:a02:946d:: with SMTP id a100mr971838jai.118.1630642043546; Thu, 02 Sep 2021 21:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630642043; cv=none; d=google.com; s=arc-20160816; b=nTnX5v0MJDX52u7AjriDMiaBxfhSGWr5vQFsgAHKBJX20YH/JpsXqpoiIUOKdjAU5b 6oy2mxgwwuC+g98rz4H+NYgJTi6JjbDBR7ui3Y1ixJFh0Xy2neLkWD7oH2DcWEY8jGu9 +uxYxvsTf6/Xot+QYZYCPSPX/z7NL/Yug0HjPFmAcHaYZFXUnXlKiXX+BCFclku7C3bL A91y63afw9lhQrIMNjdat2x4fyOrp4rg6wxU6zTNIpralv1k0N71eVjxbc+4SGoYQ3aU 30Kg+qmzpGRaBDsGAYsPIU9kM0csWvkKweAtyYrQnUlN8oyJpOaNO5kRCIf3fXOpvqB3 2IwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=or94MOMQNO4V7+Z142ceN8mvgFpWoJp501jCQdNXPKs=; b=OADsyEGHuLCmCQq6aiotysfbsLWQot6+j4iz/9VNbs0Zir3T0zgiZ/YVc4cIFniGpn iQOM83WRf2bktPOBPHaFWCapFMYItX7ZarTNGzl4vIH0A3lBNecK1ETsXj1Ixjja8p2K bzO4Uu+m3E9ewxgByp63DzwYuaoiaGuOH2ZRD4hwJi2uwCpojtoeSOgIbdOwXCOUEKHI IcNJYgqgj+YWvlBp0TkzNQzgi2P4Q84EHEh+uYn6DuXG3/mqyDtBlzfhCpSQpaxEE3WC TrAZ4pM0Diw4xyEgD/mqpVWHoqvD4T23khmWc/2IycCSUl5N8AkHqzTy1B9sPozE9Tcc /57g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si3886575ilh.146.2021.09.02.21.07.11; Thu, 02 Sep 2021 21:07:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234185AbhICDob (ORCPT + 99 others); Thu, 2 Sep 2021 23:44:31 -0400 Received: from mail.hallyn.com ([178.63.66.53]:50096 "EHLO mail.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbhICDoa (ORCPT ); Thu, 2 Sep 2021 23:44:30 -0400 Received: by mail.hallyn.com (Postfix, from userid 1001) id 1D60E7E8; Thu, 2 Sep 2021 22:43:29 -0500 (CDT) Date: Thu, 2 Sep 2021 22:43:29 -0500 From: "Serge E. Hallyn" To: Austin Kim Cc: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] apparmor: remove unused argument of aa_umount() Message-ID: <20210903034328.GA1636@mail.hallyn.com> References: <20210831000912.GA4588@raspberrypi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210831000912.GA4588@raspberrypi> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 31, 2021 at 01:09:12AM +0100, Austin Kim wrote: > The 'flags' argument in aa_umount() is not used, > so it had better remove unused argument. Seems fine, thanks. Reviewed-by: Serge Hallyn > Signed-off-by: Austin Kim > --- > security/apparmor/include/mount.h | 2 +- > security/apparmor/lsm.c | 2 +- > security/apparmor/mount.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/security/apparmor/include/mount.h b/security/apparmor/include/mount.h > index a710683b2496..9327456cda09 100644 > --- a/security/apparmor/include/mount.h > +++ b/security/apparmor/include/mount.h > @@ -42,7 +42,7 @@ int aa_new_mount(struct aa_label *label, const char *dev_name, > const struct path *path, const char *type, unsigned long flags, > void *data); > > -int aa_umount(struct aa_label *label, struct vfsmount *mnt, int flags); > +int aa_umount(struct aa_label *label, struct vfsmount *mnt); > > int aa_pivotroot(struct aa_label *label, const struct path *old_path, > const struct path *new_path); > diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c > Index 0834ba6a8a2e..58ba3f0605d2 100644 > --- a/security/apparmor/lsm.c > +++ b/security/apparmor/lsm.c > @@ -574,7 +574,7 @@ static int apparmor_sb_umount(struct vfsmount *mnt, int flags) > > label = __begin_current_label_crit_section(); > if (!unconfined(label)) > - error = aa_umount(label, mnt, flags); > + error = aa_umount(label, mnt); > __end_current_label_crit_section(label); > > return error; > diff --git a/security/apparmor/mount.c b/security/apparmor/mount.c > index aa6fcfde3051..e33de97839ec 100644 > --- a/security/apparmor/mount.c > +++ b/security/apparmor/mount.c > @@ -610,7 +610,7 @@ static int profile_umount(struct aa_profile *profile, const struct path *path, > AA_MAY_UMOUNT, &perms, info, error); > } > > -int aa_umount(struct aa_label *label, struct vfsmount *mnt, int flags) > +int aa_umount(struct aa_label *label, struct vfsmount *mnt) > { > struct aa_profile *profile; > char *buffer = NULL; > -- > 2.20.1