Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp891898pxb; Fri, 3 Sep 2021 16:33:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrDGxt13ErjtZLJrket2qO0goPn5yggRsRUDB4Ou7IK27gqDxaP1iVbC66yTBc8U3xgQVe X-Received: by 2002:a05:6402:1bd1:: with SMTP id ch17mr1463883edb.99.1630712000914; Fri, 03 Sep 2021 16:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630712000; cv=none; d=google.com; s=arc-20160816; b=yBQyi6/uvy9/7Lpr13AJ86f5LMx7FDeL6QlUOszExGJuj+ZdQzXrfW+QSCaXGrID3G CkxY8jxqvvcTiit42v7OVlZv/SGAP93rmV8K9rzU30myywOiedT2Nz/IBMx8ZkRsojgB 876hZi0BYqvnRjAmijelx4VCXulLjYdPKVGb2tPWZrP1q5tQasQ7/7/DFooHThfbUJg2 bodB4FtFJy92UK8IiifX9VTp/udLpWkfmdJVZqtkoHkSH5c0lmsNgXJPp/hz11ry2YNf ibwDu2PXQZsuKYacv6dkS/lXH66qkrAdz5R5lBycOw/jw0VqKcpjn+9nzZcMCJcv+dzM CSNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=fSqoKAVb/v3yd5ZXv3SCjlXdU8zYK++3SwXEnF6fn20=; b=HddUYRy6gWnaYK5Wf4d7gsQmS94IzU1fi1CK8mkrRnbaqhqDqw6CQf80pOXanKOHjM Z6xKl2pgUqLeC8Pr7ES8RjBlQnwDwuFgHX3tnA8CfsRMI+VL/hK+AacB/HaSAi6iTIcq w3xMR8c8Qj+j2BlkORg3WKmvif+f3Est2GPdHIuAJ8EGgYdYVJsf4jDjXVEULftCApjA SXdkUnt0k2zU+IZpFO4X0d0BNinmRF6oXDjNKl2X17Ebh4H1nClXQywRBIs3WbrywuXm z/Vrht/lab7H14s27vIIyD+BeUVLKSLXR/qUCqaumJE4mjODQF9CE82fj21QPHTW2NXH loCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=CatxpOv1; 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=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz20si674025ejc.470.2021.09.03.16.32.57; Fri, 03 Sep 2021 16:33:20 -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=@canonical.com header.s=20210705 header.b=CatxpOv1; 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=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350475AbhICXbt (ORCPT + 99 others); Fri, 3 Sep 2021 19:31:49 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:47722 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244436AbhICXbt (ORCPT ); Fri, 3 Sep 2021 19:31:49 -0400 Received: from [192.168.192.153] (unknown [50.45.173.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id F10574019F; Fri, 3 Sep 2021 23:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1630711846; bh=fSqoKAVb/v3yd5ZXv3SCjlXdU8zYK++3SwXEnF6fn20=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=CatxpOv1jxLe27L85oUPSAbKK+LISLMaWnFnV2z479+ux2h6VWJ34z9EbxRrEn8Dd gb4v0SWvCouewWv/KHH8I/GMPIMBie/6R/fd+0+mWMQmYgQgcgGHwIdRqM4wmA9ABB sZXA0jW3/2PbOOq5FSMrlnwydp/43/qILtmEFuDED7eaT+/4appj9G1okDJHrfbNHi RmP4Io2j4ZXeYgBxRjHDrjSlGrrPsT3jbV3Tz8NBYJJ7tJ0g/8IT5Afn/BrTs8MHby LoPei/avjhbhblLlU/Ag6vxguvzd8IfS2C9xX8SaMnQEXLpyepFKugfQNeKigCNuRb hbAogRnjTHCAQ== Subject: Re: [PATCH] apparmor: remove unused argument of aa_umount() To: Austin Kim , jmorris@namei.org, serge@hallyn.com Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210831000912.GA4588@raspberrypi> From: John Johansen Organization: Canonical Message-ID: <4b68307a-26a8-c17b-bbf6-1fb9b88e7f9e@canonical.com> Date: Fri, 3 Sep 2021 16:30:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210831000912.GA4588@raspberrypi> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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/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; >