From e326875c80d88ff7d9c33ae066a33d5406fe71ca87e49ad64e86b283de5f5a49 Mon Sep 17 00:00:00 2001 From: Robert Milasan Date: Tue, 19 Feb 2013 10:05:35 +0000 Subject: [PATCH] - udev: usb_id: parse only 'size' bytes of the 'descriptors' buffer add: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch - udev: expose new ISO9660 properties from libblkid add: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch - udev: usb_id: parse only 'size' bytes of the 'descriptors' buffer add: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch - udev: expose new ISO9660 properties from libblkid add: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=351 --- ...e-only-size-bytes-of-the-descriptors.patch | 24 ++++++++++++ ...new-ISO9660-properties-from-libblkid.patch | 37 +++++++++++++++++++ systemd-mini.changes | 8 ++++ systemd-mini.spec | 6 +++ systemd.changes | 8 ++++ systemd.spec | 6 +++ 6 files changed, 89 insertions(+) create mode 100644 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch create mode 100644 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch diff --git a/1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch b/1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch new file mode 100644 index 0000000..08ace92 --- /dev/null +++ b/1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch @@ -0,0 +1,24 @@ +From 7962afbba9016ea03d9f2987fee341443fcde39d Mon Sep 17 00:00:00 2001 +From: Kay Sievers +Date: Sun, 17 Feb 2013 21:16:56 +0100 +Subject: [PATCH] udev: usb_id: parse only 'size' bytes of the 'descriptors' + buffer + +Signed-off-by: Robert Milasan +--- + src/udev/udev-builtin-usb_id.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +Index: systemd-195/src/udev/udev-builtin-usb_id.c +=================================================================== +--- systemd-195.orig/src/udev/udev-builtin-usb_id.c ++++ systemd-195/src/udev/udev-builtin-usb_id.c +@@ -210,7 +210,7 @@ static int dev_if_packed_info(struct ude + pos = 0; + strpos = 0; + ifs_str[0] = '\0'; +- while (pos < sizeof(buf) && strpos+7 < len-2) { ++ while (pos < size && strpos+7 < len-2) { + struct usb_interface_descriptor *desc; + char if_str[8]; + diff --git a/1025-udev-expose-new-ISO9660-properties-from-libblkid.patch b/1025-udev-expose-new-ISO9660-properties-from-libblkid.patch new file mode 100644 index 0000000..173b343 --- /dev/null +++ b/1025-udev-expose-new-ISO9660-properties-from-libblkid.patch @@ -0,0 +1,37 @@ +From ddb5bee15a6ad71e5b596c035c1ee4dc04d5fd2e Mon Sep 17 00:00:00 2001 +From: "Zeeshan Ali (Khattak)" +Date: Sun, 17 Feb 2013 03:21:27 +0200 +Subject: [PATCH] udev: expose new ISO9660 properties from libblkid + +Signed-off-by: Robert Milasan +--- + src/udev/udev-builtin-blkid.c | 16 ++++++++++++++++ + 1 files changed, 16 insertions(+), 0 deletions(-) + +Index: systemd-195/src/udev/udev-builtin-blkid.c +=================================================================== +--- systemd-195.orig/src/udev/udev-builtin-blkid.c ++++ systemd-195/src/udev/udev-builtin-blkid.c +@@ -78,6 +78,22 @@ static void print_property(struct udev_d + } else if (startswith(name, "PART_ENTRY_")) { + util_strscpyl(s, sizeof(s), "ID_", name, NULL); + udev_builtin_add_property(dev, test, s, value); ++ ++ } else if (streq(name, "SYSTEM_ID")) { ++ blkid_encode_string(value, s, sizeof(s)); ++ udev_builtin_add_property(dev, test, "ID_FS_SYSTEM_ID", s); ++ ++ } else if (streq(name, "PUBLISHER_ID")) { ++ blkid_encode_string(value, s, sizeof(s)); ++ udev_builtin_add_property(dev, test, "ID_FS_PUBLISHER_ID", s); ++ ++ } else if (streq(name, "APPLICATION_ID")) { ++ blkid_encode_string(value, s, sizeof(s)); ++ udev_builtin_add_property(dev, test, "ID_FS_APPLICATION_ID", s); ++ ++ } else if (streq(name, "BOOT_SYSTEM_ID")) { ++ blkid_encode_string(value, s, sizeof(s)); ++ udev_builtin_add_property(dev, test, "ID_FS_BOOT_SYSTEM_ID", s); + } + } + diff --git a/systemd-mini.changes b/systemd-mini.changes index dc1b54a..5368f4e 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Feb 19 09:51:18 UTC 2013 - rmilasan@suse.com + +- udev: usb_id: parse only 'size' bytes of the 'descriptors' buffer + add: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch +- udev: expose new ISO9660 properties from libblkid + add: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch + ------------------------------------------------------------------- Mon Feb 18 09:27:05 UTC 2013 - jengelh@inai.de diff --git a/systemd-mini.spec b/systemd-mini.spec index a1d4a39..aed8031 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -322,6 +322,10 @@ Patch1021: 1021-create-default-links-for-primary-cd_dvd-drive.patch Patch1022: 1022-udev-use-unique-names-for-temporary-files-created-in.patch # PATCH-FIX-UPSTREAM 1023-cdrom_id-add-data-track-count-for-bad-virtual-drive.patch Patch1023: 1023-cdrom_id-add-data-track-count-for-bad-virtual-drive.patch +# PATCH-FIX-UPSTREAM 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch +Patch1024: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch +# PATCH-FIX-UPSTREAM 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch +Patch1025: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -505,6 +509,8 @@ cp %{SOURCE7} m4/ %patch1021 -p1 %patch1022 -p1 %patch1023 -p1 +%patch1024 -p1 +%patch1025 -p1 #systemd %patch1 -p1 diff --git a/systemd.changes b/systemd.changes index dc1b54a..5368f4e 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Feb 19 09:51:18 UTC 2013 - rmilasan@suse.com + +- udev: usb_id: parse only 'size' bytes of the 'descriptors' buffer + add: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch +- udev: expose new ISO9660 properties from libblkid + add: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch + ------------------------------------------------------------------- Mon Feb 18 09:27:05 UTC 2013 - jengelh@inai.de diff --git a/systemd.spec b/systemd.spec index 8800527..9e0f143 100644 --- a/systemd.spec +++ b/systemd.spec @@ -317,6 +317,10 @@ Patch1021: 1021-create-default-links-for-primary-cd_dvd-drive.patch Patch1022: 1022-udev-use-unique-names-for-temporary-files-created-in.patch # PATCH-FIX-UPSTREAM 1023-cdrom_id-add-data-track-count-for-bad-virtual-drive.patch Patch1023: 1023-cdrom_id-add-data-track-count-for-bad-virtual-drive.patch +# PATCH-FIX-UPSTREAM 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch +Patch1024: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch +# PATCH-FIX-UPSTREAM 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch +Patch1025: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -500,6 +504,8 @@ cp %{SOURCE7} m4/ %patch1021 -p1 %patch1022 -p1 %patch1023 -p1 +%patch1024 -p1 +%patch1025 -p1 #systemd %patch1 -p1