forked from pool/libsemanage
This commit is contained in:
parent
4b7081c045
commit
a835e72e16
@ -23,3 +23,25 @@ diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage.conf libsemanag
|
|||||||
#policy-version = 19
|
#policy-version = 19
|
||||||
-
|
-
|
||||||
+expand-check=0
|
+expand-check=0
|
||||||
|
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage_store.c libsemanage-2.0.31/src/semanage_store.c
|
||||||
|
--- nsalibsemanage/src/semanage_store.c 2009-01-13 08:45:35.000000000 -0500
|
||||||
|
+++ libsemanage-2.0.31/src/semanage_store.c 2009-01-15 15:53:46.000000000 -0500
|
||||||
|
@@ -440,8 +440,6 @@
|
||||||
|
char tmp[PATH_MAX];
|
||||||
|
char buf[4192];
|
||||||
|
|
||||||
|
- if (link(src,dst) == 0) return 0;
|
||||||
|
-
|
||||||
|
n = snprintf(tmp, PATH_MAX, "%s.tmp", dst);
|
||||||
|
if (n < 0 || n >= PATH_MAX)
|
||||||
|
return -1;
|
||||||
|
@@ -509,7 +507,8 @@
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
} else if (S_ISREG(sb.st_mode)) {
|
||||||
|
- if (semanage_copy_file(path, path2, sb.st_mode) == -1) {
|
||||||
|
+ if ((link(path,path2) == -1) &&
|
||||||
|
+ (semanage_copy_file(path, path2, sb.st_mode) == -1)) {
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 16 14:24:38 CET 2009 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- fix assignment of wrong context [bnc#466793]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 14 14:06:28 CET 2009 - prusnak@suse.cz
|
Wed Jan 14 14:06:28 CET 2009 - prusnak@suse.cz
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ BuildRequires: libsepol-devel >= %{libsepol_ver}
|
|||||||
|
|
||||||
Name: libsemanage
|
Name: libsemanage
|
||||||
Version: 2.0.31
|
Version: 2.0.31
|
||||||
Release: 1
|
Release: 2
|
||||||
Url: http://www.nsa.gov/selinux/
|
Url: http://www.nsa.gov/selinux/
|
||||||
License: LGPL v2.1 only
|
License: LGPL v2.1 only
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -168,6 +168,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/python*/site-packages/*
|
%{_libdir}/python*/site-packages/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 16 2009 prusnak@suse.cz
|
||||||
|
- fix assignment of wrong context [bnc#466793]
|
||||||
* Wed Jan 14 2009 prusnak@suse.cz
|
* Wed Jan 14 2009 prusnak@suse.cz
|
||||||
- updated to 2.0.31
|
- updated to 2.0.31
|
||||||
* policy module compression (bzip) support from Dan Walsh
|
* policy module compression (bzip) support from Dan Walsh
|
||||||
|
Loading…
Reference in New Issue
Block a user