Skip to contentSkip to conversation

genhomedircon

PATCH Russell Coker 1 participant 1 message Aug 20, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

In genhomedircon version 1.16 there is some duplicated code. The attached patch removes it.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
scripts/genhomedircon +0 -6
@@ -97,12 +97,6 @@
 	else:
 		STARTING_UID=500
 
-	rc=commands.getstatusoutput("grep -h '^UID_MIN' /etc/login.defs | sed -e 's/^UID_MIN[^0-9]*//'")
-	if rc[0] == 0:
-		STARTING_UID=rc[1]
-	else:
-		STARTING_UID=500
-
 	FILECONTEXTDIR=sys.argv[1]
 	prefixes = getPrefixes()