rpms/ibus/devel ibus-HEAD.patch,1.11,1.12 ibus.spec,1.62,1.63

Huang Peng phuang at fedoraproject.org
Tue Apr 14 09:06:25 UTC 2009


Author: phuang

Update of /cvs/pkgs/rpms/ibus/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22019

Modified Files:
	ibus-HEAD.patch ibus.spec 
Log Message:
Update ibus-HEAD.patch to improve security

ibus-HEAD.patch:

Index: ibus-HEAD.patch
===================================================================
RCS file: /cvs/pkgs/rpms/ibus/devel/ibus-HEAD.patch,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ibus-HEAD.patch	31 Mar 2009 03:55:08 -0000	1.11
+++ ibus-HEAD.patch	14 Apr 2009 09:06:24 -0000	1.12
@@ -0,0 +1,19 @@
+diff --git a/bus/server.c b/bus/server.c
+index 7245bd3..425dd86 100644
+--- a/bus/server.c
++++ b/bus/server.c
+@@ -90,10 +90,13 @@ bus_server_listen (BusServer *server)
+     gboolean retval;
+ 
+     path = g_strdup_printf("/tmp/ibus-%s", ibus_get_user_name ());
+-    mkdir (path, 0775);
++    mkdir (path, 0700);
++    chmod (path, 0700);
++
+     address = ibus_get_address ();
+ 
+     retval = ibus_server_listen (IBUS_SERVER (server), address);
++    chmod (ibus_get_socket_path (), 0600);
+ 
+     if (!retval) {
+         g_printerr ("Can not listen on %s! Please try remove directory %s and run again.", address, path);


Index: ibus.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ibus/devel/ibus.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- ibus.spec	13 Apr 2009 08:54:32 -0000	1.62
+++ ibus.spec	14 Apr 2009 09:06:25 -0000	1.63
@@ -8,7 +8,7 @@
 
 Name:       ibus
 Version:    1.1.0.20090413
-Release:    1%{?dist}
+Release:    2%{?dist}
 Summary:    Intelligent Input Bus for Linux OS
 License:    LGPLv2+
 Group:      System Environment/Libraries
@@ -105,8 +105,7 @@
 
 %prep
 %setup -q
-# rm -rf docs/reference/ibus/ibus-sections.txt
-# %patch0 -p1
+%patch0 -p1
 # ./autogen.sh --help
 
 %build
@@ -218,6 +217,11 @@
 %{_libdir}/pkgconfig/*
 
 %changelog
+* Tue Apr 14 2009 Huang Peng <shawn.p.huang at gmail.com> - 1.1.0.20090413-2
+- Update ibus-HEAD.patch.
+- Change the mode of /tmp/ibus-$USER to 0700 to improve security
+- Change the mode of /tmp/ibus-$USER/socket-address to 0600 to improve security
+
 * Mon Apr 13 2009 Huang Peng <shawn.p.huang at gmail.com> - 1.1.0.20090413-1
 - Update to ibus-1.1.0.20090413.
 - Fix crash when restart the ibus-daemon




More information about the fedora-extras-commits mailing list