Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2008 08:40:06 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/compat/linux linux_stats.c linux_util.c
Message-ID:  <200806020840.m528eLha099850@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2008-06-02 08:40:21 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_stats.c linux_util.c 
  Log:
  SVN rev 179486 on 2008-06-02 08:40:06Z by ed
  
  Push down the major/minor conversion for pts/%u to improve consistency.
  
  In the mpsafetty branch, Linux sshd seems to work properly inside a
  jail. Some small modifications had to be made to the Linux compatibility
  layer.
  
  The Linux PTY routines always expect the device major number to be 136
  or higher. Our code always set the major/minor number pair to 136:0.
  This makes routines like ttyname() and ptsname() fail, because we'll end
  up having ambiguous device numbers.
  
  The conversion was not performed on all *stat() routines, which meant in
  some cases the numbers didn't get transformed. By pushing the conversion
  into linux_driver_get_major_minor(), the transformation will take place
  on all calls.
  
  Approved by:    philip (mentor), rdivacky
  
  Revision  Changes    Path
  1.92      +4 -26     src/sys/compat/linux/linux_stats.c
  1.35      +16 -0     src/sys/compat/linux/linux_util.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806020840.m528eLha099850>