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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1419 Actions


    Problem Report Number 1419
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0701
    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/setregid 10, 11
    Problem Summary TSD4U.00114 This test may fail on implementations where uid_t and gid_t are unsigned types.
    Problem Text
    This test may fail on implementations where uid_t and gid_t
    are unsigned types.

    This interpretation request is for the following assertions

    /tset/CAPIbase/fsetregid/fsetregid assertions 10, 11
    /tset/CAPIbase/fsetreuid/fsetreuid assertions 10, 11

    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: setregid

    TEST PURPOSE #10
    EINVAL in errno and return -1 on a call to int
    setregid(gid_t rgid, gid_t egid) when egid is invalid
    or out of range.
    PREP: Ensure the process is privileged
    TEST: setregid(-1, egid) returns -1 and sets
    errno to EINVAL when egid is invalid
    ERROR: setregid() did not return -1
    Expected: -1 Received: 0
    10 FAIL

    TEST PURPOSE #11
    EINVAL in errno and return -1 on a call to int
    setregid(gid_t rgid, gid_t egid) when rgid is invalid
    or out of range.
    PREP: Ensure the process is privileged
    TEST: setregid(rgid, -1) returns -1 and sets
    errno to EINVAL when rgid is invalid
    ERROR: setregid() did not set errno to EINVAL
    Expected: 22(EINVAL) Received: 1(EPERM - Not owner)
    11 FAIL

    TEST CASE: setreuid

    TEST PURPOSE #11
    EINVAL in errno and return -1 on a call to int
    setreuid(uid_t ruid, uid_t euid) when ruid is invalid
    or out-of-range.
    PREP: Ensure the process is privileged
    TEST: setreuid(ruid, -1) returns -1 and sets
    errno to EINVAL when ruid is invalid
    ERROR: setreuid() did not return -1
    Expected: -1 Received: 0
    11 FAIL

    TEST PURPOSE #12
    EINVAL in errno and return -1 on a call to int
    setreuid(uid_t ruid, uid_t euid) when euid is invalid
    or out-of-range.
    PREP: Ensure the process is privileged
    TEST: setreuid(-1, euid) returns -1 and sets
    errno to EINVAL when euid is invalid
    ERROR: setreuid() did not set errno to EINVAL
    Expected: 22(EINVAL) Received: 1(EPERM - Not owner)
    12 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