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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0588 Actions


    Problem Report Number 0588
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0192
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 4.1.5
    Test Identification POSIX.upe/ps 805 812 1013
    Problem Summary PG4C.00084 This IR claims that ps default process selection is incorrect and that ps -f -o user is not valid.
    Problem Text
    This IR claims that ps default process selection is incorrect
    and that ps -f -o user is not valid.

    In case of 805,

    The test case fails as it expect all the process running with the same
    controlling terminal as the invoker (which is user "vscuser1" in this
    case) should have the effective user ID as the current user i.e, "vscuser1".
    But when we consider a situation wherein the user logs into the system, having
    vsc test suite, through telnet/rlogin, then the telnetd/rlogind process
    running with the same controlling terminal as the user will have effective
    uid of root. Therefore in such a scenerio this test case will always fails
    as it expect all the process with the same controlling terminal to have
    the effective uid of the current user. Similar is the case when the user
    invokes a program which setuids to root.

    In case of 812,

    Reason for failure of this test case is same as test case no. 805

    In case of 1013,

    As per POSIX.2 standards Line No. 3693-3695, when the -o option is not
    specified, the standard output format is implementation defined. The
    -o option allows the output format to be specified under user control.

    Therefore in this test case,

    ps -f -o pid,comm,args > ps_tmp_1013 2>/dev/null

    fails as -f option (which is not an POSIX requirement) is specified
    alongwith -o option, which is treated as an error condition and 'ps'
    writes an diagnostic message onto standard error and exit with non-zero
    value.
    Test Output
    --------------- ps
    ***********************************************************************
    /tset/POSIX.upe/ps/ps.ex 1 Failed


    Test Information:
    Assertion #805 (A): ps selects all processes with same effec
    <LC> tive user ID as current user and the same controlling
    <LC> terminal as the invoker.
    Not all processes had euid of vscuser1
    Contents of out.stdout:
    USER
    root
    vscuser1
    vscuser1
    vscuser1
    vscuser1
    root

    ***********************************************************************


    *********************************************************************
    /tset/POSIX.upe/ps/ps.ex 1 Failed


    Test Information:
    Assertion #812 (A): ps -o writes information according to fo
    <LC> rmat specification
    Expected return code 0; Received 1
    Command failed: 'exit_stat_check'

    ***********************************************************************

    ***********************************************************************
    /tset/POSIX.upe/ps/ps.ex 1 Failed


    Test Information:
    Assertion #1013 (A): ps -f tries to determine command name
    <LC> and args given
    Expected exit code = 0; Received 1
    ps -f output found unacceptable.
    Contents of out.stdout:
    ps: cannot specify -l, -L, -f and -F options with -o option

    ***********************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.

    We believe the test is correct.

    For test purposes 805 and 812, the test expects only those processes
    that have the same controlling terminal AND the same effective user ID
    to be listed. The X/Open standard states in the Description section
    on page 593,

    By default, ps selects all processes with the same effective
    user ID as the current user and the same controlling terminal
    as the invoker.

    Processes with an effective user ID of root should not be selected.

    For test purpose 1013, the -f option is an X/Open required option as
    described on page 593 of the Commands and Utilities Issue 4, Version 2
    specification.

    The ps command synopsis does not prevent the -f option from being specified
    along with the -o option. The XCU spec states on page 595,

    When the -o option is not specified, the standard output is as
    follows.

    [...]

    The -o option allows the output formt to be specified under
    user control.

    This give precedence to the -o option when it is specified.

    Test 1013 is not a test for a POSIX assertion. The VSC User and
    Installation Guide section 2.5, describes the conventions used by the
    test suite to distinguish between POSIX only and X/Open requirements.
    Tests numbered 1001 and higher are those tests that are required by
    the X/Open specification. Consequently, they may utilize X/Open
    defined behavior within any of the those tests.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority