Commit Graph

57 Commits

Author SHA1 Message Date
Saravanan e6df081618 udisks2: upgrade 2.10.1 -> 2.10.2
This patch addresses below CVE's:
CVE-2025-6019
CVE-2025-8067

Changelog:
https://github.com/storaged-project/udisks/releases

Signed-off-by: Saravanan <saravanan.kadambathursubramaniyam@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-10-06 16:06:34 +08:00
Changqing Li f282322123 udisks2: Hardening measure of CVE-2025-6019
Refer [1], CVE-2025-6019 is strongly related to udisk daemon, and
this is a hardening measure related to this.

[1] https://cdn2.qualys.com/2025/06/17/suse15-pam-udisks-lpe.txt
[2] https://security-tracker.debian.org/tracker/CVE-2025-6019
[3] https://ubuntu.com/blog/udisks-libblockdev-lpe-vulnerability-fixes-available

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2025-07-06 19:47:17 -04:00
Markus Volk 5804b39df5 udisks2: Upgrade 2.9.4 -> 2.10.1
- add a patch to fix reproducibility issues

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-24 21:29:26 -07:00
Markus Volk 4a9f3bfa22 udisks2: add PACKAGECONFIGs for btrfs,lvm2 and lsm
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-27 09:58:33 -07:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Andreas Müller 2b2666b7fa udisks2: upgrade 2.9.3 -> 2.9.4
From announcement:
This release was focused on stability and hardening, notably fixing some
long-standing race conditions and memory leaks. Default mount options got
tweaked towards data safety.

All users are strongly advised to upgrade.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:48 -07:00
Andreas Müller 7b672a3dfe udisks2: upgrade 2.9.2 -> 2.9.3
Changes since 2.9.2:
* Ignore "Extended Boot Loader" GPT partition
* Use the mkfs command to format exfat partitions
* udiskslinuxblockobject: Add safety checks for UDisksLinuxBlock interface
* udiskslinuxfsinfo: Add dosfstools >= 4.2 quirks
* udiskslinuxblock: Re-read partition table after creating FAT filesystem
* udiskslinuxdriveata: Use GTask to apply configuration in a thread
* udiskslinuxfilesystemhelpers: Fix leaking string in case g_mkdtemp() fails
* udiskslinuxmdraidobject: Optimize unused data out from the g_io_channel_read_to_end() call
* udiskslinuxmdraidobject: Handle source attach failure gracefully
* udiskslinuxmanager: Trigger uevent on a newly created mdraid array
* udiskslinuxswapspace: Trigger uevent after setting label
* udiskslinuxblock: Handle missing parent device while looking up drive for block
* modules: Limit module name to alphanumeric characters and -_ separators
* tests: Mark Drive.ATA tests as unstable
* tests: Handle missing /dev/disk/by-path gracefully
* tests: Respect custom method call timeouts
* tests: Extend iscsi method call timeouts
* tests: Extend module tests with invalid characters
* tests: Do not dist config_h.py
* spec: Do not build udisks2-zram for any RHEL release
* udiskslinuxpartition: Trigger uevent after changing partition type
* dbus_tests: Fix including non-existing tests based on tags
* Add (no)autodefrag to list of allowed btrfs mount options
* udisksclient: Make get_block_for_drive deterministic
* Fix two comments (one copy'o, one typo)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-20 09:26:18 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Andreas Müller 85946f21b2 udisks2: upgrade 2.9.1 -> 2.9.2 / replace '_git' by version in recipe-name
This is a bugfix release, notable changes include:

* the /etc/fstab "noauto" mount option is now reflected in the org.freedesktop.UDisks2.Block.HintAuto property
* security: the recursive org.freedesktop.UDisks2.Filesystem.TakeOwnership() method call is now less prone to race conditions
* (e)MMC block devices are now always marked as non-removable and non-ejectable
* missing /etc/crypttab is now handled gracefully when adding or removing entries
* loop device setup fixes for recent kernels

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-07 17:44:47 -08:00
Andreas Müller 3752d8f443 udisks2: upgrade 2.8.4+ -> 2.9.1
Seems they changed build so we have to build in-tree. With out of tree
autotools build would break with:

| glib-compile-resources --target=udisks-daemon-resources.h --generate-header --sourcedir=../../git udisks-daemon-resources.xml
| glib-compile-resources --target=udisks-daemon-resources.c --generate-source --sourcedir=../../git udisks-daemon-resources.xml
| Failed to open file “udisks-daemon-resources.xml”: No such file or directory

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-13 22:32:07 -07:00
Khem Raj ded3a74af9 udisks2: Updare to latest master beyond 2.8.4
Drop the feature.h patch since its fixed differently upstream [1]

[1] https://github.com/storaged-project/udisks/commit/7c9bb088ed8c7b509e94f68abe6427b45fad092f

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-01 22:15:08 -08:00
Khem Raj bcd508dedf udisks2: Update to 2.8.4
package tmpfiles.d/udisk2.conf, generated with systemd enabled

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-08 23:00:57 -08:00
Denys Dmytriyenko 4c00e5fed9 recipes: rename distro_features_check to features_check
Avoid warning due to the class rename in OE-Core.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-21 17:51:37 -08:00
Adrian Bunk 8ea8557760 udisks: Remove this obsolete version
All users already switced to udisks2.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-22 14:16:51 -07:00
Khem Raj 9d63ad02b3 udisks: Remove bash dependency
There are couple of scripts which explicitly calls out for bash
interpreter but there is nothing bash specific about them, so let
it use sh interpreter.

Fixes
ERROR: QA Issue: /usr/libexec/udisks-helper-mdadm-expand contained in package udisks requires /bin/bash, but no providers found in RDEPENDS_udisks? [file-rdeps]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-24 10:11:28 -07:00
Khem Raj 07d46c6261 udisks: Install bash_completion script in OE familiar dir
bash-completion packages up /etc/bash_completion.d automatically
so install the bash completion script in the above said dir

inherit bash-completion to do the needed for bash-completion package

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-24 10:11:28 -07:00
Andreas Müller e8db74cfb1 udisks2: upgrade 2.8.1 -> 2.8.2
>From release shortlog [1]:

| The 2.8.2 release brings mostly bugfixes without any changes to the public API. Notable changes include:
|
| * migration from intltool to gettext, udisks no longer depends on gnome-common
| * added 'windows_names' as a default mount option for ntfs-3g
| * fixed an issue potentially leading to open filedescriptors exhaustion

OE-Notes:

* Follow changes mentioned in announcement
* Rename recipe and move PV into recipe

[1] https://github.com/storaged-project/udisks/releases

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-09 21:31:36 -07:00
Nicolas Dechesne 479951ee99 udisks: add REQUIRED_DISTRO_FEATURES for polkit
After below commits to add polkit as a required distro feature:
97a1a55 polkit: add polkit as a required distro feature
c049e02 polkit: inherit distro_features_check

Need to add REQUIRED_DISTRO_FEATURES for polkit to avoid error when
trying to build 'world'

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-22 18:14:53 -08:00
Changqing Li e31d73989d udisk2: 2.7.8 -> 2.8.1
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-22 18:14:52 -08:00
Mingli Yu 7acd6d7692 udisks2: add REQUIRED_DISTRO_FEATURES for polkit
After below commits to add polkit as a required
distro feature:
97a1a55 polkit: add polkit as a required distro feature
c049e02 polkit: inherit distro_features_check

Need to add REQUIRED_DISTRO_FEATURES for polkit to
fix below error for these packages which depend on
polkit:
$ bitbake udisk2
ERROR: Nothing PROVIDES 'polkit' (but /build/layers/meta-openembedded/meta-oe/recipes-support/udisks/udisks2_2.7.8.bb  DEPENDS on or otherwise requires it)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-22 18:14:52 -08:00
Mingli Yu 56fe12af34 udisks2: Upgrade to 2.7.8
This is a bugfix release for UDisks 2.7. Included fixes:
- Fix string format vulnerability
- Fix CVE-2018-17336

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-17 09:12:43 -07:00
Khem Raj 66fd2a9e04 udisks: Fix build with glibc 2.28+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-15 08:20:06 -07:00
Changqing Li dce3d8139d udisks2: 2.7.6 -> 2.7.7
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-20 16:07:12 -07:00
Armin Kuster 8b3e126484 udisks: refresh patches
WARNING:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

    devtool modify <recipe>
    devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-04-13 12:43:37 -07:00
Andreas Müller 5e5d88295b udisks2: update 2.1.8 -> 2.7.6
They moved to github so updates slipped through...

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-04-08 17:00:06 -07:00
Chen Qi 6775acb048 udisk: fix dependency about libdevmapper
We have separated libdevmapper from lvm2, so we need to also fix related
dependency for udisk.

Instead of simply replacing lvm2 with libdevmapper in DEPENDS, we add
PACKAGECONFIG for libdevmapper.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-31 10:18:33 +02:00
Mikko Rapeli 57fac9d8ac udisks2_2.1.8.bb: set CVE_PRODUCT to udisks
It is used in NVD for CVE's like:

https://nvd.nist.gov/vuln/detail/CVE-2014-0004

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-24 18:58:54 +02:00
Andreas Müller 14171d0c63 udisks2: update 2.1.7 -> 2.1.8
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-14 23:44:32 +02:00
Peter Kjellerstedt 0c31f55bcf Make use of the new bb.utils.filter() function
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-07 13:30:26 +01:00
Robert Yang 3f69e3cd85 udisks: add dbus-glib-native to DEPENDS
Fixed:
| dbus-binding-tool --prefix=daemon --mode=glib-server --output=daemon-glue.h ../data/org.freedesktop.UDisks.xml
| make[2]: dbus-binding-tool: Command not found

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2017-02-16 12:06:37 +01:00
Amarnath Valluri 26e52a2619 udisks: Make use of bitbake variables for sbin, lib locations.
Took the opportunity to patch the source to accepet the udev rules directory
from make variables.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-13 18:43:35 +01:00
Mark Asselstine 8731b651cb udisks: add missing hard dependency
Because do_compile() makes calls to dbus-binding-tool we have to make
this tool available via the dbus-glib-native package. Failing this we
get errors:

  | dbus-binding-tool --prefix=port --mode=glib-server --output=port-glue.h ...
  | /bin/bash: dbus-binding-tool: command not found
  | Makefile:1150: recipe for target 'daemon-glue.h' failed

This becomes a hard build failure when per recipe sysroots are used.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-13 18:43:31 +01:00
Paul Gortmaker bab0cf6056 udisks2: add libxslt-native to DEPENDS for xsltproc to be in sysroot
This started showing up recently on machines w/o xsltproc in
their path:

| checking for xsltproc... no
| configure: error: xsltproc is needed
| WARNING: udisks2/2.1.7-r0/temp/run.do_configure.29255:1 exit 1
| ERROR: Function failed: do_configure (log file is located at
| build/tmp/work/core2-64-overc-linux/udisks2/2.1.7-r0/temp/log.do_configure.29255)

Presumably the splitting of the sysroot made this happen more
frequently on such machines that didn't have a host install of the
xsltproc binary.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-13 18:43:27 +01:00
Alexander Kanavin f119c2a2f9 gtk-doc: disable where necessary
Several recipes in meta-oe layers are so old that they don't work
with modern gtk-doc (which was added and enabled by default in oe-core);
disable that where it is necessary for the build to succeed.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-05 13:30:51 +02:00
Khem Raj b415e2a372 udisks2: Update to 2.1.7
Fix below  build with musl while here

| ../../udisks-2.1.7/udisks/udisksclient.c:2004:6: warning: '__GNUC_PREREQ' is not defined, evaluates to 0 [-Wundef]
| # if __GNUC_PREREQ(4,6) || __clang__

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:49:23 +02:00
Ross Burton 21f10c11f3 meta-oe: use bb.utils.contains() instead of base_contains()
base_contains() is a compatibility wrapper and may warn in the future, so
replace all instances with bb.utils.contains().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-28 10:38:38 +02:00
Armin Kuster 40d7128be0 udisk2: fix build issue with missing depends
checking for sys/acl.h... no
| configure: error: *** ACL headers not found.
| NOTE: The following config.log files may provide further information.

add acl to DEPENDS

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-21 21:33:53 +02:00
Alexander Kanavin 3244b7e701 udisks2: fix gobject introspection
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-03-14 12:15:34 +01:00
Andreas Müller 3693dc71c8 udisks: update to 1.05 and fix build with latest glibc-version
From News:
This version fixes a security vulnerability (CVE-2014-0004), so please update
as soon as possible!

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:39:42 +02:00
Andreas Müller 08b83eef53 udisks: replace udev by libgudev in DEPENDS
fixes:
| configure: error: Package requirements (gudev-1.0 >= 147) were not met:
|
| No package 'gudev-1.0' found

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:39:42 +02:00
Andreas Müller 4920978a48 udisks2: add libgudev to DEPENDS
fixes:
| configure: error: Package requirements (gudev-1.0 >= 165) were not met:

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:39:42 +02:00
Yi Zhao 8f7ee00291 meta-oe: fix the install dir for udev rules and files
When enable multilib, some packages try to install udev rules and
related files into /lib64/udev/ directory. But these files should
be installed in /lib/udev/ directory even on multilib.
Use ${nonarch_base_libdir} instead of ${base_libdir} to fix it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
2015-06-23 12:40:10 +02:00
Andreas Müller 51e459bad9 udisks2: add recipe for 2.1.5 version
tests:

* Build & run along with udisks on xfce based image
* Tested automount on kde plasma desktop

* udisks2: disable manpage creation
| I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
| cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-13 14:34:23 +02:00
Armin Kuster 2858827ae7 udisks: fix QA warnings
WARNING: QA Issue: udisks rdepends on lvm2, but it isn't a build dependency? [build-deps]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-11 10:57:10 +02:00
Richard Purdie f6ecec16d7 recipes: add missing gtk-doc class dependencies
* These recipes all use gtk-doc m4 macros but were missing
  dependencies on the class.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-21 13:06:13 +02:00
Richard Purdie 0ee1083568 recipes: add missing dependency on intltool-native
* These recipes all require intltool-native to build but were missing
  a dependency on it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-21 13:06:13 +02:00
Martin Jansa a84c2acd25 udisks: Add PACKAGECONFIG for parted
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-09-17 19:14:31 +02:00
Martin Jansa ab198bbcfa udisks: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-15 16:22:04 +02:00
Andreas Müller 14a5f1174c udisks: move systemd support to meta-systemd
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2012-07-16 09:39:06 +02:00