Re: [PATCH] Keys: Add possessor permissions to keys

From: James Morris (jmorris_at_namei.org)
Date: 09/21/05

  • Next message: Frank van Maarseveen: "Re: [PATCH 2.6.14-rc2] fix incorrect mm->hiwater_vm and mm->hiwater_rss"
    Date:	Wed, 21 Sep 2005 15:23:01 -0400 (EDT)
    To: David Howells <dhowells@redhat.com>
    
    

    On Wed, 21 Sep 2005, David Howells wrote:

    > + if (is_key_possessed(key_ref)) {
    > + kperm = key->perm >> 24;
    > + }
    > + else if (key->uid == context->fsuid) {
    > kperm = key->perm >> 16;

    Can you use macros for these magic numbers?

    - James

    -- 
    James Morris
    <jmorris@namei.org>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Frank van Maarseveen: "Re: [PATCH 2.6.14-rc2] fix incorrect mm->hiwater_vm and mm->hiwater_rss"

    Relevant Pages

    • Re: [Keyrings] [PATCH] Keys: Add LSM hooks for key management
      ... On Wed, 5 Oct 2005, David Howells wrote: ... Any reason why this is configurable? ... James Morris ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [SELINUX] Event notifications via Netlink
      ... James Morris wrote: ... The source data type is a signed int, ... > updated patch below. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.5-mm6
      ... What are the chances of seeing Chris's reiserfs xattr patches merged into ... James Morris ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Fwd: Re: connector is missing in 2.6.12-rc2-mm1]
      ... > for joe dumbass. ... Who you really want writing kernel code :-) ... James Morris ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC][PATCH 0/4] AES assembler implementation for x86_64
      ... Please cc Herbert Xu on kernel crypto patches, he's the frontline ... maintainer of it now. ... James Morris ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)