summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* remove dotfiles tooHEADmasterMartin Pitt2017-02-152-49/+0
|
* Close repositoryMartin Pitt2017-02-15201-219023/+1
| | | | | | udisks and storaged have merged again, development now continues at https://github.com/storaged-project/udisks
* src/tests/test_polkitd.py: Drop unused Gio importMartin Pitt2016-12-021-1/+1
|
* test_polkitd.py: Fix waiting for mock polkit to startMartin Pitt2016-12-021-6/+4
| | | | | | | | | | | | In the common case when we got a DBusException we previously skipped the time.sleep() and thus were just racing through the retry loop without actually giving the child process any time to start up. Also raise a proper exception on timeout instead of os.abort(). The latter did not flush stderr fast enough to actually see the failure message, and as this happens in the parent pid we actually can raise an exception meaningfully. LP: #1585382
* Post-release version bump to 2.1.9Martin Pitt2016-11-252-1/+18
|
* HACKING: Small tweaks2.1.8Martin Pitt2016-11-251-2/+2
| | | | | Simpler command to run integration tests, and drop the comment about "if you are not davidz" as we don't hardcode user names any more.
* Update NEWS for 2.1.8Martin Pitt2016-11-251-3/+29
|
* udisks2.service: Add KillSignal=SIGINTMartin Pitt2016-11-251-0/+1
| | | | | | | GMainLoop already handles SIGTERM, but we have our own signal handler for SIGINT, so use that. https://bugs.freedesktop.org/show_bug.cgi?id=97349
* btrfs: Add support for changing labelRitesh Khadgaray2016-11-252-2/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=96816
* Detect old (non-Pro) MemoryStick cardsMantas Mikulėnas2016-11-252-3/+6
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=97592
* exfat: Drop umask=0077 defaultMartin Pitt2016-11-251-1/+1
| | | | | | | | | | The parent mount point dir (/run/media/user) already controls access permissions, so there is no need to set umask to 077 for exfat either. This makes UDISKS_FILESYSTEM_SHARED="1" actually work for exfat. Similar to commit ffcb11b1 for vfat and ntfs. https://bugs.freedesktop.org/show_bug.cgi?id=97348
* Don't coldplug uninitilized udev devicesJoão Paulo Rechi Vita2016-11-251-0/+2
| | | | | | | | | | | | | When the udev device is not initialized it may not contain all of its properties yet, which makes udisks provide an incorrect representation of the to its clients. This is particularly problematic during the system initialization phase, where udev is also in it coldplug phase. udev will send an event when each device becomes initialized, so we can safely skip it during coldplug and rely on hotplug even handling instead. https://bugs.freedesktop.org/show_bug.cgi?id=96832
* autogen.sh: Drop obsolete PKG_NAMEMartin Pitt2016-11-251-3/+1
| | | | ***Warning*** PKG_NAME is deprecated, you may remove it from autogen.sh
* Update translations from transifexMartin Pitt2016-11-2519-6552/+7468
|
* Lock the partition table while creating a new partitionMarius Vollmer2016-11-231-0/+42
| | | | | | | | This is hopefully a better fix than 5c859c99df to https://bugs.freedesktop.org/show_bug.cgi?id=85477 https://bugs.debian.org/767457 https://launchpad.net/bugs/1460602
* Revert "Reread partition table before wiping when creating new partitions"Marius Vollmer2016-11-231-8/+0
| | | | | | | | | | | | | | | This reverts commit 5c859c99df. The BLKRRPART ioctl is dangerous in that it causes pairs of remove/add uevents for all partitions which in turn confuse our internal data structures and cause the block devices to briefly disappear from the filesystem. Rereading the partition table is also unnecessary since parted, libblockdev, and udevd do that already. Thus, 5c859c99df might actually make things worse instead of fixing the bug it is intended to fix.
* tests: Accept fancy quotes in GLib error messagesMartin Pitt2016-11-231-4/+15
|
* Include sys/sysmacros.h for major/minor/makedevMike Frysinger2016-07-265-1/+5
| | | | | | | | Linux C libraries are moving away from implicit includes of sys/sysmacros.h, so pull in this header directly in the files that use these funcs. https://bugs.freedesktop.org/show_bug.cgi?id=95028
* Allow NTFS mount option "big_writes"Hielke Christian Braun2016-07-261-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=95394
* build: Fix gtk-doc build when builddir != srcdirTing-Wei Lan2016-07-261-1/+5
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=96522
* Reread partition table before wiping when creating new partitionsMathieu Trudel-Lapierre2016-04-041-0/+7
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=85477 https://bugs.debian.org/767457 https://launchpad.net/bugs/1460602
* Post-release version bump to 2.1.8Martin Pitt2016-03-012-1/+17
|
* Update NEWS for 2.1.72.1.7Martin Pitt2016-03-011-3/+25
|
* integration-test: Add timeout to readd_device()Martin Pitt2016-03-011-1/+4
|
* integration-test: Fix race condition in fake CD drive creation harderMartin Pitt2016-03-011-0/+3
| | | | | Fix previous commit: We still must reset ptype to 0 for the force-removal test to work, just do it *after* the CD drive was created successfully.
* integration-test: Fix race condition in fake CD drive creationMartin Pitt2016-03-011-2/+0
| | | | | Don't reset scsi_debug/ptype to 0 immediatley after the add_host request. This seems to be racy and sometimes creates a normal hard disk drive.
* udisksctl: Properly redirect stdoutKylie McClain2016-02-291-2/+2
| | | | | | Fixes building with musl-libc. https://bugs.freedesktop.org/show_bug.cgi?id=93111
* Fix translator comments in udisksobjectinfo.cMartin Pitt2016-02-291-4/+4
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=92901
* Catch bogus UUID changes of MDRAIDsMarius Vollmer2016-02-291-0/+15
| | | | | | | | | | | | Right before the "remove" event, the UUID of mdraid devices seems to change sometimes. Without catching this, we would create a new object for the new UUID and erroneously dispatch the "remove" event to it. Consequently, the original object would not receive this event and would continue watching a non-existent device. https://bugs.freedesktop.org/show_bug.cgi?id=91326
* Bug 92488 - Add support for read look-ahead ATA settingsTom Yan2016-02-295-7/+87
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=92488
* allow disabling ACLDavid Heidelberger2016-02-292-12/+43
| | | | | | | | | | | | | This patch provide option to build and run udisks without ACL. v2: as replacement of ACL is used chown call v3: do not change uid, change gid v4: fix indentation & formating issues v5: one missed empty line v6: add g_set_error for chown Thanks Peter Wu for helping me with improving code. https://bugs.freedesktop.org/show_bug.cgi?id=54866
* udisks2.service.in: Add [Install] sectionMartin Pitt2016-02-291-0/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=92486
* test_polkitd.py: Fix race condition in waiting for test polkitdMartin Pitt2016-01-041-15/+18
| | | | | Always replace the current polkitd, and wait until the one on the bus is actually our's, not the previously running one.
* integration-test: Fix Polkit.test_removable_fsMartin Pitt2016-01-041-1/+2
| | | | | Fix Polkit.test_removable_fs test case to run standalone, instead of assuming that the previous test case already creates a file system.
* integration-test: PEP-8 fixesMartin Pitt2016-01-041-8/+13
|
* integration-test: Fix wait_timeout/busy error messagesMartin Pitt2016-01-041-3/+4
| | | | | Turn write_stderr() into a classmethod, so that we can call it from classmethods.
* integration-test: Explicitly require UDisks 2.0 girMartin Pitt2016-01-041-0/+4
| | | | | | | Fixes warning with current PyGI: sys:1: PyGIWarning: UDisks was imported without specifying a version first. Use gi.require_version('UDisks', '2.0') before import to ensure that the right version gets loaded.
* Fix udiskctl help for glib 2.45Martin Pitt2015-07-281-3/+6
| | | | | | | | | | glib 2.45 now requires calling g_option_context_add_main_entries(), otherwise it crashes on a NULL OptionContext->main_group. Don't prematurely free the description as g_option_context_set_description() does not copy the string. https://launchpad.net/bugs/1478369
* Post-release bump to 2.1.7Martin Pitt2015-06-302-1/+17
|
* Update NEWS for 2.1.6 release2.1.6Martin Pitt2015-06-301-3/+30
|
* Update translations from transifexMartin Pitt2015-06-302-501/+630
|
* Fail before formatting if partition contains a partition tableOndrej Holy2015-06-301-0/+13
| | | | | | | | Formatting fails for a partition containing a partition table (e.g. Fedora hybrid iso). Consequently the device is in wrong state, so check it before modification and fail with a comprehensible error message. https://bugs.freedesktop.org/show_bug.cgi?id=76178
* UDF: Drop umask=0077 defaultMartin Pitt2015-06-301-1/+1
| | | | | | UDF stores permissions, so there is no reason to override it. https://bugs.freedesktop.org/show_bug.cgi?id=90298
* Add support for creating f2fs filesystemsRoss Lagerwall2015-06-302-1/+14
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=63893
* UDisksSpawnedJob: Retrieve uid/gid info before forkingTomas Bzatek2015-06-301-26/+48
| | | | | | | | | A security analysis revealed a possible issue in the UDisksSpawnedJob code. Reportedly the NSS modules might not be available if the fork() happened at an inconvenient time. This patch moves retrieval of UID information in the parent process just before forking. https://bugs.freedesktop.org/show_bug.cgi?id=73669
* Decide whether devices are on the same seat by uid, not pidSimon McVittie2015-06-3010-185/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In systemd user sessions, some of a user's processes can exist outside the scope of any particular session: └─user.slice └─user-1000.slice ├─user@1000.service │ ├─2089 /lib/systemd/systemd --user │ └─dbus.service │ ├─ 2233 /usr/bin/dbus-daemon … │ ├─ 2297 /usr/lib/gvfs/gvfsd │ … └─session-2.scope ├─ 2102 gnome-session ├─ 2376 /usr/bin/gnome-shell … If processes outside sessions don't have access to devices on those sessions' seats, then gvfsd won't be able to mount devices. Conversely, there is no privilege boundary between the sessions and the non-session processes - in particular, the user's processes can usually ptrace each other and write to each other's configuration files - so isolating them doesn't make a great deal of sense. I'm specifically looking for one or more *active* sessions on the device's seat because in a situation like this: … ├─ alice │ ├─ graphical session on seat0, tty7, active │ └─ system --user ├─ bob │ ├─ graphical session on seat0, tty8, inactive │ ├─ graphical session on seat1, active │ └─ systemd --user └─ chris ├─ ssh session on no seat, active └─ systemd --user the desired behaviour is that alice controls seat0 devices and bob controls seat1 devices, corresponding to their respective physically-present locations; bob should not have control over seat0 devices until he returns to seat0, and chris should not have control over either. Despite udisks_daemon_util_on_same_seat being documented, it is not actually public API or ABI: it is part of libudisks-daemon.la, which is a convenience library statically linked into udisksd and the tests. As such, it's harmless to replace it with _on_user_seat. I'm renaming it in order to force compilation failure if a branch has other callers for the old semantics; if it was not renamed, passing a pid_t where a uid_t was expected would have compiled, but silently produced wrong results. https://bugs.freedesktop.org/show_bug.cgi?id=89501 https://bugs.debian.org/780004
* Don't ignore isohybrid udf filesystemsRoss Lagerwall2015-06-291-1/+1
| | | | | | | Extend the hack to show the main partition of isohybrid iso9660 isos to work with udf isos too. https://bugs.freedesktop.org/show_bug.cgi?id=89711
* Install udisksd into a libexecdirMichael Catanzaro2015-06-292-3/+3
| | | | | | | | $(prefix)/lib means the binary could wind up under e.g. /usr/lib rather than /usr/lib64, or other more appropriate locations depending on the distro. https://bugs.freedesktop.org/show_bug.cgi?id=89736
* Fix crash on inaccessible RAID member "state" attributeMartin Pitt2015-06-291-0/+6
| | | | | | | g_variant_new() doesn't like NULL pointers for empty arrays, so allocate an empty array if we cannot read the attribute. https://bugs.freedesktop.org/show_bug.cgi?id=91011
* integration-tests: Add a wrapper to write and flush stderrRoss Lagerwall2015-06-291-13/+17
| | | | | | | | sys.stderr is line-buffered by default which means that the status updates (e.g. '[wait for data]') do not show up until after the test has finished. Introduce a wrapper which writes to and flushes stderr. https://bugs.freedesktop.org/show_bug.cgi?id=91043