Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/priocntl/subr.c
          +++ new/usr/src/cmd/priocntl/subr.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  30   28  /*        All Rights Reserved   */
  31   29  
  32   30  
  33   31  #include        <stdio.h>
  34   32  #include        <string.h>
  35   33  #include        <strings.h>
  36   34  #include        <stdlib.h>
  37   35  #include        <unistd.h>
  38   36  #include        <sys/types.h>
↓ open down ↓ 26 lines elided ↑ open up ↑
  65   63  char    *format;
  66   64  int     a1, a2, a3, a4, a5;
  67   65  {
  68   66          (void) fprintf(stderr, format, a1, a2, a3, a4, a5);
  69   67          exit(1);
  70   68  }
  71   69  
  72   70  
  73   71  /*
  74   72   * Structure defining idtypes known to the priocntl command
  75      - * along with the corresponding names and a liberal guess
  76      - * of the max number of procs sharing any given ID of that type.
       73 + * along with the corresponding names
  77   74   * The idtype values themselves are defined in <sys/procset.h>.
  78   75   */
  79   76  static struct idtypes {
  80   77          idtype_t        idtype;
  81   78          char            *idtypnm;
  82   79  } idtypes [] = {
  83   80          { P_PID,        "pid"   },
  84   81          { P_PPID,       "ppid"  },
  85   82          { P_PGID,       "pgid"  },
  86   83          { P_SID,        "sid"   },
↓ open down ↓ 643 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX