[PATCH 43/63] policycoreutils: setfiles: close /proc/mounts file

[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.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6wTa0ACgkQrlYvE4MpobPKtwCfe4LhQOVD/KWKPCaJg2Bra/OW
Jv4An0oOS3RQNJvffP+LwuDLi+GNdrGn
=tGA0
-----END PGP SIGNATURE-----
>From e5114227d934c2e117e193fd36cab796425c8524 Mon Sep 17 00:00:00 2001
From: Eric Paris <eparis@xxxxxxxxxx>
Date: Thu, 29 Sep 2011 14:46:26 -0400
Subject: [PATCH 43/63] policycoreutils: setfiles: close /proc/mounts file
 when finished

When testing for mount points to exclude we read /proc/mounts.  Close
this file when we are finished reading it.

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 policycoreutils/setfiles/restore.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/policycoreutils/setfiles/restore.c b/policycoreutils/setfiles/restore.c
index c1395e1..9713345 100644
--- a/policycoreutils/setfiles/restore.c
+++ b/policycoreutils/setfiles/restore.c
@@ -678,5 +678,6 @@ void exclude_non_seclabel_mounts()
 	}
 
 	free(buf);
+	fclose(fp);
 }
 
-- 
1.7.7


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

  Powered by Linux