HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0275 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 0275.


Report 0275 Actions


    Problem Report Number 0275
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0275
    Raised 1998-11-09 08:00
    Updated 2003-03-13 08:00
    Published 1998-11-11 08:00
    Product Standard Network File System
    Certification Program The Open Brand certification program
    Test Suite VSX4+XNFS version 4.4.3
    Test Identification XOPEN.os/procenv/chroot 12
    Problem Summary TSD4.275 This failure is due to a test suite deficiency in VSX+XNFS4.4.3 which was not present in 4.4.2. Considering first the 4.4.2 code for the client module tset/XOPEN.os/procenv/chroot/chroot.c. The code o...
    Problem Text

    This failure is due to a test suite deficiency in VSX+XNFS4.4.3 which was
    not present in 4.4.2.

    Considering first the 4.4.2 code for the client module
    tset/XOPEN.os/procenv/chroot/chroot.c. The code obtains a long name in
    test12() and then, in ch_t12(), it attempts to perform a chroot() to that
    filename. The test only fails if the chroot() returned ENAMETOOLONG. Note,
    in particular, that the long name is not actually created on the server side
    anywhere by the test. Consequently, the chroot() actually returns ENOENT,
    which does not cause the testsuite to fail as this is not ENAMETOOLONG.

    Considering the equivalent 4.4.3 code. The client module chroot.c also
    obtains a long name in test12() and then, in ch_t12_13() it calls c_chroot()
    to perform the chroot() on that long name. The long name is also not created
    on the server by this test. However, c_chroot() will fail on *any* error
    returned from the chroot() call. In this case, the same ENOENT error
    will now cause this test to fail.

    Test Output
    /tset/XOPEN.os/procenv/chroot/T.chroot 12 Failed

    Test Description:
    For the XNFS specification:
    If {_POSIX_NO_TRUNC} is defined on the client and {NAME_MAX} on
    the client is greater than or equal to NFS_MAXNAMLEN and
    {_POSIX_NO_TRUNC} is defined on the server and {NAME_MAX} on the
    server is greater than or equal to NFS_MAXNAMLEN:
    When the length of a pathname component of path is equal to
    NFS_MAXNAMLEN, then a call to chroot(path) does not give an
    ENAMETOOLONG error.
    For the XSH specification:
    Not in use.

    Test Strategy:
    ASSIGN the NEWROOT privilege to the current process using setprv()
    VERIFY that setprv() returned 0
    CREATE child process
    CREATE a filename of length NFS_MAXNAMLEN
    CALL chroot() with this filename
    VERIFY that chroot() returned successfully

    Test Information:
    chroot(<255 char path>) returned -1, expected 0
    errno was set to 2 (ENOENT)

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    A fix has been identified for this fault, reported in err.4.4.3.002.
    A waiver should be granted on the grounds of a test suite deficiency.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority