Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp824219imm; Mon, 21 May 2018 15:12:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpRzx4HIn7PXWd6urSbMSvQiP8X943+7px/bDMr/ZPx0q5cq6HyMvC+pxkO+JX2PkxhM4Co X-Received: by 2002:a17:902:43a4:: with SMTP id j33-v6mr22472021pld.118.1526940736450; Mon, 21 May 2018 15:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526940736; cv=none; d=google.com; s=arc-20160816; b=fHavK/yYspv+/h0AafLw+or2gI2PufnRRen1GaggufcuQwCzs/vYNG2P7kzH3roPph QJRSXOlxXMyQU4xouil1I3q+cYddKQlajEmLchJLei1Hw3loCLjHwLI5YsPHHDfOpqWX uOzfxRNKg2cPpZ3k0k9kv3W3Idb/DWTv0pqg2Jp+snZf6sFnqt2/1CZHwDMgHxoVi0ht iNsM6X6lUz4kjeKToJC/WhlYwtlg/DLoIGmD1Zq8uDZaCXpQplYiCL7G+KP+5MTyt2rc 2ujorCCBkwmM5t0u9HxkOAASXC2rLljg+PF2BsVXcvVx+0NqjGBHCLgAJcsAVFAavIUm qGcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=umQ/4GMBRW0cIVXf0RzNoZtujFAwF+uJn9QlejLJQVM=; b=IKCWq1GbRTDEybj/exfLDMIATXMfQNi7Eyfz7U8/pfa+0zm37+A7/610UFrp39j5Gi j5tPl7aCACb4YHA2uUF0XhymEhr4zshnzymbjkBnEz9ZsavdPJ6aD7ATW9K23wCMrEzD ArVEgDNEbpjKnv/7+WV3MUKSl2qVhMevkk/sWT2ZWjGqtcKoZqHlnm0ML+VTDuH01Eft SDy4R30MwzGIT0duUEBlo0wwuCUTkhuSwuJiv0MY0IFxejLap1/dlzXtNqIGmAtKXJ5W e8PF4x3visnBZ7LX4z2SXpY0jdPjCv/HB06dbPmdsi4QwT72sJu6LCc8xM6E8ryZbTSi rS3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mI1Oh00Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b3-v6si12140754pgr.76.2018.05.21.15.12.01; Mon, 21 May 2018 15:12:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mI1Oh00Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1753621AbeEUWKJ (ORCPT + 99 others); Mon, 21 May 2018 18:10:09 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:38112 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753131AbeEUWKE (ORCPT ); Mon, 21 May 2018 18:10:04 -0400 Received: by mail-qt0-f194.google.com with SMTP id m9-v6so20945958qtb.5; Mon, 21 May 2018 15:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=umQ/4GMBRW0cIVXf0RzNoZtujFAwF+uJn9QlejLJQVM=; b=mI1Oh00Q65P9GWYwa72yzSrmPsUyo0K9fg5ysaiwCYNJZtClYWjzPEiRVGU6mvkgvq i498rd+XLj9bgB6Yeh0bnfN4YsX7/AYO3DCSlukubaPyuWvNDCH8Kr4W8C9vC1nNiqBN rGzdb/GRjZzl2GdB+Wzs8Wl1ir8Q5XY7LEyXvwBPdxd5iJqs0ucg+cF2RZq4Rus3U5X3 5jpR0zQP8ysNBV9GW5Q6GYP+M3GWp7LNqzVv4YMimwLt5T/ehMOAz1P84rCYuPdxRczS hQoEZuuAoqW4AV3bDEqTj2gZtsh/gd5EL9sWNRfPRiEOM0OLcaVy2wDOuZA55CqofnPT niaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=umQ/4GMBRW0cIVXf0RzNoZtujFAwF+uJn9QlejLJQVM=; b=ZYMMydTtHR7ZXqp5NOfs0SCQk/mfNGUvCoBYWWcCRICIxVd3DLf1/W0jBeEJWmLzif KbghfWBVhnDaCvLP4lwCF+p+IgV8qR8qqGt6RYkjnoXG8Z1gIVUP0+kNmnt827ROxvBZ 3no6XLxcQ4bjk99JdTNXUT+MSobu1W89cNFA+A5iNIVGSVCvjEv7GeKgYMV2l6eCGcs+ Tif0RkTpx7t48+JEhXCx7Xzz2hB6A/SDs8cmSY7vuJ8cCHuURqTQJx+Z5sLc6gWTewAv 0ehHSoXuIIvzdrdRS2Ku/nMxAqbn4Necyr3uRx5D5WNRsiXPzI3ClLWlC8B/5hakdBJR Ldyg== X-Gm-Message-State: ALKqPwffbd4/lp+dJWSSTQYGJ2YdgY2NZdDmsQB9p+o5SYXL7ewAWKS4 OfIBRXKfm+fUBHjCqGms1vqM4OOY2kctPIfowdg= X-Received: by 2002:aed:3dcb:: with SMTP id j11-v6mr18998962qtf.404.1526940603353; Mon, 21 May 2018 15:10:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 21 May 2018 15:10:02 -0700 (PDT) In-Reply-To: <1526903890-35761-27-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-27-git-send-email-xieyisheng1@huawei.com> From: Andy Shevchenko Date: Tue, 22 May 2018 01:10:02 +0300 Message-ID: Subject: Re: [PATCH 26/33] apparmor: use match_string() helper To: Yisheng Xie Cc: Linux Kernel Mailing List , John Johansen , James Morris , "Serge E. Hallyn" , linux-security-module 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 On Mon, May 21, 2018 at 2:58 PM, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. http://kernsec.org/pipermail/linux-security-module-archi > Cc: John Johansen > Cc: James Morris > Cc: "Serge E. Hallyn" > Cc: linux-security-module@vger.kernel.org -- With Best Regards, Andy Shevchenko