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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 ECE64C5ACD7 for ; Wed, 18 Mar 2020 19:06:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3FE320768 for ; Wed, 18 Mar 2020 19:06:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbgCRTGe (ORCPT ); Wed, 18 Mar 2020 15:06:34 -0400 Received: from namei.org ([65.99.196.166]:42074 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbgCRTGd (ORCPT ); Wed, 18 Mar 2020 15:06:33 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id 02IJ6AgO030251; Wed, 18 Mar 2020 19:06:10 GMT Date: Thu, 19 Mar 2020 06:06:10 +1100 (AEDT) From: James Morris To: David Howells cc: torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, Stephen Smalley , casey@schaufler-ca.com, Stephen Smalley , nicolas.dichtel@6wind.com, raven@themaw.net, christian@brauner.io, andres@anarazel.de, jlayton@redhat.com, dray@redhat.com, kzak@redhat.com, keyrings@vger.kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/17] selinux: Implement the watch_key security hook [ver #5] In-Reply-To: <158454388633.2863966.17799427202351674141.stgit@warthog.procyon.org.uk> Message-ID: References: <158454378820.2863966.10496767254293183123.stgit@warthog.procyon.org.uk> <158454388633.2863966.17799427202351674141.stgit@warthog.procyon.org.uk> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Mar 2020, David Howells wrote: > Implement the watch_key security hook to make sure that a key grants the > caller View permission in order to set a watch on a key. > > For the moment, the watch_devices security hook is left unimplemented as > it's not obvious what the object should be since the queue is global and > didn't previously exist. > > Signed-off-by: David Howells > Acked-by: Stephen Smalley Reviewed-by: James Morris -- James Morris