summaryrefslogtreecommitdiff
path: root/document-portal
Commit message (Collapse)AuthorAgeFilesLines
* Fix various spelling mistakesSimon McVittie2016-05-171-2/+2
| | | | | | Mostly detected by Debian's Lintian tool. Signed-off-by: Simon McVittie <smcv@debian.org>
* document-portal: Yet another attempt to fix the buildAlexander Larsson2016-05-091-1/+1
|
* Split out permission store from session helperAlexander Larsson2016-05-092-23/+25
| | | | This is now available as org.freedesktop.impl.portal.PermissionStore
* Remove unused variablesAlexander Larsson2016-05-091-1/+1
| | | | This fixes warnings from clang
* Migrate ~/.local/share/xdg-app to ~/.local/share/flatpakAlexander Larsson2016-05-091-1/+3
|
* Rename everything but the on-disk location to flatpakAlexander Larsson2016-05-092-6/+6
|
* Rename library to libflatpakAlexander Larsson2016-05-091-1/+1
|
* Rename source files to flatpakAlexander Larsson2016-05-095-9/+9
|
* Rename all non-autogenerated symbols to flatpakAlexander Larsson2016-05-095-97/+97
|
* uncruftify: Initial run, all non-problematic changesAlexander Larsson2016-05-066-277/+325
|
* No need to put introspection xml in resourcesAlexander Larsson2016-04-263-29/+0
| | | | This is already built in to the gdbus codegen code.
* Remove unused local variables reported by clangAlexander Larsson2016-04-211-3/+0
|
* No need for newlines in g_debug messagesAlexander Larsson2016-03-141-6/+6
|
* fuse: Store basename in dir so we don't have to keep looking it upAlexander Larsson2016-03-141-27/+21
| | | | Its immutable for a document anyway
* document portal: Avoid some deadlockAlexander Larsson2016-03-143-109/+131
| | | | | We can't hold the db lock and call into the fuse backend, because that can create deadlocks if it calls back into the db.
* Now newlines needed in g_debug callsAlexander Larsson2016-03-111-1/+1
|
* Reimplement fuse backendAlexander Larsson2016-03-115-1561/+1486
| | | | | | | | | | | The magic inode numbers we used before are problematic. The inode nrs are tied to the file names, so inode changes on rename, which breaks posix expectations. Also, it relied on 64bit inode space which is not true on i386. So, this is a new implementation that uses a more traditional approach of dynamically allocating inodes as needed.
* Add systemd user units corresponding to the D-Bus session servicesSimon McVittie2016-01-283-2/+12
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* common: Make it explicit that XdgAppError are portal errorsAlexander Larsson2015-12-083-22/+22
|
* document portal: Add AddNamed method for host-side useAlexander Larsson2015-12-021-0/+96
| | | | This is needed for the "save as" file selector portal
* Rename lib/ to common/ in preparation for public xdg-app libraryAlexander Larsson2015-11-261-1/+1
|
* Move dbus invocation peer app detection to lib/Alexander Larsson2015-10-213-212/+3
|
* Correct capitalization on dbus interface filenameAlexander Larsson2015-10-213-4/+4
|
* document-portal: Fix warningAlexander Larsson2015-10-061-0/+2
| | | | We need to return something from main()
* Propagate Xauthority details to the sandbox if X11 is enabledAlexander Larsson2015-10-011-1/+1
| | | | | | Some xservers out there (like xorg 1.17.1) have a broken server interpreted local xauth, which causes apps to fail to connect to the xserver. This fixes that by propagating Xauthority data such as the MIT-MAGIC-COOKIE-1.
* fuse: Disable entry cache to work around race conditionAlexander Larsson2015-10-011-1/+5
|
* build: Fix srcdir != builddir from gitColin Walters2015-09-291-1/+1
| | | | | Was hitting this in gnome-continuous, which does srcdir != builddir by default.
* fuse: Supply mode when creating filesAlexander Larsson2015-09-181-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=92034
* Fix distcheck issues0.4.0Alexander Larsson2015-09-171-0/+2
|
* document portal: Add support for transient documentsAlexander Larsson2015-09-172-21/+35
| | | | These are useful for passing temporary files.
* document portal: Fix crashes when dbus activatedAlexander Larsson2015-09-091-2/+15
| | | | | | We handle the first message (the activating message) before we have gotten the name aquired message. Make sure that this is correctly handled.
* fuse: Add some more debug spewAlexander Larsson2015-09-081-0/+3
|
* fuse: Drop DOC_DIR_INO_CLASSAlexander Larsson2015-09-081-75/+26
| | | | | We can just use a APP_DOC_DIR_INO_CLASS with app_id 0. This gets rid of some duplicated code.
* document portal: Correctly handle recursive documentsAlexander Larsson2015-09-083-16/+75
| | | | | I.e. if you pass in a document fd to the document portal we reuse the existing id.
* document portal: Move locking explicitly into portal handlersAlexander Larsson2015-09-081-4/+9
| | | | | This is requires because do i/o on the passed in fd in add() and if you pass in a fd on the fuse mount itself we deadlock.
* document-portal: Allow dbus owner replacingAlexander Larsson2015-09-081-1/+3
|
* fuse: Add some more debug spewAlexander Larsson2015-09-082-1/+9
|
* fuse: Raise entry cache times now that we invalidateAlexander Larsson2015-09-081-7/+5
|
* fuse: Properly invalidate inodes and entriesAlexander Larsson2015-09-083-8/+75
|
* fuse: Add daemonizing switchAlexander Larsson2015-09-081-11/+67
| | | | This will be used for the tests
* fuse: Unmount previous fuse instance if ENOTCONNAlexander Larsson2015-09-081-0/+10
|
* document-portal: Actually respect WRITE permissionsAlexander Larsson2015-09-041-80/+225
|
* document-portal: Use xdg_app_is_valid_name() to validate app namesAlexander Larsson2015-09-041-1/+1
|
* document-portals: Support unique documentsAlexander Larsson2015-09-043-15/+40
| | | | | | | These document id will not be shared for multiple users. The main difference is this this makes it safe for the creating app to delete the document if he wants to (i.e. for temporary docs), and thus we can grant this additional permission for the calling app.
* fuse: Always open files with O_NOFOLLOWAlexander Larsson2015-09-041-3/+3
| | | | Following symlinks is risky as the sandbox may control them.
* Add debug output for releaseAlexander Larsson2015-09-031-0/+3
|
* Store and verify parent dir dev/ino and pass O_PATH fdsAlexander Larsson2015-09-034-156/+272
| | | | | | | | | | | | | | | In order to be robust against symlink attacks (i.e. make a document for a path, then replace it with a symlink somewhere else and have the portal read that instead) we store the parent dev/ino when we create the document id and always verify that (atomically with the *at syscalls) on each use. Also, we pass O_PATH fds when creating documents, as it allows us to be a bit safer. For instance we can verify that the fd is a O_PATH fd before doing any ops on it, and it makes it possible to avoid other symlink trickery. Also, we drop the double add methods, and just use the O_PATH version.
* fuse: Make filesystem multithreadedAlexander Larsson2015-09-032-392/+624
| | | | This allows us to handle multiple apps better.
* Use g_auto(GStrv) instead of glnx_strfreevAlexander Larsson2015-08-312-3/+3
|
* Remove ununsed variables reported by clangAlexander Larsson2015-08-273-7/+0
|