Print this page
Code review comments from jeffpc

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/psecflags.1.man.txt
          +++ new/usr/src/man/man1/psecflags.1.man.txt
   1    1  PSECFLAGS(1)                     User Commands                    PSECFLAGS(1)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         psecflags - inspect or modify process security flags
   7    7  
   8    8  SYNOPSIS
   9      -       /usr/bin/psecflags -s spec -e command
  10      -            [arg]...
        9 +       /usr/bin/psecflags -s spec -e command [arg]...
  11   10  
  12      -       /usr/bin/psecflags -s spec [-i idtype]
  13      -            id ...
       11 +       /usr/bin/psecflags -s spec [-i idtype] id ...
  14   12  
  15   13         /usr/bin/psecflags [-F] { pid | core }
  16   14  
  17   15         /usr/bin/psecflags -l
  18   16  
  19   17  
  20   18  DESCRIPTION
  21   19         The first invocation of the psecflags command runs the specified
  22   20         command with the security-flags modified as described by the -s
  23   21         argument.
↓ open down ↓ 104 lines elided ↑ open up ↑
 128  126                    For a list of valid security-flags, see psecflags -l.
 129  127  
 130  128  
 131  129  EXAMPLES
 132  130         Example 1 Display the security-flags of the current shell.
 133  131  
 134  132           example$ psecflags $$
 135  133           100718:   -sh
 136  134                E:   aslr
 137  135                I:   aslr
 138      -                 L:     none
 139      -                 U:     aslr, forbidnullmap, noexecstack
      136 +              L:   none
      137 +              U:   aslr,forbidnullmap,noexecstack
 140  138  
 141  139  
 142  140  
 143  141         Example 2 Run a user command with ASLR enabled in addition to any
 144  142         inherited security flags.
 145  143  
 146  144           example$ psecflags -s current,aslr -e /bin/sh
 147  145           $ psecflags $$
 148  146           100724:   -sh
 149  147                E:   none
 150  148                I:   aslr
 151      -                 L:     none
 152      -                 U:     aslr, forbidnullmap, noexecstack
      149 +              L:   none
      150 +              U:   aslr,forbidnullmap,noexecstack
 153  151  
 154  152  
 155  153  
 156  154         Example 3 Remove aslr from the inheritable flags of all Bob's
 157  155         processes.
 158  156  
 159  157           example# psecflags -s current,-aslr -i uid bob
 160  158  
 161  159  
 162  160         Example 4 Add the aslr flag to the lower set, so that all future child
↓ open down ↓ 26 lines elided ↑ open up ↑
 189  187         |  ATTRIBUTE TYPE    | ATTRIBUTE VALUE |
 190  188         +--------------------+-----------------+
 191  189         |Interface Stability | Volatile        |
 192  190         +--------------------+-----------------+
 193  191  
 194  192  SEE ALSO
 195  193         exec(2), attributes(5), contract(4), security-flags(5), zones(5)
 196  194  
 197  195  
 198  196  
 199      -                                  May 3, 2014                     PSECFLAGS(1)
      197 +                                 June 6, 2016                     PSECFLAGS(1)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX