Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp981335pxb; Fri, 3 Sep 2021 19:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB186Mz0WdA8kbS7nbeyQM33y0aAN6b5Zh0nsk5s+LItpvNm6Smg1cgUrKkhoZgyxX7Np9 X-Received: by 2002:a05:6402:8c6:: with SMTP id d6mr2101872edz.30.1630722612232; Fri, 03 Sep 2021 19:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630722612; cv=none; d=google.com; s=arc-20160816; b=XB/6crGyttNHlLTGwyQjyqXN3YI36utSwflXTiDyFsXuHAPPFxoCnwpgNPksu6vg8I SOR9fkfiw9b1VPziGPE1riwnJybjda+FHUD5b3ty4IQISg41yXJT1X+knoTymLVu5RGH 20SGtXngIpDrNVmAIPz40TsxehlGrm2vfXCrynebDiQHY0m579vwDnYTfygQPBanNAA6 x9OQk6Aj/n1uRl3nuUd1n2fyuik6KffjenU9QVyBGOKhp6iPnKdWfheveE7zm/2dAsbA I7DGrc+dgEEEsta4ZJeyGraroIUbn6wF2cweBXMHhkzircJTEx1xNUG5DmyvmDqZ/Pua M+zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=I0YxCvUghet9DhkiuBhmPHLgPAw3XzzyXfrXY1VG23c=; b=DoPu3icliPvKm0Nl69yBZF5fx0FB67zmW75XotMB9ipU+W7XCzOcNs/LEGj+7qJqgr J9p7lZfroYNnLch6Nn6NAIzSne2x91hO+R3aETMx3xY0sW69H4Zq5DkDx6XyBfuC85Is zCMfFRKWO75Mi7BlVCb1kxKrTgJQdQ3VVlWkvzDZDkLtw90/lvqoDV2UH8xtjFtKO3If c0vDCIc8/a3uSyp5mKBEVDBpveslYukZtk3V2HYBaBBzGiGuyRhiLsJpmuZViM1IrgDK MasJQL9ixJI8xkZ6q9YmbmseNN6+2vsUzEtGCkuEVxtrzNbywI/UZfE4pxP5AfHQv1YS 9gsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oni0LfF7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j25si944557eje.334.2021.09.03.19.29.47; Fri, 03 Sep 2021 19:30:12 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oni0LfF7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350805AbhIDC2z (ORCPT + 99 others); Fri, 3 Sep 2021 22:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231389AbhIDC2z (ORCPT ); Fri, 3 Sep 2021 22:28:55 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 638F7C061575; Fri, 3 Sep 2021 19:27:54 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id u11-20020a17090adb4b00b00181668a56d6so749827pjx.5; Fri, 03 Sep 2021 19:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=I0YxCvUghet9DhkiuBhmPHLgPAw3XzzyXfrXY1VG23c=; b=oni0LfF7wnSgMcsYp+GqcVd8hC4djLUJXjwH+/Jk9+BKPNa6I9jQdtqSx2d9YDBSEl rIDtvRVOpVhSYIRAmrBmWFrUQ75jVh969uKlzH2N9By6yOqHrnp+NUHEEFS4h/ZX+kWJ J4c9Us85LJNFvQlUwpsbDGFmwUJCwd5nqqzzIC3r1KvIOvKScEj+WBczPnj99D2DJX0g FuhOgEliUZcFpedW2qvDNqC7+HqgS5khWLXBSibB05xlPqh3DkOXp736ZjN4QH8VXI6W PxVKc5mpxOgZ7DgI6hmh0LA6f2g2vIVahmW2eJLrDZ0CuMGesYrs8YilDKviiXfFae5r oB/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=I0YxCvUghet9DhkiuBhmPHLgPAw3XzzyXfrXY1VG23c=; b=CGPWpn6D9cl78LcEVC+sKfQ1/evHmQkMwFtexK3mLcF7jyntApeeJq+0/NrWXsCKg9 OKz3AwnIIc03Gui5aVjuUGMNppSIOZ6oSAWknmpDyJ04ZCbzUuPrVkPMjhyDOXNnhZ3J 094ygPSS5HfwcGrn8snQMeojtTZN6YGpIQFS3OvyrdDi+6FIhCE1prpMEbGQhdS6SPrQ yytslXsrykDfwzaZVeadhOi5BUH7V+yNeOF5jdTw8Y6B6cugIs75nJ9c1Wq4h78x4kdS p1i+oBJ4AlUPleDqCj0jM5ZJERp9D4DksSm3mcQDATkxn073hYNtCHl6AVXlZcLm5/8X mqZQ== X-Gm-Message-State: AOAM530j0dPzsGkTF02sCe5FnU3EBJXqJ02TYiwPgG61n6WDt9qodZyb b7oCJKYpkKEkKILsyit2tNa+g+rtWDZeAlSkpnyk1rLr3vwwK/vt X-Received: by 2002:a17:90b:3b4d:: with SMTP id ot13mr1974778pjb.67.1630722473874; Fri, 03 Sep 2021 19:27:53 -0700 (PDT) MIME-Version: 1.0 References: <20210831000912.GA4588@raspberrypi> <4b68307a-26a8-c17b-bbf6-1fb9b88e7f9e@canonical.com> In-Reply-To: <4b68307a-26a8-c17b-bbf6-1fb9b88e7f9e@canonical.com> From: Austin Kim Date: Sat, 4 Sep 2021 11:27:44 +0900 Message-ID: Subject: Re: [PATCH] apparmor: remove unused argument of aa_umount() To: John Johansen Cc: James Morris , "Serge E. Hallyn" , linux-security-module , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021=EB=85=84 9=EC=9B=94 4=EC=9D=BC (=ED=86=A0) =EC=98=A4=EC=A0=84 8:30, Jo= hn Johansen =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84= =B1: > > On 8/30/21 5:09 PM, Austin Kim wrote: > > The 'flags' argument in aa_umount() is not used, > > so it had better remove unused argument. > > > > Signed-off-by: Austin Kim > > looks good, I'll pull this into my tree Great, thanks! > > Acked-by: John Johansen > > > --- > > 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/incl= ude/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 =3D __begin_current_label_crit_section(); > > if (!unconfined(label)) > > - error =3D aa_umount(label, mnt, flags); > > + error =3D 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 *profil= e, 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 =3D NULL; > > >