A while back we changed the bash test suite to run as the nobody user
because it enables more tests to be run. Ken and I have each had a
pair of test failures building with 6.3-rc1. Looking closer, the test
is checking whether `test -r /dev/stdin' and `test -r /dev/fd/0'
return successfully.

These fail because permissions to the backing device (/dev/pts/0 in my
case) are set up with 620 permissions, owned by dan:tty. This is host
dependent, but I imagine it will fail more times than not when
switching to the nobody user to run the test.

One fix is basically to nullify the test by redirecting stdin to
something that will definitely be readable, e.g. /dev/null. This is
discussed here:

http://linuxfromscratch.org/pipermail/lfs-dev/2007-August/059866.html

I added a patch later in the thread:

http://linuxfromscratch.org/pipermail/lfs-dev/2007-August/059877.html

One remaining question is, which device to attach to? I noticed that
perl redirects /dev/tty to stdin during its tests, and Bryan says this
should always be readable to all users. I'm clueless on terminal
devices, so if anyone wants to make suggestions, pipe up.

I would like to get this in and rolled into -rc2 soon.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to