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

Diff for /src/usr.bin/ssh/clientloop.c between version 1.276 and 1.277

version 1.276, 2015/10/20 03:36:35 version 1.277, 2015/12/03 17:00:18
Line 1473 
Line 1473 
   
         debug("Entering interactive session.");          debug("Entering interactive session.");
   
           if (options.forward_x11 || options.permit_local_command) {
                   debug("pledge: exec");
                   if (pledge("stdio rpath wpath cpath unix inet dns proc exec tty",
                       NULL) == -1)
                           fatal("%s pledge(): %s", __func__, strerror(errno));
   
           } else if (options.update_hostkeys) {
                   debug("pledge: filesystem full");
                   if (pledge("stdio rpath wpath cpath unix inet dns proc tty",
                       NULL) == -1)
                           fatal("%s pledge(): %s", __func__, strerror(errno));
   
           } else if (! option_clear_or_none(options.proxy_command)) {
                   debug("pledge: proc");
                   if (pledge("stdio cpath unix inet dns proc tty", NULL) == -1)
                           fatal("%s pledge(): %s", __func__, strerror(errno));
   
           } else if (options.control_master &&
               ! option_clear_or_none(options.control_path)) {
                   debug("pledge: filesystem create");
                   if (pledge("stdio cpath unix inet dns tty",
                       NULL) == -1)
                           fatal("%s pledge(): %s", __func__, strerror(errno));
   
           } else {
                   debug("pledge: network");
                   if (pledge("stdio unix inet dns tty", NULL) == -1)
                           fatal("%s pledge(): %s", __func__, strerror(errno));
           }
   
         start_time = get_current_time();          start_time = get_current_time();
   
         /* Initialize variables. */          /* Initialize variables. */

Legend:
Removed from v.1.276  
changed lines
  Added in v.1.277