1. 21 Mar, 2014 2 commits
  2. 13 Mar, 2014 9 commits
  3. 11 Mar, 2014 4 commits
  4. 10 Mar, 2014 5 commits
  5. 08 Mar, 2014 3 commits
  6. 07 Mar, 2014 10 commits
  7. 06 Mar, 2014 3 commits
  8. 05 Mar, 2014 1 commit
    • fix console stdin,stdout,stderr fds · 1da0ad1e
      Dwight Engen authored
      The fds for stdin,stdout,stderr that we were leaving open for /sbin/init
      in the container were those from /dev/tty or lxc.console (if given), which
      wasn't right. Inside the container it should only have access to the pty
      that lxc creates representing the console.
      
      This was noticed because busybox's init was resetting the termio on its
      stdin which was effecting the actual users terminal instead of the pty.
      This meant it was setting icanon so were were not passing keystrokes
      immediately to the pty, and hence command line history/editing wasn't
      working.
      
      Fix by dup'ing the console pty to stdin,stdout,stderr just before
      exec()ing /sbin/init. Fix fd leak in error handling that I noticed while
      going through this code.
      
      Also tested with lxc.console = none, lxc.console = /dev/tty7 and no
      lxc.console specified.
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
  9. 04 Mar, 2014 3 commits