[python-testtools] Update to 0.9.12
by Michel Alexandre Salim
commit 009fc17f1260dc70f980dfce963cdd2c4ae9de47
Author: Michel Alexandre Salim <salimma(a)fedoraproject.org>
Date: Wed Feb 1 00:51:17 2012 +0100
Update to 0.9.12
.gitignore | 2 +-
python-testtools.spec | 7 +++++--
sources | 2 +-
3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3f1312f..55b2ea9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/testtools-0.9.11.tar.gz
+/testtools-0.9.12.tar.gz
diff --git a/python-testtools.spec b/python-testtools.spec
index fccaa98..81d7425 100644
--- a/python-testtools.spec
+++ b/python-testtools.spec
@@ -1,8 +1,8 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: python-testtools
-Version: 0.9.11
-Release: 2%{?dist}
+Version: 0.9.12
+Release: 1%{?dist}
Summary: Extensions to the Python unit testing framework
Group: Development/Tools
@@ -57,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Tue Jan 31 2012 Michel Salim <salimma(a)fedoraproject.org> - 0.9.12-1
+- Update to 0.9.12
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0.9.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/sources b/sources
index eb433b5..e63edec 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-89616849d247f120bb3984cd871b161f testtools-0.9.11.tar.gz
+e15a29a19f5bebbe1bcd8444439ea582 testtools-0.9.12.tar.gz
11Â years, 10Â months
[ZipArchive] Fix ZipArchive not recognising dirs as such in some zips
by Hans de Goede
commit 990d5fe5df03e552154ac03c519f3f19359f7afa
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Wed Feb 1 00:51:51 2012 +0100
Fix ZipArchive not recognising dirs as such in some zips
ZipArchive-4.1.1-file-attr-fix.patch | 31 +++++++++++++++++++++++++++++++
ZipArchive.spec | 8 +++++++-
2 files changed, 38 insertions(+), 1 deletions(-)
---
diff --git a/ZipArchive-4.1.1-file-attr-fix.patch b/ZipArchive-4.1.1-file-attr-fix.patch
new file mode 100644
index 0000000..914da59
--- /dev/null
+++ b/ZipArchive-4.1.1-file-attr-fix.patch
@@ -0,0 +1,31 @@
+diff -up ZipArchive-4.1.1/ZipArchive/ZipFileHeader.cpp~ ZipArchive-4.1.1/ZipArchive/ZipFileHeader.cpp
+--- ZipArchive-4.1.1/ZipArchive/ZipFileHeader.cpp~ 2012-02-01 00:44:35.000000000 +0100
++++ ZipArchive-4.1.1/ZipArchive/ZipFileHeader.cpp 2012-02-01 00:44:51.214910040 +0100
+@@ -866,26 +866,7 @@ bool CZipFileHeader::IsDirectory()
+
+ DWORD CZipFileHeader::GetSystemAttr()
+ {
+- if (ZipCompatibility::IsPlatformSupported(GetSystemCompatibility()))
+- {
+- DWORD uAttr = GetSystemCompatibility() == ZipCompatibility::zcUnix ? (m_uExternalAttr >> 16) : (m_uExternalAttr & 0xFFFF);
+- DWORD uConvertedAttr = ZipCompatibility::ConvertToSystem(uAttr, GetSystemCompatibility(), ZipPlatform::GetSystemID());
+- if (m_uComprSize == 0 && !ZipPlatform::IsDirectory(uConvertedAttr) && CZipPathComponent::HasEndingSeparator(GetFileName()))
+- // can happen, a folder can have attributes set and no dir attribute (Python modules)
+- // TODO: [postponed] fix and cache after reading from central dir, but avoid calling GetFileName() there to keep lazy name conversion
+- return ZipPlatform::GetDefaultDirAttributes() | uConvertedAttr;
+- else
+- {
+-#ifdef _ZIP_SYSTEM_LINUX
+- // converting from Windows attributes may create a not readable linux directory
+- if (GetSystemCompatibility() != ZipCompatibility::zcUnix && ZipPlatform::IsDirectory(uConvertedAttr))
+- return ZipPlatform::GetDefaultDirAttributes();
+-#endif
+- return uConvertedAttr;
+- }
+- }
+- else
+- return CZipPathComponent::HasEndingSeparator(GetFileName()) ? ZipPlatform::GetDefaultDirAttributes() : ZipPlatform::GetDefaultAttributes();
++ return CZipPathComponent::HasEndingSeparator(GetFileName()) ? ZipPlatform::GetDefaultDirAttributes() : ZipPlatform::GetDefaultAttributes();
+ }
+
+ bool CZipFileHeader::SetSystemAttr(DWORD uAttr)
diff --git a/ZipArchive.spec b/ZipArchive.spec
index e13ca0b..8401f27 100644
--- a/ZipArchive.spec
+++ b/ZipArchive.spec
@@ -1,6 +1,6 @@
Name: ZipArchive
Version: 4.1.1
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Library for accessing zip files
Group: System Environment/Libraries
@@ -15,6 +15,8 @@ Patch1: %{name}-autotools.patch
Patch2: %{name}-system-zlib.patch
# Fix building with gcc-4.7
Patch3: %{name}-gcc-4.7.patch
+# Fix ZipArchive not recognising dirs as such in some zips
+Patch4: %{name}-4.1.1-file-attr-fix.patch
BuildRequires: libtool
BuildRequires: zlib-devel
@@ -45,6 +47,7 @@ developing applications that use %{name}.
%patch1 -p1 -b .autotools
%patch2 -p1 -b .system-zlib
%patch3 -p1 -b .gcc47
+%patch4 -p1
for i in ZipArchive/*.txt; do
sed -i.old 's/\r//' "$i"
@@ -88,6 +91,9 @@ install -p -m 644 %{name}.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
%changelog
+* Tue Jan 31 2012 Hans de Goede <hdegoede(a)redhat.com> - 4.1.1-7
+- Fix ZipArchive not recognising dirs as such in some zips
+
* Mon Jan 23 2012 Hans de Goede <hdegoede(a)redhat.com> - 4.1.1-6
- Improve package description (rhbz#773313)
11Â years, 10Â months
[liboauth/el5] Update to 0.9.6
by Michel Alexandre Salim
Summary of changes:
9d64b1e... Update to 0.9.6 (*)
(*) This commit already existed in another branch; no separate mail sent
11Â years, 10Â months
[liboauth/el6] Update to 0.9.6
by Michel Alexandre Salim
Summary of changes:
9d64b1e... Update to 0.9.6 (*)
(*) This commit already existed in another branch; no separate mail sent
11Â years, 10Â months
[systemd/f15] Backport PassCredentials to avoid #757628 when F15 kernel is rebased to 3.2.
by Michal Schmidt
commit 14aacafb2e5ff428d34fb46d10e8de063afc3154
Author: Michal Schmidt <mschmidt(a)redhat.com>
Date: Tue Jan 31 23:53:40 2012 +0100
Backport PassCredentials to avoid #757628 when F15 kernel is rebased to 3.2.
0001-socket-add-option-for-SO_PASSCRED.patch | 90 +++++++++++++++++
...me-the-PassCred-option-to-PassCredentials.patch | 105 ++++++++++++++++++++
...downd-use-PassCred-yes-in-the-socket-unit.patch | 55 ++++++++++
...g-use-PassCred-yes-for-the-dev-log-socket.patch | 51 ++++++++++
0004-man-document-the-PassCred-option.patch | 34 +++++++
systemd.spec | 11 ++-
6 files changed, 345 insertions(+), 1 deletions(-)
---
diff --git a/0001-socket-add-option-for-SO_PASSCRED.patch b/0001-socket-add-option-for-SO_PASSCRED.patch
new file mode 100644
index 0000000..8c2b238
--- /dev/null
+++ b/0001-socket-add-option-for-SO_PASSCRED.patch
@@ -0,0 +1,90 @@
+From d68af58657ce0e99594dff199fbb9b319cf6af96 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt(a)redhat.com>
+Date: Tue, 29 Nov 2011 22:15:41 +0100
+Subject: [PATCH 1/4] socket: add option for SO_PASSCRED
+
+Add an option to enable SO_PASSCRED for unix sockets.
+---
+ src/dbus-socket.c | 2 ++
+ src/load-fragment-gperf.gperf.m4 | 1 +
+ src/socket.c | 8 ++++++++
+ src/socket.h | 1 +
+ 4 files changed, 12 insertions(+), 0 deletions(-)
+
+Index: systemd-26/src/dbus-socket.c
+===================================================================
+--- systemd-26.orig/src/dbus-socket.c
++++ systemd-26/src/dbus-socket.c
+@@ -49,6 +49,7 @@
+ " <property name=\"IPTTL\" type=\"i\" access=\"read\"/>\n" \
+ " <property name=\"PipeSize\" type=\"t\" access=\"read\"/>\n" \
+ " <property name=\"FreeBind\" type=\"b\" access=\"read\"/>\n" \
++ " <property name=\"PassCred\" type=\"b\" access=\"read\"/>\n" \
+ " <property name=\"Mark\" type=\"i\" access=\"read\"/>\n" \
+ " <property name=\"MaxConnections\" type=\"u\" access=\"read\"/>\n" \
+ " <property name=\"NAccepted\" type=\"u\" access=\"read\"/>\n" \
+@@ -107,6 +108,7 @@ DBusHandlerResult bus_socket_message_han
+ { "org.freedesktop.systemd1.Socket", "IPTTL", bus_property_append_int, "i", &u->socket.ip_ttl },
+ { "org.freedesktop.systemd1.Socket", "PipeSize", bus_property_append_size, "t", &u->socket.pipe_size },
+ { "org.freedesktop.systemd1.Socket", "FreeBind", bus_property_append_bool, "b", &u->socket.free_bind },
++ { "org.freedesktop.systemd1.Socket", "PassCred", bus_property_append_bool, "b", &u->socket.pass_cred },
+ { "org.freedesktop.systemd1.Socket", "Mark", bus_property_append_int, "i", &u->socket.mark },
+ { "org.freedesktop.systemd1.Socket", "MaxConnections", bus_property_append_unsigned, "u", &u->socket.max_connections },
+ { "org.freedesktop.systemd1.Socket", "NConnections", bus_property_append_unsigned, "u", &u->socket.n_connections },
+Index: systemd-26/src/socket.c
+===================================================================
+--- systemd-26.orig/src/socket.c
++++ systemd-26/src/socket.c
+@@ -404,6 +404,7 @@ static void socket_dump(Unit *u, FILE *f
+ "%sDirectoryMode: %04o\n"
+ "%sKeepAlive: %s\n"
+ "%sFreeBind: %s\n"
++ "%sPassCred: %s\n"
+ "%sTCPCongestion: %s\n",
+ prefix, socket_state_to_string(s->state),
+ prefix, socket_address_bind_ipv6_only_to_string(s->bind_ipv6_only),
+@@ -412,6 +413,7 @@ static void socket_dump(Unit *u, FILE *f
+ prefix, s->directory_mode,
+ prefix, yes_no(s->keep_alive),
+ prefix, yes_no(s->free_bind),
++ prefix, yes_no(s->pass_cred),
+ prefix, strna(s->tcp_congestion));
+
+ if (s->control_pid > 0)
+@@ -635,6 +637,12 @@ static void socket_apply_socket_options(
+ log_warning("SO_KEEPALIVE failed: %m");
+ }
+
++ if (s->pass_cred) {
++ int one = 1;
++ if (setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)) < 0)
++ log_warning("SO_PASSCRED failed: %m");
++ }
++
+ if (s->priority >= 0)
+ if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, &s->priority, sizeof(s->priority)) < 0)
+ log_warning("SO_PRIORITY failed: %m");
+Index: systemd-26/src/socket.h
+===================================================================
+--- systemd-26.orig/src/socket.h
++++ systemd-26/src/socket.h
+@@ -115,6 +115,7 @@ struct Socket {
+ /* Socket options */
+ bool keep_alive;
+ bool free_bind;
++ bool pass_cred;
+ int priority;
+ int mark;
+ size_t receive_buffer;
+Index: systemd-26/src/load-fragment.c
+===================================================================
+--- systemd-26.orig/src/load-fragment.c
++++ systemd-26/src/load-fragment.c
+@@ -1945,6 +1945,7 @@ static int load_from_path(Unit *u, const
+ { "Mark", config_parse_int, 0, &u->socket.mark, "Socket" },
+ { "PipeSize", config_parse_size, 0, &u->socket.pipe_size, "Socket" },
+ { "FreeBind", config_parse_bool, 0, &u->socket.free_bind, "Socket" },
++ { "PassCred", config_parse_bool, 0, &u->socket.pass_cred, "Socket" },
+ { "TCPCongestion", config_parse_string, 0, &u->socket.tcp_congestion, "Socket" },
+ { "Service", config_parse_socket_service, 0, &u->socket, "Socket" },
+ EXEC_CONTEXT_CONFIG_ITEMS(u->socket.exec_context, "Socket"),
diff --git a/0001-socket-rename-the-PassCred-option-to-PassCredentials.patch b/0001-socket-rename-the-PassCred-option-to-PassCredentials.patch
new file mode 100644
index 0000000..4e7a373
--- /dev/null
+++ b/0001-socket-rename-the-PassCred-option-to-PassCredentials.patch
@@ -0,0 +1,105 @@
+From 271b032a053f9d4a1be271bb052276ae27fe36c6 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart(a)poettering.net>
+Date: Sat, 31 Dec 2011 01:07:49 +0100
+Subject: [PATCH] socket: rename the PassCred= option to PassCredentials=,
+ since we don't want to needlessly abbreviate options unless
+ they are very well established
+
+---
+ man/systemd.socket.xml | 8 ++++----
+ src/dbus-socket.c | 4 ++--
+ src/load-fragment-gperf.gperf.m4 | 2 +-
+ src/socket.c | 2 +-
+ units/syslog.socket | 2 +-
+ units/systemd-journald.socket | 1 +
+ units/systemd-shutdownd.socket | 2 +-
+ 7 files changed, 11 insertions(+), 10 deletions(-)
+
+Index: systemd-26/man/systemd.socket.xml
+===================================================================
+--- systemd-26.orig/man/systemd.socket.xml
++++ systemd-26/man/systemd.socket.xml
+@@ -480,10 +480,10 @@
+ </varlistentry>
+
+ <varlistentry>
+- <term><varname>PassCred=</varname></term>
++ <term><varname>PassCredentials=</varname></term>
+ <listitem><para>Takes a boolean
+ value. This controls the SO_PASSCRED
+- option, which allows UNIX sockets to
++ socket option, which allows UNIX sockets to
+ receive the credentials of the sending
+ process in an ancillary message.
+ Defaults to
+Index: systemd-26/src/dbus-socket.c
+===================================================================
+--- systemd-26.orig/src/dbus-socket.c
++++ systemd-26/src/dbus-socket.c
+@@ -49,7 +49,7 @@
+ " <property name=\"IPTTL\" type=\"i\" access=\"read\"/>\n" \
+ " <property name=\"PipeSize\" type=\"t\" access=\"read\"/>\n" \
+ " <property name=\"FreeBind\" type=\"b\" access=\"read\"/>\n" \
+- " <property name=\"PassCred\" type=\"b\" access=\"read\"/>\n" \
++ " <property name=\"PassCredentials\" type=\"b\" access=\"read\"/>\n" \
+ " <property name=\"Mark\" type=\"i\" access=\"read\"/>\n" \
+ " <property name=\"MaxConnections\" type=\"u\" access=\"read\"/>\n" \
+ " <property name=\"NAccepted\" type=\"u\" access=\"read\"/>\n" \
+@@ -108,7 +108,7 @@ DBusHandlerResult bus_socket_message_han
+ { "org.freedesktop.systemd1.Socket", "IPTTL", bus_property_append_int, "i", &u->socket.ip_ttl },
+ { "org.freedesktop.systemd1.Socket", "PipeSize", bus_property_append_size, "t", &u->socket.pipe_size },
+ { "org.freedesktop.systemd1.Socket", "FreeBind", bus_property_append_bool, "b", &u->socket.free_bind },
+- { "org.freedesktop.systemd1.Socket", "PassCred", bus_property_append_bool, "b", &u->socket.pass_cred },
++ { "org.freedesktop.systemd1.Socket", "PassCredentials",bus_property_append_bool, "b", &u->socket.pass_cred },
+ { "org.freedesktop.systemd1.Socket", "Mark", bus_property_append_int, "i", &u->socket.mark },
+ { "org.freedesktop.systemd1.Socket", "MaxConnections", bus_property_append_unsigned, "u", &u->socket.max_connections },
+ { "org.freedesktop.systemd1.Socket", "NConnections", bus_property_append_unsigned, "u", &u->socket.n_connections },
+Index: systemd-26/src/socket.c
+===================================================================
+--- systemd-26.orig/src/socket.c
++++ systemd-26/src/socket.c
+@@ -404,7 +404,7 @@ static void socket_dump(Unit *u, FILE *f
+ "%sDirectoryMode: %04o\n"
+ "%sKeepAlive: %s\n"
+ "%sFreeBind: %s\n"
+- "%sPassCred: %s\n"
++ "%sPassCredentials: %s\n"
+ "%sTCPCongestion: %s\n",
+ prefix, socket_state_to_string(s->state),
+ prefix, socket_address_bind_ipv6_only_to_string(s->bind_ipv6_only),
+Index: systemd-26/units/syslog.socket
+===================================================================
+--- systemd-26.orig/units/syslog.socket
++++ systemd-26/units/syslog.socket
+@@ -18,7 +18,7 @@ Wants=syslog.target
+ [Socket]
+ ListenDatagram=/dev/log
+ SocketMode=0666
+-PassCred=yes
++PassCredentials=yes
+
+ # The service we activate on incoming traffic is
+ # systemd-kmsg-syslogd.service. That doesn't mean however, that this
+Index: systemd-26/units/systemd-shutdownd.socket
+===================================================================
+--- systemd-26.orig/units/systemd-shutdownd.socket
++++ systemd-26/units/systemd-shutdownd.socket
+@@ -15,4 +15,4 @@ Before=sockets.target
+ [Socket]
+ ListenDatagram=/run/systemd/shutdownd
+ SocketMode=0600
+-PassCred=yes
++PassCredentials=yes
+Index: systemd-26/src/load-fragment.c
+===================================================================
+--- systemd-26.orig/src/load-fragment.c
++++ systemd-26/src/load-fragment.c
+@@ -1945,7 +1945,7 @@ static int load_from_path(Unit *u, const
+ { "Mark", config_parse_int, 0, &u->socket.mark, "Socket" },
+ { "PipeSize", config_parse_size, 0, &u->socket.pipe_size, "Socket" },
+ { "FreeBind", config_parse_bool, 0, &u->socket.free_bind, "Socket" },
+- { "PassCred", config_parse_bool, 0, &u->socket.pass_cred, "Socket" },
++ { "PassCredentials", config_parse_bool, 0, &u->socket.pass_cred, "Socket" },
+ { "TCPCongestion", config_parse_string, 0, &u->socket.tcp_congestion, "Socket" },
+ { "Service", config_parse_socket_service, 0, &u->socket, "Socket" },
+ EXEC_CONTEXT_CONFIG_ITEMS(u->socket.exec_context, "Socket"),
diff --git a/0002-shutdownd-use-PassCred-yes-in-the-socket-unit.patch b/0002-shutdownd-use-PassCred-yes-in-the-socket-unit.patch
new file mode 100644
index 0000000..f0eee77
--- /dev/null
+++ b/0002-shutdownd-use-PassCred-yes-in-the-socket-unit.patch
@@ -0,0 +1,55 @@
+From 75d3fc60f88e08bf953063819a8a04b881d6db23 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt(a)redhat.com>
+Date: Tue, 29 Nov 2011 23:14:36 +0100
+Subject: [PATCH 2/4] shutdownd: use PassCred=yes in the socket unit
+
+Since Linux 3.2 in order to receive SCM_CREDENTIALS it is not sufficient
+to set SO_PASSCRED just before recvmsg(). The option has to be already
+set when the sender sends the message.
+
+With socket activation it is too late to set the option in the service.
+It must be set on the socket right from the start.
+
+See the kernel commit:
+16e57262 af_unix: dont send SCM_CREDENTIALS by default
+
+Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=757628
+---
+ src/shutdownd.c | 6 ------
+ units/systemd-shutdownd.socket | 1 +
+ 2 files changed, 1 insertions(+), 6 deletions(-)
+
+Index: systemd-26/src/shutdownd.c
+===================================================================
+--- systemd-26.orig/src/shutdownd.c
++++ systemd-26/src/shutdownd.c
+@@ -173,7 +173,6 @@ int main(int argc, char *argv[]) {
+ };
+
+ int r = EXIT_FAILURE, n_fds;
+- int one = 1;
+ struct shutdownd_command c;
+ struct pollfd pollfd[_FD_MAX];
+ bool exec_shutdown = false, unlink_nologin = false, failed = false;
+@@ -203,11 +202,6 @@ int main(int argc, char *argv[]) {
+ return EXIT_FAILURE;
+ }
+
+- if (setsockopt(SD_LISTEN_FDS_START, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)) < 0) {
+- log_error("SO_PASSCRED failed: %m");
+- return EXIT_FAILURE;
+- }
+-
+ zero(c);
+ zero(pollfd);
+
+Index: systemd-26/units/systemd-shutdownd.socket
+===================================================================
+--- systemd-26.orig/units/systemd-shutdownd.socket
++++ systemd-26/units/systemd-shutdownd.socket
+@@ -14,3 +14,5 @@ Before=sockets.target
+
+ [Socket]
+ ListenDatagram=/run/systemd/shutdownd
++SocketMode=0600
++PassCred=yes
diff --git a/0003-syslog-use-PassCred-yes-for-the-dev-log-socket.patch b/0003-syslog-use-PassCred-yes-for-the-dev-log-socket.patch
new file mode 100644
index 0000000..e68fc98
--- /dev/null
+++ b/0003-syslog-use-PassCred-yes-for-the-dev-log-socket.patch
@@ -0,0 +1,51 @@
+From 1a2801529e916ec31d2a8cc66cd5c3b8d9ad9caa Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt(a)redhat.com>
+Date: Wed, 30 Nov 2011 09:37:13 +0100
+Subject: [PATCH 3/4] syslog: use PassCred=yes for the /dev/log socket
+
+Both kmsg-syslogd and the real syslog service want to receive
+SCM_CREDENTIALS. With socket activation it is too late to set
+SO_PASSCRED in the services.
+---
+ src/kmsg-syslogd.c | 5 +----
+ units/syslog.socket | 1 +
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/src/kmsg-syslogd.c b/src/kmsg-syslogd.c
+index 0901a0e..7fd69f8 100644
+--- a/src/kmsg-syslogd.c
++++ b/src/kmsg-syslogd.c
+@@ -91,7 +91,7 @@ static int server_init(Server *s, unsigned n_sockets) {
+ }
+
+ for (i = 0; i < n_sockets; i++) {
+- int fd, one = 1;
++ int fd;
+
+ fd = SD_LISTEN_FDS_START+i;
+
+@@ -106,9 +106,6 @@ static int server_init(Server *s, unsigned n_sockets) {
+ goto fail;
+ }
+
+- if (setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one)) < 0)
+- log_error("SO_PASSCRED failed: %m");
+-
+ zero(ev);
+ ev.events = EPOLLIN;
+ ev.data.fd = fd;
+diff --git a/units/syslog.socket b/units/syslog.socket
+index 500bb7c..e74b559 100644
+--- a/units/syslog.socket
++++ b/units/syslog.socket
+@@ -18,6 +18,7 @@ Wants=syslog.target
+ [Socket]
+ ListenDatagram=/dev/log
+ SocketMode=0666
++PassCred=yes
+
+ # The service we activate on incoming traffic is
+ # systemd-kmsg-syslogd.service. That doesn't mean however, that this
+--
+1.7.7.6
+
diff --git a/0004-man-document-the-PassCred-option.patch b/0004-man-document-the-PassCred-option.patch
new file mode 100644
index 0000000..9f17e81
--- /dev/null
+++ b/0004-man-document-the-PassCred-option.patch
@@ -0,0 +1,34 @@
+From 42e87475cfe20a5e79da882012629f9d3ae63648 Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt(a)redhat.com>
+Date: Wed, 30 Nov 2011 11:06:35 +0100
+Subject: [PATCH 4/4] man: document the PassCred option
+
+---
+ man/systemd.socket.xml | 11 +++++++++++
+ 1 files changed, 11 insertions(+), 0 deletions(-)
+
+diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml
+index 28c8dc4..2f31242 100644
+--- a/man/systemd.socket.xml
++++ b/man/systemd.socket.xml
+@@ -525,6 +525,17 @@
+ </varlistentry>
+
+ <varlistentry>
++ <term><varname>PassCred=</varname></term>
++ <listitem><para>Takes a boolean
++ value. This controls the SO_PASSCRED
++ option, which allows UNIX sockets to
++ receive the credentials of the sending
++ process in an ancillary message.
++ Defaults to
++ <option>false</option>.</para></listitem>
++ </varlistentry>
++
++ <varlistentry>
+ <term><varname>TCPCongestion=</varname></term>
+ <listitem><para>Takes a string
+ value. Controls the TCP congestion
+--
+1.7.7.6
+
diff --git a/systemd.spec b/systemd.spec
index d8ddb18..6853fec 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -2,7 +2,7 @@ Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Version: 26
-Release: 15%{?dist}
+Release: 16%{?dist}
License: GPLv2+
Group: System Environment/Base
Summary: A System and Service Manager
@@ -125,6 +125,12 @@ Patch82: 0004-utmp-for-DEAD_PROCESS-write-the-current-time-to-wtmp.patch
Patch83: 0001-unit-garbage-collect-units-with-load-error.patch
Patch84: 0001-mount-fix-quota.patch
Patch85: 0001-mount-fix-automount-regression.patch
+Patch86: 0001-socket-add-option-for-SO_PASSCRED.patch
+Patch87: 0002-shutdownd-use-PassCred-yes-in-the-socket-unit.patch
+Patch88: 0003-syslog-use-PassCred-yes-for-the-dev-log-socket.patch
+Patch89: 0004-man-document-the-PassCred-option.patch
+Patch90: 0001-socket-rename-the-PassCred-option-to-PassCredentials.patch
+
Patch100: fedora-storage-detect-encrypted-PVs.patch
# For sysvinit tools
@@ -387,6 +393,9 @@ fi
%{_bindir}/systemd-sysv-convert
%changelog
+* Tue Jan 31 2012 Michal Schmidt <mschmidt(a)redhat.com> - 26-16
+- Backport PassCredentials to avoid #757628 when F15 kernel is rebased to 3.2.
+
* Tue Jan 31 2012 Michal Schmidt <mschmidt(a)redhat.com> - 26-15
- Fix quota (#773431).
11Â years, 10Â months
[liboauth/f15] Update to 0.9.6
by Michel Alexandre Salim
Summary of changes:
9d64b1e... Update to 0.9.6 (*)
(*) This commit already existed in another branch; no separate mail sent
11Â years, 10Â months
[kernel/f15] diable TOUCHSCREEN_EETI on all arm arches
by Dennis Gilmore
commit 4fc891d8e343fb0ef69804579c2d304bc88aa922
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Wed Feb 1 01:59:50 2012 -0600
diable TOUCHSCREEN_EETI on all arm arches
- add patch for arm mtd
arm-build-bug-on.patch | 28 ++++++++++++++++++++++++++++
kernel.spec | 3 +++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/arm-build-bug-on.patch b/arm-build-bug-on.patch
new file mode 100644
index 0000000..deb0998
--- /dev/null
+++ b/arm-build-bug-on.patch
@@ -0,0 +1,28 @@
+BUILD_BUG_ON is defined in linux/kernel.h but that is not included by the
+asm/bug.h header which uses it. This causes a build error:
+
+...include/linux/mtd/map.h: In function 'inline_map_read':
+...include/linux/mtd/map.h:408:3: error: implicit declaration of function
+'BUILD_BUG_ON' [-Werror=implicit-function-declaration]
+
+The check is not essential and is not present for other architectures, so
+just remove it.
+
+Signed-off-by: Simon Glass <sjg <at> chromium.org>
+---
+ arch/arm/include/asm/bug.h | 1 -
+ 1 files changed, 0 insertions(+), 1 deletions(-)
+
+diff --git a/arch/arm/include/asm/bug.h b/arch/arm/include/asm/bug.h
+index 9abe7a0..fac79dc 100644
+--- a/arch/arm/include/asm/bug.h
++++ b/arch/arm/include/asm/bug.h
+@@ -32,7 +32,6 @@
+
+ #define __BUG(__file, __line, __value) \
+ do { \
+- BUILD_BUG_ON(sizeof(struct bug_entry) != 12); \
+ asm volatile("1:\t" BUG_INSTR_TYPE #__value "\n" \
+ ".pushsection .rodata.str, \"aMS\", %progbits, 1\n" \
+ "2:\t.asciz " #__file "\n" \
+--
diff --git a/kernel.spec b/kernel.spec
index feecda2..bc8c2b5 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -655,6 +655,7 @@ Patch20000: utrace.patch
# Flattened devicetree support
Patch21000: arm-omap-dt-compat.patch
Patch21001: arm-smsc-support-reading-mac-address-from-device-tree.patch
+Patch21002: arm-build-bug-on.patch
#rhbz 717735
Patch21045: nfs-client-freezer.patch
@@ -1134,6 +1135,7 @@ ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
#
ApplyPatch arm-omap-dt-compat.patch
ApplyPatch arm-smsc-support-reading-mac-address-from-device-tree.patch
+ApplyPatch arm-build-bug-on.patch
ApplyPatch taint-vbox.patch
#
@@ -1961,6 +1963,7 @@ fi
%changelog
* Tue Jan 31 2012 Dennis Gilmore <dennis(a)ausil.us>
- diable TOUCHSCREEN_EETI on all arm arches
+- add patch for arm mtd
* Mon Jan 30 2012 Dave Jones <davej(a)redhat.com>
- Enable kmemleak (off by default) in kernel-debug (rhbz 782419)
11Â years, 10Â months