From: Daniel J Walsh <dwalsh@redhat.com>
To: "Todd C. Miller" <tmiller@tresys.com>
Cc: Joshua Brindle <jbrindle@tresys.com>,
Stephen Smalley <sds@tycho.nsa.gov>,
selinux@tycho.nsa.gov
Subject: Re: [patch 0/4] libsemanage: genhomedircon regressions
Date: Mon, 01 Oct 2007 12:31:09 -0400 [thread overview]
Message-ID: <470120CD.5050009@redhat.com> (raw)
In-Reply-To: <200709281804.l8SI4Cuj031486@cadmus.columbia.tresys.com>
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This patch makes sure /root gets labeled even if it is using the default
context.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHASDNrlYvE4MpobMRAuAAAJ0edHnaWRQ/RuE8llb+RQ9Zh43j6ACg2qXK
FsPmAB6fb4Ct9ytLVhxYijk=
=S8km
-----END PGP SIGNATURE-----
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 679 bytes --]
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.11/src/genhomedircon.c
--- nsalibsemanage/src/genhomedircon.c 2007-10-01 09:54:35.000000000 -0400
+++ libsemanage-2.0.11/src/genhomedircon.c 2007-10-01 12:24:39.000000000 -0400
@@ -668,12 +668,11 @@
for (i = 0; i < nseusers; i++) {
seuname = semanage_seuser_get_sename(seuser_list[i]);
+ name = semanage_seuser_get_name(seuser_list[i]);
- if (strcmp(seuname, s->fallback_user) == 0)
+ if (strcmp(name,"root") && strcmp(seuname, s->fallback_user) == 0)
continue;
- name = semanage_seuser_get_name(seuser_list[i]);
-
if (strcmp(name, DEFAULT_LOGIN) == 0)
continue;
[-- Attachment #3: diff.sig --]
[-- Type: application/octet-stream, Size: 65 bytes --]
next prev parent reply other threads:[~2007-10-01 16:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 18:04 [patch 0/4] libsemanage: genhomedircon regressions Todd C. Miller
2007-09-28 18:21 ` Stephen Smalley
2007-10-01 16:31 ` Daniel J Walsh [this message]
2007-10-01 17:43 ` Todd Miller
2007-10-05 14:19 ` Stephen Smalley
-- strict thread matches above, loose matches on Subject: below --
2007-09-27 20:07 Todd C. Miller
2007-09-28 13:36 ` Stephen Smalley
2007-09-28 13:44 ` Stephen Smalley
2007-09-28 13:58 ` Daniel J Walsh
2007-09-28 13:51 ` Stephen Smalley
2007-09-28 13:55 ` Stephen Smalley
2007-09-28 15:06 ` Daniel J Walsh
2007-09-28 14:23 ` Todd Miller
2007-09-28 15:00 ` Todd Miller
2007-09-28 14:59 ` Stephen Smalley
2007-09-28 15:35 ` Joshua Brindle
2007-09-28 16:49 ` Stephen Smalley
2007-09-28 15:15 ` Daniel J Walsh
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=470120CD.5050009@redhat.com \
--to=dwalsh@redhat.com \
--cc=jbrindle@tresys.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=tmiller@tresys.com \
/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.