Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp123734imm; Fri, 21 Sep 2018 19:58:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZb3up7Gbe1UrKr2oup83psu4N2L9XohNQ+OfaQaBP1he+msu2Ui6FQ30EB+T+7LGP2+qR4 X-Received: by 2002:a62:225d:: with SMTP id i90-v6mr535539pfi.246.1537585133168; Fri, 21 Sep 2018 19:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537585133; cv=none; d=google.com; s=arc-20160816; b=XWEbTBNvslmrW7Qn6hDT3xp+R/YHbCbaE4EEzdigaeGlWhuk7S37GLp8urFCpbliPX fG7xdTn0Lh8DFICsH2bqoRkHGEiR5G6J7wmG/lu4UCnYupVXJJl/5FTEnNEsZ3SQ7qIY Cm0qw//vj2/FdrWt8ZaMWZEisqpN2Z3NdErVDF8q9JEd3TqAXy/plTOhUTTxnTW6xxJq CECH7L8gfo2DNKj6GpPybF8Y0Zzb0Wak/l1A/gBalMagouU/Lsdiglw3IdzFs5v0EguA RnZUjs7Ek/BnCMmUuYGnnZrjiUkSXtp09Lt4bdcZfL2XYhapbMA1Q1cYIM66eGyuXHTr 61dQ== 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; bh=7S/M4Zp7l+UoPx8TVhrS6bceL5qB3bGgwOhQYLLk0ZQ=; b=hOZSOaTWDS1p/jerlsxHGHIssE0QQWqTLWMOHNj3oZSa+GCXeG+uTI7UYE4Fph3+Wj m51XdCtdvwkvVvMc3gyPV7B4HgfVB8tgwbJfJwfDTAoRX50Ip34vSa85706y1Zfzdx2y vbCCat5MbxHr4Kd1jd4ixoiHY0kpuUYkMfRyPt80jhSulIYupOJhpc7uwPHqR4KS4ZPY B3Q1kPn+E/dhEEBrqkqFaWGdvEWKeMXtvO4rxcQ7Dv/DbuGJpmlrBNgCtjlexMD7rirz 6hzIEKBl8TXXksTeBiyiaerMb5QgXCgudBDMLXPT8pwHZ2jpuKfZnxBpbz+dK/c9+9lb cQMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hry1MCgH; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si29165301pgd.54.2018.09.21.19.58.26; Fri, 21 Sep 2018 19:58:53 -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=@chromium.org header.s=google header.b=hry1MCgH; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727273AbeIVItV (ORCPT + 99 others); Sat, 22 Sep 2018 04:49:21 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:37151 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbeIVItV (ORCPT ); Sat, 22 Sep 2018 04:49:21 -0400 Received: by mail-yb1-f194.google.com with SMTP id b3-v6so5208509yba.4 for ; Fri, 21 Sep 2018 19:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7S/M4Zp7l+UoPx8TVhrS6bceL5qB3bGgwOhQYLLk0ZQ=; b=hry1MCgHTB7ILA40NiC/QJLqtmq7pZoQuh73k1jMY8paDoTcIV12Lkj2otK/9GFTxo uBbO/ILWuEGD+QNfoidd2WTc5slC3vpPcONv9Z0raOPnH33CWqHsbuVxn/HeUjWcuTVd BR4w+FkEQ/z0nDlHRtbBUpT5nV7OKUuRVEL90= 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=7S/M4Zp7l+UoPx8TVhrS6bceL5qB3bGgwOhQYLLk0ZQ=; b=RxFLtLq6SfClGFhVBtHU7VT419ioAMwLu7KrHhU0ugcK7eLSDy4JP5VGOM8ZgsuaQZ qxWkI6hJHL6LZY0rhPE7nTBrYXWfmwkTWx8PgfNY7GmUvyvlZHqzCw1h1DQqvEsUZ+Sw la7tAojg6+YupqOw8cdWcrjfB3xm3QMEYhUBPL8Mw7Yw7equ44sgfY7MOCEnGZeaitQ2 z/klUZ1euo9q+sRRI+etBLczJ9Af2oqmU9gbUTtvmDubXT8fvxSTi6bIL+Wbah0I7seC 50vQ9NJtVCM/26hDAIh5rAN9bTEvuZC36BLmtLhMK645oZUAX+AAyQujjdjAaV/3zsPG ZdFQ== X-Gm-Message-State: ABuFfogu4Ti5UBE7lAfb9I71zM91xDYf4D0wT52dWT907J7uw77KC7V/ HPO1EBGRS3rzo7TRdl9myI6AKQj9uzo= X-Received: by 2002:a5b:d07:: with SMTP id y7-v6mr200668ybp.357.1537585049956; Fri, 21 Sep 2018 19:57:29 -0700 (PDT) Received: from mail-yw1-f51.google.com (mail-yw1-f51.google.com. [209.85.161.51]) by smtp.gmail.com with ESMTPSA id b6-v6sm2699970ywe.71.2018.09.21.19.57.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 19:57:28 -0700 (PDT) Received: by mail-yw1-f51.google.com with SMTP id z143-v6so5974884ywa.7 for ; Fri, 21 Sep 2018 19:57:28 -0700 (PDT) X-Received: by 2002:a0d:fe87:: with SMTP id o129-v6mr208462ywf.237.1537585048314; Fri, 21 Sep 2018 19:57:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Fri, 21 Sep 2018 19:57:27 -0700 (PDT) In-Reply-To: References: From: Kees Cook Date: Fri, 21 Sep 2018 19:57:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 17/19] Smack: Abstract use of ipc security blobs To: Casey Schaufler Cc: LSM , James Morris , SE Linux , LKLM , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Salvatore Mesoraca 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 Fri, Sep 21, 2018 at 5:19 PM, Casey Schaufler wrote: > Don't use the ipc->security pointer directly. > Don't use the msg_msg->security pointer directly. > Provide helper functions that provides the security blob pointers. > > Signed-off-by: Casey Schaufler Reviewed-by: Kees Cook -Kees -- Kees Cook Pixel Security