From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A773DC3524B for ; Sun, 2 Feb 2020 01:46:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7C1FD2067C for ; Sun, 2 Feb 2020 01:46:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="EqLkIhXg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbgBBBqc (ORCPT ); Sat, 1 Feb 2020 20:46:32 -0500 Received: from mail-pf1-f202.google.com ([209.85.210.202]:33633 "EHLO mail-pf1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbgBBBqc (ORCPT ); Sat, 1 Feb 2020 20:46:32 -0500 Received: by mail-pf1-f202.google.com with SMTP id c72so6731935pfc.0 for ; Sat, 01 Feb 2020 17:46:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=cWMg+lMkC5CwgYJ9EZeOZlpHEi0qWTvf3rAR3TItwx8=; b=EqLkIhXgRZk2d6ttlAE/IrZ07I3+F1wAeV3BpJTqmC62cUYA3mD9hPRRTbkA03hsgN IZj7P8/Hh7HdsYRONo4wDDiP3nDUp21b5agZa+7wz47v6Z4J3aIbKJ01Ijhb0VFhD5al phf/pX8/lAzg+hoBDNPuoBddw2c/szLCfaZl6fVoPDP6PjfJpCbm+m3QP5C/K8OeVgme TUSgsYlXF75y8aLvZZUQKnZvFgNS2KarOs27Hb4TU+Qdpv0mgD9aNcTyvy3YVJ+ccsaL h2wNhFKg3rKRc/pYB/tbNlyfIMbCC76UPFflz9iT8TgR2iZvosTXvwuVovoQvH61R6Hy eVFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=cWMg+lMkC5CwgYJ9EZeOZlpHEi0qWTvf3rAR3TItwx8=; b=UU2jcWYW35MARfXZPJxg7Dh7ucfl2i7Dz3J2euX+WM9QYFwo68kZbHma5NRRuiuhyr Os7wypQLm4vDxu+rdKhEVRIP7NXPxxrb8wXRF6DhwKR+c7wbABwrsuHy1XI1VDn3ZeJ8 Xqs2Ik8FGOcovcmetMJi+fqN59amkJNIKzT4hrndxYZOLm9lMK2/75ITuUnUpXwJLJ1K I9+L3Fbin8CKLysUTl1cdzBAuz2Z4LLmzTyVwn5dXuOkEGpUyHhri7NEi4BhcPF3lDXs 8TdL6xxeg+HI7yCNwAxLxyldGrNz6JpEANoNqKrQacg1hNe6P2nwTp/Np+h9SSA6XQYv Il1w== X-Gm-Message-State: APjAAAU8M0NEPcBFfClNs0+tkS/akHnYEA5u3RGjc0Q0r2ikWp2ReN2G 1qkcNTdCZju0sQRy4/rycIGjYEkvTkk= X-Google-Smtp-Source: APXvYqytCAuvL8qC7xByebS+X1UOErAOhxRRMWluFWrxoVVILntVsMJsPYSA5+Z1ZQQj6bpOOlDIGN2jGQ4= X-Received: by 2002:a63:66c6:: with SMTP id a189mr16560150pgc.401.1580607991518; Sat, 01 Feb 2020 17:46:31 -0800 (PST) Date: Sat, 1 Feb 2020 17:46:23 -0800 Message-Id: <20200202014624.75356-1-hridya@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog Subject: [PATCH] selinux: Fix typo in filesystem name From: Hridya Valsaraju To: Paul Moore , Stephen Smalley , Eric Paris , Jeff Vander Stoep , Mark Salyzyn , Hridya Valsaraju , selinux@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Correct the filesystem name to "binder" to enable genfscon per-file labelling for binderfs. Fixes: 7a4b5194747 ("selinux: allow per-file labelling for binderfs") Signed-off-by: Hridya Valsaraju --- Hello, I seem to have made the typo/mistake during a rebase. Sorry about that :( Thanks, Hridya security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 89fe3a805129..d67a80b0d8a8 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -699,7 +699,7 @@ static int selinux_set_mnt_opts(struct super_block *sb, if (!strcmp(sb->s_type->name, "debugfs") || !strcmp(sb->s_type->name, "tracefs") || - !strcmp(sb->s_type->name, "binderfs") || + !strcmp(sb->s_type->name, "binder") || !strcmp(sb->s_type->name, "pstore")) sbsec->flags |= SE_SBGENFS; -- 2.25.0.341.g760bfbb309-goog