cvs commit: src/sys/compat/linux linux_stats.c linux_util.c
ed at FreeBSD.org
Mon Jun 2 08:40:21 UTC 2008
ed 2008-06-02 08:40:21 UTC
FreeBSD src repository
sys/compat/linux linux_stats.c linux_util.c
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
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
More information about the cvs-all