[PATCH 65/84] libsemange: redo genhomedircon minuid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


   This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlD+qG4ACgkQrlYvE4MpobOFdwCbBwhiA6yGJgmg0HWxXhQ449n5
QjIAnRockaqesiZD78vyzUDJzcS7sn0w
=WbvM
-----END PGP SIGNATURE-----
>From ff1525e9e8c55ad0371b14439f3313bf301ff4ce Mon Sep 17 00:00:00 2001
From: Eric Paris <eparis@xxxxxxxxxx>
Date: Wed, 5 Dec 2012 15:35:12 -0500
Subject: [PATCH 65/84] libsemange: redo genhomedircon minuid

Just a little less code.  No real change.

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 libsemanage/src/genhomedircon.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/libsemanage/src/genhomedircon.c b/libsemanage/src/genhomedircon.c
index 15bca6c..26f6dd8 100644
--- a/libsemanage/src/genhomedircon.c
+++ b/libsemanage/src/genhomedircon.c
@@ -283,7 +283,7 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s)
 	char *rbuf = NULL;
 	char *path = NULL;
 	long rbuflen;
-	uid_t temp, minuid = 0;
+	uid_t temp, minuid = 500;
 	int minuid_set = 0;
 	struct passwd pwstorage, *pwbuf;
 	struct stat buf;
@@ -346,11 +346,6 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s)
 	free(path);
 	path = NULL;
 
-	if (!minuid_set) {
-		minuid = 500;
-		minuid_set = 1;
-	}
-
 	rbuflen = sysconf(_SC_GETPW_R_SIZE_MAX);
 	if (rbuflen <= 0)
 		goto fail;
-- 
1.8.1


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux