[BACK]Return to sandbox-pledge.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sandbox-pledge.c between version 1.1 and 1.2

version 1.1, 2015/10/09 01:37:08 version 1.2, 2020/10/18 11:32:01
Line 42 
Line 42 
 {  {
         struct ssh_sandbox *box;          struct ssh_sandbox *box;
   
         debug3("%s: preparing pledge sandbox", __func__);          debug3_f("preparing pledge sandbox");
         box = xcalloc(1, sizeof(*box));          box = xcalloc(1, sizeof(*box));
         box->child_pid = 0;          box->child_pid = 0;
   
Line 53 
Line 53 
 ssh_sandbox_child(struct ssh_sandbox *box)  ssh_sandbox_child(struct ssh_sandbox *box)
 {  {
         if (pledge("stdio", NULL) == -1)          if (pledge("stdio", NULL) == -1)
                 fatal("%s: pledge()", __func__);                  fatal_f("pledge()");
 }  }
   
 void  void
 ssh_sandbox_parent_finish(struct ssh_sandbox *box)  ssh_sandbox_parent_finish(struct ssh_sandbox *box)
 {  {
         free(box);          free(box);
         debug3("%s: finished", __func__);          debug3_f("finished");
 }  }
   
 void  void

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2