Author: oshogbo
Date: Wed May  1 07:00:56 2019
New Revision: 346986
URL: https://svnweb.freebsd.org/changeset/base/346986

Log:
  MFC r346263:
    tcpdump: disable Capsicum if -E option is provided.
  
    The -E is used to provide a secret for decrypting IPsec.
    The secret may be provided through command line or as the file.
    The problem is that tcpdump doesn't support yet opening files in capability 
mode
    and the file may contain a list of the files to open.
  
    As a workaround, for now, let's just disable capsicum if the -E
    the option is provided.
  
    PR:           236819

Modified:
  stable/12/contrib/tcpdump/tcpdump.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/tcpdump/tcpdump.c
==============================================================================
--- stable/12/contrib/tcpdump/tcpdump.c Wed May  1 06:59:04 2019        
(r346985)
+++ stable/12/contrib/tcpdump/tcpdump.c Wed May  1 07:00:56 2019        
(r346986)
@@ -2063,7 +2063,8 @@ main(int argc, char **argv)
        }
 
 #ifdef HAVE_CAPSICUM
-       cansandbox = (VFileName == NULL && zflag == NULL);
+       cansandbox = (VFileName == NULL && zflag == NULL &&
+           ndo->ndo_espsecret == NULL);
 #ifdef HAVE_CASPER
        cansandbox = (cansandbox && (ndo->ndo_nflag || capdns != NULL));
 #else
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to