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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1422 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 1422.


Report 1422 Actions


    Problem Report Number 1422
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0704
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-03-18 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.1.0
    Test Identification base/lchown 8, 9
    Problem Summary TSD4U.00111 This test may fail on implementations where uid_t and gid_t are unsigned integral types.
    Problem Text
    This test may fail on implementations where uid_t and gid_t
    are unsigned integral types.

    This interpretation requests covers:
    lchown 8, 9
    fchown 9

    These tests are failing because they use negative numbers for
    invalid UIDs. POSIX and XPG4 require UIDs and GIDs to be non-negative
    integers. Additionally, POSIX and XPG4 make no requirement for uid_t
    and gid_t to be a signed or unsigned type. Our implementation defines
    UIDs and GIDs to be of type unsigned int giving valid UIDs and GIDs in
    the range of 0 - 4294967295. Use of negative UIDs results in conversion
    to a number in the valid range i.e. -1 gets converted to 4294967295, -2
    gets converted to 4294967294 and so on. As these are valid UIDs, the tests
    never will get an EINVAL errno.

    Also note that no invalid UID exists on our system, we support the
    use of the entire 0 - 4294967295 range. Configuration variables must be
    added to the tetexec.cfg file for invalid UIDs and GIDs. These variables
    must allow that on some implementations, no invalid UIDs and GIDs exist.
    Test Output
    TEST CASE: fchown

    TEST PURPOSE #9
    EINVAL in errno and return -1 on a call to int
    fchown(int fildes, uid_t owner, gid_t group) when
    owner or group is not supported.
    PREP: Create test file
    TEST: Invalid owner id returns -1
    TEST: EINVAL in errno
    ERROR: fchown failed, errno = 1(EPERM - Not owner)
    9 FAIL

    TEST CASE: lchown

    TEST PURPOSE #8
    EINVAL in errno and return -1 on a call to int
    lchown(const char *path, uid_t owner, gid_t group)
    when owner is not a value supported by the
    implementation.
    PREP: Create test file
    TEST: Invalid owner id returns -1
    TEST: EINVAL in errno
    ERROR: lchown failed, errno = 1(EPERM - Not owner)
    8 FAIL

    TEST PURPOSE #9
    EINVAL in errno and return -1 on a call to int
    lchown(const char *path, uid_t owner, gid_t group)
    when group is not a value supported by the
    implementation.
    PREP: Create test file
    TEST: Invalid group id returns -1
    TEST: EINVAL in errno
    ERROR: lchown failed, errno = 1(EPERM - Not owner)
    9 FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test
    suite version(s) listed.

    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