rpms/libselinux/devel libselinux-rhat.patch, 1.179, 1.180 libselinux.spec, 1.353, 1.354

Daniel J Walsh dwalsh at fedoraproject.org
Tue Jan 6 15:45:20 UTC 2009


Author: dwalsh

Update of /cvs/extras/rpms/libselinux/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16976

Modified Files:
	libselinux-rhat.patch libselinux.spec 
Log Message:
* Tue Jan 6 2009 Dan Walsh <dwalsh at redhat.com> - 2.0.77-2
- Fix restorecon python code


libselinux-rhat.patch:

Index: libselinux-rhat.patch
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/libselinux-rhat.patch,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -r1.179 -r1.180
--- libselinux-rhat.patch	6 Jan 2009 14:31:46 -0000	1.179
+++ libselinux-rhat.patch	6 Jan 2009 15:44:49 -0000	1.180
@@ -110,7 +110,7 @@
 +
 +def restorecon(path, recursive=False):
 +    """ Restore SELinux context on a given path """
-+    mode = os.stat(path)[stat.ST_MODE]
++    mode = os.lstat(path)[stat.ST_MODE]
 +    status, context = matchpathcon(path, mode)
 +    if status == 0:
 +        lsetfilecon(path, context)
@@ -153,7 +153,7 @@
 +
 +def restorecon(path, recursive=False):
 +    """ Restore SELinux context on a given path """
-+    mode = os.stat(path)[stat.ST_MODE]
++    mode = os.lstat(path)[stat.ST_MODE]
 +    status, context = matchpathcon(path, mode)
 +    if status == 0:
 +        lsetfilecon(path, context)


Index: libselinux.spec
===================================================================
RCS file: /cvs/extras/rpms/libselinux/devel/libselinux.spec,v
retrieving revision 1.353
retrieving revision 1.354
diff -u -r1.353 -r1.354
--- libselinux.spec	6 Jan 2009 14:31:47 -0000	1.353
+++ libselinux.spec	6 Jan 2009 15:44:49 -0000	1.354
@@ -5,7 +5,7 @@
 Summary: SELinux library and simple utilities
 Name: libselinux
 Version: 2.0.77
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: Public Domain
 Group: System Environment/Libraries
 Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
@@ -164,6 +164,9 @@
 %{ruby_sitearch}/selinux.so
 
 %changelog
+* Tue Jan 6 2009 Dan Walsh <dwalsh at redhat.com> - 2.0.77-2
+- Fix restorecon python code
+
 * Tue Jan 6 2009 Dan Walsh <dwalsh at redhat.com> - 2.0.77-1
 - Update to upstream
 




More information about the scm-commits mailing list