- Fix link to only link on sandbox
This commit is contained in:
parent
cee66038e2
commit
dd8fa006e0
@ -1,7 +1,7 @@
|
|||||||
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.30/src/genhomedircon.c
|
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.31/src/genhomedircon.c
|
||||||
--- nsalibsemanage/src/genhomedircon.c 2008-08-28 09:34:24.000000000 -0400
|
--- nsalibsemanage/src/genhomedircon.c 2008-08-28 09:34:24.000000000 -0400
|
||||||
+++ libsemanage-2.0.30/src/genhomedircon.c 2009-01-12 10:29:24.000000000 -0500
|
+++ libsemanage-2.0.31/src/genhomedircon.c 2009-01-15 15:53:31.000000000 -0500
|
||||||
@@ -794,6 +792,12 @@
|
@@ -794,6 +794,12 @@
|
||||||
* /root */
|
* /root */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -14,12 +14,34 @@ diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libseman
|
|||||||
if (push_user_entry(&head, name, seuname,
|
if (push_user_entry(&head, name, seuname,
|
||||||
prefix, pwent->pw_dir) != STATUS_SUCCESS) {
|
prefix, pwent->pw_dir) != STATUS_SUCCESS) {
|
||||||
*errors = STATUS_ERR;
|
*errors = STATUS_ERR;
|
||||||
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage.conf libsemanage-2.0.30/src/semanage.conf
|
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage.conf libsemanage-2.0.31/src/semanage.conf
|
||||||
--- nsalibsemanage/src/semanage.conf 2008-08-28 09:34:24.000000000 -0400
|
--- nsalibsemanage/src/semanage.conf 2008-08-28 09:34:24.000000000 -0400
|
||||||
+++ libsemanage-2.0.30/src/semanage.conf 2009-01-12 10:29:24.000000000 -0500
|
+++ libsemanage-2.0.31/src/semanage.conf 2009-01-15 15:53:31.000000000 -0500
|
||||||
@@ -35,4 +35,4 @@
|
@@ -35,4 +35,4 @@
|
||||||
# given in <sepol/policydb.h>. Change this setting if a different
|
# given in <sepol/policydb.h>. Change this setting if a different
|
||||||
# version is necessary.
|
# version is necessary.
|
||||||
#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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Summary: SELinux binary policy manipulation library
|
Summary: SELinux binary policy manipulation library
|
||||||
Name: libsemanage
|
Name: libsemanage
|
||||||
Version: 2.0.31
|
Version: 2.0.31
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: http://www.nsa.gov/selinux/archives/libsemanage-%{version}.tgz
|
Source: http://www.nsa.gov/selinux/archives/libsemanage-%{version}.tgz
|
||||||
@ -90,6 +90,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_libdir}/python*/site-packages/*
|
%{_libdir}/python*/site-packages/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 15 2009 Dan Walsh <dwalsh@redhat.com> - 2.0.31-2
|
||||||
|
- Fix link to only link on sandbox
|
||||||
|
|
||||||
* Mon Jan 12 2009 Dan Walsh <dwalsh@redhat.com> - 2.0.31-1
|
* Mon Jan 12 2009 Dan Walsh <dwalsh@redhat.com> - 2.0.31-1
|
||||||
- Update to upstream
|
- Update to upstream
|
||||||
* Policy module compression (bzip) support from Dan Walsh.
|
* Policy module compression (bzip) support from Dan Walsh.
|
||||||
|
Loading…
Reference in New Issue
Block a user