When doing a chroot inside of a smb-mounted filesystem (cifs), it appears that you can break out of it using "cd ..\\" (2 backslashes). [root@server me]# pwd /path/to/my/dir [root@server me]# ls bin chroot etc lib [root@server me]# chroot . bash-2.05a# pwd / bash-2.05a# ls bin chroot etc lib bash-2.05a# cd ..\\ bash-2.05a# pwd /..\ bash-2.05a# ls <list of files from parent>
The upstream fix can be found here: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=296034f7de8bdf111984ce1630ac598a9c94a253
committed in stream U5 build 42.10. A test kernel with this patch is available from http://people.redhat.com/~jbaron/rhel4/
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
QE ack for 4.5.
Fix appears to be working this time around in -52, I can't use cd to get out of the chroot jail.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0304.html