Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4035154pxb; Mon, 30 Aug 2021 17:10:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxZNMFklfHPZ33rt1zUxWtcmvkEFXFcxfu9nD6JdzOqo4KvrofhOeUSUO+IyPlsOoBLwlz X-Received: by 2002:a05:6e02:78d:: with SMTP id q13mr18439618ils.262.1630368612438; Mon, 30 Aug 2021 17:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630368612; cv=none; d=google.com; s=arc-20160816; b=v/r2MInWi6E7GRsvFdPvI6zlVgvDe5V9oHv/vBXKPJlG8UE9t1tck/PoEYzkVa1e+E ZIDPUW6suZxX7PUDxWBkuQA7CjhIbPuV2fJgR5ag3oz6tjvORqelopjQu7UQCoqN+1eS EMTVH3E6BzfQOlaDaAOYP6FvIdiOCIy1VQUQqA7sRJMzAqXF+IfRpM5OCOzBmXBaKfeP 4A1gLheB72ll6+zy7LzNUm1BNp1qep6D3HP8k0UPjl9DKyIhVU+/yi/PTmXXUdPTSbOH ViHoqHBd+wqUezCZnp7tZdgsKUq12vW5NBeFJWREjq1ZWNTLrAeTaY5T+9b4r2t9AhBz Latw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=rye1Edc0SeIqUbpKucA7grOHx1pZJ4Tkel88f4v1GRM=; b=v79oa1AiJyJRQ+xTkPrQe+/YU9qiBsHDYPGiWSSGRtvMLwjlY2GuoB9nYHhYTTpq4a ust/HI9GqD9dg8jARi7XcqwZ0bAf8CN9kW//IpzRwNLorl55YpJj/cTv5PhKFB4kka8Z j5UBGf8MSQSP/2CwQ0dX+/B+WBLuO7g0f6Fimy+AKsS2K1eqbp/xwmudCRsNelKTcHgP t5EwaNFRtq+8/gCTJPcSrzldJmH/MubRdjQunzADwBDz0rfmhtk0QDRYQIIN7J7NSOxQ S9hy9GegYJ7KoRFKxwpFniN1r1UMkTcrEpGtZY9cBO2Uim1UnCeHOY+AbHKmH6yvrv+V kbUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fbr7W6eT; 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 s20si15042485ioa.93.2021.08.30.17.09.57; Mon, 30 Aug 2021 17:10: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=20161025 header.b=Fbr7W6eT; 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 S233332AbhHaAKM (ORCPT + 99 others); Mon, 30 Aug 2021 20:10:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233270AbhHaAKL (ORCPT ); Mon, 30 Aug 2021 20:10:11 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4704EC061575; Mon, 30 Aug 2021 17:09:17 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id n4so2437771plh.9; Mon, 30 Aug 2021 17:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=rye1Edc0SeIqUbpKucA7grOHx1pZJ4Tkel88f4v1GRM=; b=Fbr7W6eTdgdklCQCEFXMe/jCqXWM6sbLFZIHKAeMmJC2SdnHwsBjOw/yFLAD9fvH64 Bc3FkhLVOU5xCZMu4CnLpl9X/5hUS6JEDFxsx7IPPVKsgEyPg2NC9yE8nrcK46MmMcOX JA9wH8z4KgI+U8wq0xvetFpXuDps2TcnVyPFs5v3RgX0hfTz4fzW/N/Xwy3KygxwbuOH k8GvkitkrgxR38qbX3el54JTlS58ns4B9+byqK40g5qYXcGmewtUhLm3ya0G0zMglrOw 4xUCcOdThkzIl4Xk0K47carW5R2tALnySHPYfG/FaxxjZlg8AGFMjTG+HQ4S72b63ECo V9cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=rye1Edc0SeIqUbpKucA7grOHx1pZJ4Tkel88f4v1GRM=; b=NvmQM5bCPQjW/sPpZC/MR+OJDOhe2IoznIwfTpLOLL8DrU+bTsafJ83J47pxvv8q95 rplW/cqSCJpTMAmiaSPiU/g4yNgyhGA5bPgvCn6rKRdjkmCyVz4WZ1YnIvfEhnoCiwDE lLpo5uMA/WYTzavOixTr6cmFGZ1NR8yeW7CDpD27LAPB/sDeAIN1QxzMTfT2kM1xt0Un bR3rUnk5ADpU2kS04ym2jet4VTZEdLcf02XpMSyh4rgmabtZxZB4Dskz6Acf1LuzZzpq Ztc8wwyu3zeIg8qB0RIOH4NhX1vNrP6EWcVXTdrs0JfIKqNOPTtuArhbsIlBId9XfltP 8oIg== X-Gm-Message-State: AOAM532Fj7pv01EBeBimBtXRCUp5prmoISwl4Uz1mmJEKYI8/yZuh0lH GMWtn3heVu0KBnQsDpMTKlw9n9gWkiQACzLH X-Received: by 2002:a17:902:aa02:b0:134:b387:facc with SMTP id be2-20020a170902aa0200b00134b387faccmr1987824plb.22.1630368556768; Mon, 30 Aug 2021 17:09:16 -0700 (PDT) Received: from raspberrypi ([210.183.35.240]) by smtp.gmail.com with ESMTPSA id 15sm15355062pfl.186.2021.08.30.17.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 17:09:16 -0700 (PDT) Date: Tue, 31 Aug 2021 01:09:12 +0100 From: Austin Kim To: john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, austindh.kim@gmail.com Subject: [PATCH] apparmor: remove unused argument of aa_umount() Message-ID: <20210831000912.GA4588@raspberrypi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'flags' argument in aa_umount() is not used, so it had better remove unused argument. 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