Skip to contentSkip to conversation

Minor genhomedircon patch

DISCUSSION Stephen Smalley 2 participants 2 messages Jan 27, 2005 4 messages not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Without this change UID are compared as strings instead of integers.

scripts/genhomedircon +1 -1
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/genhomedircon policycoreutils-1.21.5/scripts/genhomedircon
@@ -96,7 +96,7 @@
 
 	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]
+		STARTING_UID=int(rc[1])
 	else:
 		STARTING_UID=500
 
#5 lore raw
Quoted 1 line · Daniel J Walsh

Without this change UID are compared as strings instead of integers.

Thanks, merged into sourceforge CVS as of policycoreutils 1.21.6.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.