[BACK]Return to tcpbench.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tcpbench

Diff for /src/usr.bin/tcpbench/tcpbench.c between version 1.64 and 1.65

version 1.64, 2021/02/04 18:46:25 version 1.65, 2021/07/12 15:09:20
Line 1273 
Line 1273 
   
         if (ptb->kvars) {          if (ptb->kvars) {
                 if (unveil(_PATH_MEM, "r") == -1)                  if (unveil(_PATH_MEM, "r") == -1)
                         err(1, "unveil");                          err(1, "unveil %s", _PATH_MEM);
                 if (unveil(_PATH_KMEM, "r") == -1)                  if (unveil(_PATH_KMEM, "r") == -1)
                         err(1, "unveil");                          err(1, "unveil %s", _PATH_KMEM);
                 if (unveil(_PATH_KSYMS, "r") == -1)                  if (unveil(_PATH_KSYMS, "r") == -1)
                         err(1, "unveil");                          err(1, "unveil %s", _PATH_KSYMS);
   
                 if ((ptb->kvmh = kvm_openfiles(NULL, NULL, NULL,                  if ((ptb->kvmh = kvm_openfiles(NULL, NULL, NULL,
                     O_RDONLY, kerr)) == NULL)                      O_RDONLY, kerr)) == NULL)
Line 1294 
Line 1294 
   
         if (ptb->Uflag)          if (ptb->Uflag)
                 if (unveil(host, "rwc") == -1)                  if (unveil(host, "rwc") == -1)
                         err(1, "unveil");                          err(1, "unveil %s", host);
   
         if (pledge("stdio id dns inet unix", NULL) == -1)          if (pledge("stdio id dns inet unix", NULL) == -1)
                 err(1, "pledge");                  err(1, "pledge");

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65