Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/doorfs/door_vnops.c
          +++ new/usr/src/uts/common/fs/doorfs/door_vnops.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  #include <sys/types.h>
  29   27  #include <sys/vnode.h>
  30   28  #include <sys/vfs_opreg.h>
  31   29  #include <sys/door.h>
  32   30  #include <sys/proc.h>
  33   31  #include <sys/kmem.h>
  34   32  #include <sys/debug.h>
  35   33  #include <sys/cmn_err.h>
  36   34  #include <fs/fs_subr.h>
  37   35  #include <sys/zone.h>
↓ open down ↓ 10 lines elided ↑ open up ↑
  48   46                          caller_context_t *ct);
  49   47  static int      door_access(struct vnode *vp, int mode, int flags,
  50   48                          struct cred *cr, caller_context_t *ct);
  51   49  static int      door_realvp(vnode_t *vp, vnode_t **vpp, caller_context_t *ct);
  52   50  
  53   51  struct vfs door_vfs;
  54   52  
  55   53  struct vnodeops *door_vnodeops;
  56   54  
  57   55  const fs_operation_def_t door_vnodeops_template[] = {
  58      -        VOPNAME_OPEN,           { .vop_open = door_open },
  59      -        VOPNAME_CLOSE,          { .vop_close = door_close },
  60      -        VOPNAME_GETATTR,        { .vop_getattr = door_getattr },
  61      -        VOPNAME_ACCESS,         { .vop_access = door_access },
  62      -        VOPNAME_INACTIVE,       { .vop_inactive = door_inactive },
  63      -        VOPNAME_FRLOCK,         { .error = fs_error },
  64      -        VOPNAME_REALVP,         { .vop_realvp = door_realvp },
  65      -        VOPNAME_POLL,           { .error = fs_error },
  66      -        VOPNAME_PATHCONF,       { .error = fs_error },
  67      -        VOPNAME_DISPOSE,        { .error = fs_error },
  68      -        VOPNAME_GETSECATTR,     { .error = fs_error },
  69      -        VOPNAME_SHRLOCK,        { .error = fs_error },
  70      -        NULL,                   NULL
       56 +        { VOPNAME_OPEN,         { .vop_open = door_open } },
       57 +        { VOPNAME_CLOSE,        { .vop_close = door_close } },
       58 +        { VOPNAME_GETATTR,      { .vop_getattr = door_getattr } },
       59 +        { VOPNAME_ACCESS,       { .vop_access = door_access } },
       60 +        { VOPNAME_INACTIVE,     { .vop_inactive = door_inactive } },
       61 +        { VOPNAME_FRLOCK,       { .error = fs_error } },
       62 +        { VOPNAME_REALVP,       { .vop_realvp = door_realvp } },
       63 +        { VOPNAME_POLL,         { .error = fs_error } },
       64 +        { VOPNAME_PATHCONF,     { .error = fs_error } },
       65 +        { VOPNAME_DISPOSE,      { .error = fs_error } },
       66 +        { VOPNAME_GETSECATTR,   { .error = fs_error } },
       67 +        { VOPNAME_SHRLOCK,      { .error = fs_error } },
       68 +        { NULL,                 { NULL } }
  71   69  };
  72   70  
  73   71  /* ARGSUSED */
  74   72  static int
  75   73  door_open(struct vnode **vpp, int flag, struct cred *cr, caller_context_t *ct)
  76   74  {
  77   75          /*
  78   76           * MAC policy for doors.  Restrict cross-zone open()s so that only
  79   77           * door servers in the global zone can have clients from other zones.
  80   78           * For other zones, client must be within the same zone as server.
↓ open down ↓ 175 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX