Bug 211021

Summary: z90crypt requires a test user
Product: [Retired] Red Hat Hardware Certification Program Reporter: Rob Landry <rlandry>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-29 21:20:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rob Landry 2006-10-16 20:31:49 UTC
Description of problem:

$SUBJECT; rhr2 adds an rhr2test user for this; can use a different user if
preferred/required.  Would need to verify if the 'nobody' user could be used.


Version-Release number of selected component (if applicable):

hts-5.0-2

Comment 1 heyinglong 2006-11-01 10:28:26 UTC
I review the rhr2 SPEC file, found the rhr2 SPEC did some job for user rhr2test,
which as following:

-----------------------------------------------------------------------------
if ! getent passwd rhr2test &> /dev/null; then
    home=/var/log/rhr/home/rhr2test
    mkdir -p -m 0700 $home
    useradd -c "Red Hat Ready Test User" rhr2test -u 87 -d $home -r -s
/sbin/nologin -M
    # s390[x] has the the pkcs11 group, which is needed for crypto testing
    getent group pkcs11 &> /dev/null && usermod -G pkcs11 rhr2test
    chown rhr2test:rhr2test $home
fi
------------------------------------------------------------------------------

I also review the /usr/share/rhr/tests/Z90CRYPT, found where do user rhr2test is
used:
------------------------------------------------------------------------------
echo "if [ `$pkcsconf -t` 1>&2; echo $? -eq 192 ]; then true; else false; fi" |
su - rhr2test -s /bin/bash
-------------------------------------------------------------------------------

So I think we can use another user in hts, but we must ensure the user which we
use in hts should in pkcs11 group.

Comment 2 Irina Boverman 2006-11-29 21:20:53 UTC
Closed as no longer required.