Skip to content

Commit 2feaac1

Browse files
committed
Merge pull request #10 from herrold/master
comments and testing on CentOS 6.5 current
2 parents 92b4f11 + 426e90c commit 2feaac1

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

tests/distro/groupNames.py

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import grp
44
import sys
55

6+
# FIXME: does not run on CentOS 6.5
7+
68
lsbGroups = {
79
'root' : 0,
810
'nobody' : 65533,

tests/distro/userNames.py

100644100755
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
import pwd
44
import sys
55

6+
# FIXME: does not run on CentOS 6.5
7+
# TBD: rework this to follow: man 5 passwd layout
8+
# TBD: hijack the GECOS field to add a bitmap:
9+
# MUST be present 0000 0001
10+
# MUST match LSB_pw_name 0000 0010
11+
# MUST match LSB_pw_uid 0000 0100
12+
# MUST match LSB_pw_gid 0000 1000
13+
# Query: do we care about homes?
14+
#
15+
# sources for assignments in RHT space:
16+
# cat `rpm -ql setup | grep uidgid`
17+
#
18+
# conflict: RHT uses group: 65534 for nobody
19+
# possible conflict: some distributions use 'admin' for 'root'
20+
#
621
lsbUsers = {
722
'root' : (0,0),
823
'nobody' : (65534,65533),
@@ -14,3 +29,7 @@
1429
print 'UID and or GID for user %s do not match specification' %usr
1530
print 'found: (', uid, ',', gid, ') expected: ', lsbUsers[usr]
1631
sys.exit(1)
32+
33+
# TBD: get rid of un-sourced numeric constants
34+
# TBD: check for the inverse case of a username found
35+
# but not matching

0 commit comments

Comments
 (0)