Commit Graph

195 Commits

Author SHA1 Message Date
Alexander Larsson
5e9b247d26 Migrate ~/.local/share/xdg-app to ~/.local/share/flatpak 2016-05-09 12:21:28 +02:00
Alexander Larsson
8abbc0186e Rename everything but the on-disk location to flatpak 2016-05-09 11:11:55 +02:00
Alexander Larsson
ba37b22d78 Rename library to libflatpak 2016-05-09 09:46:26 +02:00
Alexander Larsson
c24528d369 Rename source files to flatpak 2016-05-09 09:00:20 +02:00
Alexander Larsson
6a613d1fab Rename all non-autogenerated symbols to flatpak 2016-05-09 09:00:20 +02:00
Alexander Larsson
1ffdf27d92 uncruftify: Initial run, all non-problematic changes 2016-05-06 16:03:27 +02:00
Alexander Larsson
afa12a446f main: Remove declaration of old deprecated functions
These were removed already
2016-05-06 15:32:31 +02:00
Alexander Larsson
f17fd2a705 enter: Remove cut and paste error code 2016-05-06 15:06:17 +02:00
Alexander Larsson
e12d93b069 Remove spurious ; 2016-05-06 14:23:35 +02:00
Alexander Larsson
663cfcf3a8 Fix make check if uninstalled
This uses various environment variables set during make check
to find the trigger, bwrap and xdg-app-dbusproxy from the build/source dir
rather than the installed location.
2016-05-03 10:27:36 +02:00
Tristan Van Berkom
51e387159b build-export: Add --arch option
This patch adds the --arch option to the build-export builtin command.

Previously build-export derives this from the metadata and then falls back
to xdg_app_get_arch(), except that this does not work when the metadata does
not specify an arch (such as with extensions like .Debug or .Locale).

https://bugs.freedesktop.org/show_bug.cgi?id=95226
2016-05-03 09:05:56 +02:00
Alexander Larsson
123f32015d tests/test-run.sh: Add tests for proper installation 2016-05-02 10:47:59 +02:00
Alexander Larsson
1963957253 cli: Remove old deprecated xdg-app commands
Its been long enough so nothing should be using these, lets drop them.
2016-05-02 09:46:56 +02:00
Alexander Larsson
126d805e90 oci: Use /bin/sh, not sh as the default command
runc doesn't look in PATH for this
2016-04-29 17:07:19 +02:00
Alexander Larsson
4c3bf179e2 Use bubblewrap instead of xdg-app-helper
Bubblewrap is a new tool from project atomic. Its similar to the old
xdg-app-helper, but even more minimal, and a bit more generic. Its designed
to be easy to git submodule install, but at some point we will probably
support using the system installed version too.

Using bubblewraps lets us share the load of security mainainance and
allows other people to use bubblewrap to do their own unprivileged
sandboxes.
2016-04-29 15:52:44 +02:00
Alexander Larsson
6112eb1470 oci: Move the extra files (ref/metadata/commit) too rootfs
Saving them in the image means they will be transferred with it, increasing
the chances that the commit can be recreated from the image.
2016-04-28 20:43:27 +02:00
Alexander Larsson
c0f2304f81 Experimental version of OCI support
This lets you export and import a runtime or an application into a tarball
that explodes to match the oci runtime spec. This goal of this is to interchange
xdg-app apps with other systems that support OCI.

Note that this is highly experimental, because the oci specs are in flux, and
in fact we should probably use the OCI image spec instead of the runtime spec,
but its not yet finished enough for us to use it. So, don't rely on this for
now other than to experiment with it.
2016-04-28 20:29:49 +02:00
Alexander Larsson
f37b3261d6 Add support for disabled remotes
If this is set we don't list them by default, and we don't
automatically update apps from them.
2016-04-27 13:39:34 +02:00
Alexander Larsson
4b0621cfb0 info: Use deploy_data 2016-04-27 13:01:54 +02:00
Alexander Larsson
5789c5c99d list: Use deploy data to avoid lots of seeks 2016-04-27 12:58:55 +02:00
Alexander Larsson
e4d3a7da5a list: Show installed size and subpaths 2016-04-27 10:23:04 +02:00
Alexander Larsson
2a46f3277c Add xdg_app_dir_install/update helpers
These don't do much atm, but will let us clean up the child_repo handling
2016-04-26 16:24:09 +02:00
Alexander Larsson
b2b05e1175 update/install: Handle deploy using the system service 2016-04-25 18:59:17 +02:00
Alexander Larsson
4261057e2a common: Don't use singletons for the system/user XdgAppDirs
Without this we never finalize them and can't e.g. remote temporary
files.
2016-04-22 08:55:41 +02:00
Alexander Larsson
d314df07c1 Add xdg_app_dir_deploy_install helper 2016-04-21 20:59:26 +02:00
Alexander Larsson
91eda8919e common: Move duplicated code into xdg_app_dir_deploy_update 2016-04-21 20:19:01 +02:00
Alexander Larsson
3383eefc82 Drop checks for old ostree versions 2016-04-21 18:36:48 +02:00
Alexander Larsson
29458bc154 Remove support for older ostree without bundle support
This is not needed when we depend on 2016.5
2016-04-21 18:34:28 +02:00
Alexander Larsson
0b1bc5bc4e build-bundle: Move the gpg_data local to the right function
This was unused in the main function, something which was missed
when the build_bundle() helper was split out.
2016-04-21 09:50:01 +02:00
Alexander Larsson
b16517798f Add --ref to build-import-bundle to override branch name 2016-04-20 11:46:13 +02:00
Alexander Larsson
5392f2d629 common: Break out xdg_app_mtree_create_root helper 2016-04-20 09:55:13 +02:00
Alexander Larsson
cfd3f303b1 Add build-import-bundle command 2016-04-19 13:53:26 +02:00
Alexander Larsson
1c1bc4acca common: Move xdg_app_dir_pull_from_bundle to xdg_app_pull_from_bundle
The only difference is it takes an OstreeRepo, not a XdgAppDir, so we
can use it at a lower level too.
2016-04-19 13:31:55 +02:00
Alexander Larsson
18bb0868e9 build-bundle: Split out bundle building to helper 2016-04-19 13:19:36 +02:00
Alexander Larsson
3d7d9ece93 Fix warning 2016-04-14 22:12:25 +02:00
Alexander Larsson
b06528e0ef Merge pull request #127 from matthiasclasen/bus-logging
Bus logging
2016-04-14 19:30:57 +02:00
Alexander Larsson
29a7e0459e run: Use the current version by default 2016-04-14 18:26:22 +02:00
Matthias Clasen
4283473b38 Add options to enable bus logging
This can be useful to find out what bus names your app
is actually talking to, so you can set up a bus policy
that is narrowed than blanket access without breaking
your application.
2016-04-14 10:01:42 -04:00
Alexander Larsson
3602c53dd8 build-export: Don't use generate-sizes
This is pretty inefficient in terms of download counts, and its not
cached. Lets store the data we need in the summary, which we need
to download anways, and which we cache.
2016-04-14 11:32:46 +02:00
Alexander Larsson
21e5391ab8 Merge pull request #121 from matthiasclasen/gpg-import-error
Another man page fix
2016-04-13 13:16:56 +02:00
Matthias Clasen
9223be6cee Improve an error message
If we don't find the file for --gpg-import in the remote-add
command, say so and mention the file name.
2016-04-13 06:59:21 -04:00
Alexander Larsson
eb3a0df75c Add xdg-app build-sign to sign a single commit 2016-04-13 10:08:59 +02:00
Alexander Larsson
51781b50d2 repo-update: Fix docs
The gpg key signs the summary, not the commit
2016-04-13 09:37:49 +02:00
Alexander Larsson
3cc45ccf13 Add support for subpath limited installs
This allows you to install e.g. org.freedesktop.Platform.Locale
but only the /sv subdir, and replaces using separate branches for
each locale.
2016-04-07 20:36:53 +02:00
Alexander Larsson
762d1a6295 seccomp: Allow running the target arch
This adds the app target arch to the list of the allowed arches
in seccomp. It also allows the native arch, because otherwise
xdg-app-helper can't run.

This means that if your userspace (i.e. xdg-app-helper) is built in
64bit mode, then 64bit apps can't run 32bit apps. However, if you're
running a 32bit app it is allowed to run both 32bit and 64bit apps.

Not ideal, but at least the common case is safer.
2016-03-24 21:04:01 +01:00
Matthias Clasen
bf4c5c4943 Fix indentation
gcc 6 warns about this misleadingly indented line.
2016-03-24 00:00:12 -04:00
Matthias Clasen
96437c78e7 Don't check that the name is a branch
Don't call xdg_app_is_valid_branch() to verify an application name.
Use xdg_app_is_valid_name().
2016-03-22 11:27:59 -04:00
Alexander Larsson
08826258ec Update summary after generating deltas
Because deltas are in the summary.
2016-03-15 22:40:33 +01:00
Alexander Larsson
45a8b97542 Enabling gpg means require both signed commits and summaries
It makes no sense to not require this. We're not held back by
backwards compat issues, so lets be maximally secure.
2016-03-15 17:03:21 +01:00
Alexander Larsson
26c2bb1b81 lib: Add xdg_app_bundle_ref_get_installed_size() 2016-02-25 21:34:44 +01:00