All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: genhomedircon
Date: Fri, 20 Aug 2004 21:52:35 +1000	[thread overview]
Message-ID: <200408202152.35564.russell@coker.com.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

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

-- 
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

[-- Attachment #2: genhomedircon.diff --]
[-- Type: text/x-diff, Size: 446 bytes --]

--- policycoreutils-1.16.orig/scripts/genhomedircon	2004-08-12 22:38:42.000000000 +1000
+++ policycoreutils-1.16/scripts/genhomedircon	2004-08-20 21:46:10.000000000 +1000
@@ -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()
 

             reply	other threads:[~2004-08-20 12:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-20 11:52 Russell Coker [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-19 10:28 genhomedircon Russell Coker
2006-05-19 14:09 ` genhomedircon Christopher J. PeBenito
2004-07-19 13:02 genhomedircon Russell Coker
2004-06-16  6:08 genhomedircon Russell Coker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408202152.35564.russell@coker.com.au \
    --to=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.