rpms/mailman/devel mailman-update-cfg, 1.1, 1.2 mailman.spec, 1.83, 1.84
Daniel Novotny
dnovotny at fedoraproject.org
Wed Jul 22 11:30:44 UTC 2009
Author: dnovotny
Update of /cvs/extras/rpms/mailman/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12539
Modified Files:
mailman-update-cfg mailman.spec
Log Message:
fix #512798
Index: mailman-update-cfg
===================================================================
RCS file: /cvs/extras/rpms/mailman/devel/mailman-update-cfg,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- mailman-update-cfg 12 Feb 2009 14:33:36 -0000 1.1
+++ mailman-update-cfg 22 Jul 2009 11:30:13 -0000 1.2
@@ -1,4 +1,13 @@
#!/usr/bin/python
+
+# This script is needed, when SELinux is enabled:
+# mailman_mail_t context cannot write to the directory
+# @libdir@/mailman/Mailman so when you change mm_cfg.py,
+# mailman cannot create the .pyc
+#
+# This script is called in the init script, which is run in unconfined_t
+# so the .pyc is created and the AVC denial is avoided. (bz#481446)
+
import py_compile
-py_compile.compile("/usr/lib/mailman/Mailman/mm_cfg.py")
+py_compile.compile("@libdir@/mailman/Mailman/mm_cfg.py")
Index: mailman.spec
===================================================================
RCS file: /cvs/extras/rpms/mailman/devel/mailman.spec,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -p -r1.83 -r1.84
--- mailman.spec 8 Jul 2009 10:39:21 -0000 1.83
+++ mailman.spec 22 Jul 2009 11:30:14 -0000 1.84
@@ -1,7 +1,7 @@
Summary: Mailing list manager with built in Web access
Name: mailman
Version: 2.1.12
-Release: 6%{?dist}
+Release: 7%{?dist}
Epoch: 3
Group: Applications/Internet
Source0: ftp://ftp.gnu.org/pub/gnu/mailman/mailman-%{version}.tgz
@@ -247,6 +247,8 @@ cp -r %{mmbuilddir}/doc $RPM_BUILD_ROOT%
#install the script for updating the config (bz#484328)
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m755 %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}
+# set library path in mailman-update-cfg script.
+sed -i 's, at libdir@,%{_libdir},g' $RPM_BUILD_ROOT%{_bindir}/mailman-update-cfg
# remove dir/files from $RPM_BUILD_ROOT that we aren't shipping
rm -rf $RPM_BUILD_ROOT%{varmmdir}/icons
@@ -483,6 +485,12 @@ exit 0
%attr(0755,root,root) %{_bindir}/mailman-update-cfg
%changelog
+* Wed Jul 22 2009 Daniel Novotny <dnovotny at redhat.com> 3:2.1.12-7
+- fix bz#512798 - Mailman path in /usr/bin/mailman-update-cfg
+ is incorrect on x86_64.
+- added explanation comment in mailman-update-cfg, to justify
+ why this script is needed
+
* Wed Jul 08 2009 Daniel Novotny <dnovotny at redhat.com> 3:2.1.12-6
- fix bz#509689 - please remove execute perms
More information about the fedora-extras-commits
mailing list