3073 Commits

Author SHA1 Message Date
Alexander Larsson
4fc7107ab9 Update pofiles 0.9.12 2017-09-14 09:06:51 +02:00
Alexander Larsson
42fab7b258 Update NEWS and version for release 2017-09-14 09:01:59 +02:00
Alexander Larsson
66670cca4b Don't use an a11y bus proxy for flatpak build
This is unnecessarily expensive and very unlikely to be used.
2017-09-14 08:56:43 +02:00
Alexander Larsson
40126c3e6f Fix crash when installing extra-data
We pass FLATPAK_RUN_FLAG_NO_A11Y_BUS_PROXY when running the
sandboxed apply_extra_data script, because otherwise we run into
a crash due to the lack of an .flatpak-info file (and also, because
it is not needed).
2017-09-14 08:55:30 +02:00
Alexander Larsson
2533626291 Update pofiles 0.9.11 2017-09-13 15:55:11 +02:00
Alexander Larsson
42dd7b5033 Update version to 0.9.11 2017-09-13 15:49:56 +02:00
Alexander Larsson
0dec1ec7ba Update NEWS for release 2017-09-13 15:49:49 +02:00
Alexander Larsson
1ee74fc5ea Expose host icons readonly in sandbox
Icons are really only a bunch of pngs, and the icon theme specification
has been stable since forever and never broke ABI. So, exposing the
host fonts should be pretty safe, comparable to the fonts that we
already expose.

This ends up being kind of important since a lot of things pick up the
icon theme from the host. In particular, it means that libXcursor can pick up
the correct cursor icons for the current cursor theme.
2017-09-13 14:54:49 +02:00
Alexander Larsson
4e97018bc6 Properly check the tmp dir mode
This was using a boolean && instead of a bitwise mask. Reported
by covertity.
2017-09-13 12:11:51 +02:00
Alexander Larsson
0b1e45c47f Add comment about why we're allowing xa.ref discrepancies sometimes
See https://github.com/flatpak/flatpak/pull/1013 for discussion.
2017-09-13 11:56:59 +02:00
Cosimo Cecchi
643f9d6e14 dir: relax requirements around xa.ref matching deployed commit
In case the summary file is GPG-signed, we already have other better
ways of verifying expectations around the installed ref.
If the deployed branch does not match xa.ref, simply warn instead of
aborting.

Based on a patch by Dan Nicholson <nicholson@endlessm.com>
2017-09-13 11:45:00 +02:00
Matthew Leeds
ee8101f9ee install: Use bash completion for file names
Since flatpak can now install from *.flatpak and *.flatpakref files
rather than just remotes, show those files in the bash completion of a
"flatpak install ..." command.

Fixes https://github.com/flatpak/flatpak/issues/672
2017-09-12 16:14:43 +02:00
Matthew Leeds
037a13cde0 completion: Make filename completions smarter
Many flatpak commands only work on *.flatpak or *.flatpakref files, so
the bash auto completion showing every file is distracting and
unnecessary. This commit makes flatpak only show relevant files when
possible by using the "-G globpattern" compgen option.
2017-09-12 16:14:43 +02:00
AsciiWolf
2f01d550a0 Update Czech translation 2017-09-12 16:12:30 +02:00
Jelle van der Waa
68ad3c84c1 Fix segfault on flatpak update
When ret is NULL object_path is filled with garbage and causes a
segfault g_dbus_proxy_new_for_bus_sync.
2017-09-12 16:12:05 +02:00
Matthias Clasen
43af4acb34 Merge pull request #1005 from rffontenelle/patch-3
Update Brazilian Portuguese translation
2017-09-09 08:03:58 -04:00
Matthias Clasen
ec6dbdb5d0 Merge pull request #1008 from AsciiWolf/cs-update
Update Czech translation
2017-09-09 08:03:46 -04:00
Matthias Clasen
329ee9faaf Merge pull request #1004 from hanklank/UpdatedSweTrans
Swedish translation - fixed minor typos after review
2017-09-09 08:03:32 -04:00
AsciiWolf
78400e0e24 Update Czech translation 2017-09-09 13:54:20 +02:00
Rafael Fontenelle
441974dfd1 Update Brazilian Portuguese translation 2017-09-08 22:00:06 -03:00
Josef Andersson
50f34c5aac Fixed minor typos after review 2017-09-09 00:28:28 +02:00
Piotr Drąg
201257a3f2 Update Polish translation 2017-09-06 18:22:31 +02:00
Matthias Clasen
8f6192817a Merge pull request #992 from hanklank/UpdatedSweTrans
Updated Swedish translation
2017-09-05 17:33:03 -04:00
Kukuh Syafaat
029eda844c add Indonesian translation 2017-09-05 13:00:00 +02:00
Alexander Larsson
8a0d2d6cfa dbus-proxy: Make wildcard rules match deeply
For instance, org.my.App.* will now match org.my.App.foo.bar, and even
org.my.App, where it would previously only match org.my.App.foo.

This makes a lot of sense, because it allows you to structure the
subset of the dbus namespace you're granted how you please, and
there is no real security problem with this.

It also matches how arg0namespace works in dbus matches and how the
proposed dbus-implemented filterin works in:
https://bugs.freedesktop.org/show_bug.cgi?id=101902
2017-09-05 12:03:58 +02:00
Josef Andersson
e419940468 Updated Swedish translation 2017-09-04 22:56:18 +02:00
Josef Andersson
1bf9a657bb Updated Swedish translation 2017-09-04 22:53:37 +02:00
handsome-feng
9f7667e698 Show update-able apps/runtimes but dont download or install (#985)
* Show update-able apps/runtimes but dont download or install
2017-09-04 14:23:55 +02:00
Alexander Larsson
52aab929fb Update pofiles 0.9.10 2017-09-04 08:44:05 +02:00
Alexander Larsson
bca9a121f4 Release 0.9.10 with regression fix 2017-09-04 08:39:33 +02:00
Alexander Larsson
2882897474 Fix Unknown argument --none=* errors from dbus proxy
There was a hardcoded value for the dbus policy enum values in the
code that caused problems with the new filtered policy.

Fixes https://github.com/flatpak/flatpak/issues/990
2017-09-04 08:37:08 +02:00
Alexander Larsson
3f62bc63b5 Update pofiles 0.9.9 2017-09-01 16:40:52 +02:00
Alexander Larsson
4a8b8888f7 Bump version to 0.9.9 2017-09-01 16:36:40 +02:00
Alexander Larsson
5efc2c760c Update NEWS for release 2017-09-01 16:36:29 +02:00
Simon McVittie
0ec1a5452b Drop configure checks for unused libelf, libdwarf
These were only used by flatpak-builder which has now gone away.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-09-01 16:05:24 +02:00
Alexander Larsson
de4b6840d2 Initial work on accessiblity support
This creates a dbus proxy for the a11y bus and sets AT_SPI_BUS_ADDRESS in the
environment to the filtered bus.

The app is only allowed to send a very limited amount of messages to
org.a11y.atspi.Registry on the bus, and nothing else.

This requires a patch to at-spi2-core to read the address from
AT_SPI_BUS_ADDRESS:
     https://github.com/flatpak/freedesktop-sdk-images/blob/1.6/at-spi2-core-address-env-var.patch

Fixes https://github.com/flatpak/flatpak/issues/79
2017-09-01 15:36:29 +02:00
Alexander Larsson
fa29b40fad dbus-proxy: Add sloppy-names mode
In this mode all clients get NameOwnerChanged events for all
unique names. This means you can track lifetimes of these, even if
you can't talk to them. This is useful on the a11y bus, because
we want to track when there are any listeners to a particular event,
and this is done my listing unique id:s and tracking them.
2017-09-01 15:34:40 +02:00
Alexander Larsson
ec902a08fa dbus-proxy: Add support for filtering on iface/member/path
This adds a new policy level FILTERED which is betweew SEEN
and TALK. It implies all that SEEN does, but additionally lets
you send method calls to a well known name that matches a
filter which can match against interface name, member name and
object path.

Note: To make the implementation simpler, this does not grant
similar access when sending the peer messages via the unique name,
only when using the well known name does this work.
2017-09-01 15:33:31 +02:00
Alexander Larsson
a8e2dcc1c3 dbus-proxy: Forbid old-style eavesdropping 2017-09-01 09:52:34 +02:00
Alexander Larsson
f9eebd7a54 run: Share the same dbus proxy for session and system bus 2017-08-31 16:55:46 +02:00
Simon McVittie
22f05803b9 Skip system-mode tests (only) if /var/tmp doesn't support xattrs
This partially reverts commit a53a752a35.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-08-31 16:22:18 +02:00
Simon McVittie
e65bcc9fcc Bring back skip_without_user_xattrs helper function
We'll need this to be able to skip system-mode tests without xattrs.
This partially reverts commit a53a752a35.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-08-31 16:22:18 +02:00
Simon McVittie
6e46dc8076 Revert "tests: Don't force use of /var/tmp"
This reverts commit 0648452fca.
Unfortunately, it appears we still need xattrs on the system cache.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-08-31 16:22:18 +02:00
Simon McVittie
2cfeef6bcc Put FLATPAK_SYSTEM_CACHE_DIR alongside other test data
This makes it easier to reason about. In the absence of
FLATPAK_SYSTEM_CACHE_DIR, it would use /var/tmp even during tests that
prefer /tmp.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-08-31 16:22:18 +02:00
Alexander Larsson
fef8743f26 run: Always create a fontconfig cache dir in the app dir
Otherwise fontconfig falls back to a shared ~/.fontconfig dir
which means caches are not per-app, and is not necessarily accessible.
2017-08-31 16:10:08 +02:00
Simon McVittie
0648452fca tests: Don't force use of /var/tmp
Now that we don't need user xattrs, a tmpfs is good enough.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-08-31 13:35:54 +02:00
Simon McVittie
a53a752a35 tests: Don't require user xattrs
Since Flatpak 0.9.6, we use libostree in bare-user-only mode, which
does not rely on xattrs.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-08-31 13:35:54 +02:00
Simon McVittie
86fd56dce0 Improve test diagnostics
- Replace `if (g_test_verbose ()) g_print("...\n")` with
  `g_test_message ("...")`, which prints the message if the test is
  either verbose or in TAP mode. Otherwise, post-mortem debugging
  of failing tests on an autobuilder is very difficult.
  In some cases, since commit f1dbe9bc "tests: Print spawned program
  argv in testlibrary" we already had the g_test_message(), but
  still had the redundant g_print() too.

- Factor out running a subprocess into a helper function to reduce
  duplication.

- Capture invoked subprocesses' stderr and stdout where possible, so we
  can log it as diagnostics. Again, this should make it easier to carry
  out post-mortem debugging based on autobuilder logs.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-08-30 15:45:11 +02:00
Alexander Larsson
0de2978a4d run: Allow calling personality with the current personality
Ideally we should also allow 0xffffffff, which is "read the current state",
but that doesn't seem possible with the current libseccomp.
2017-08-30 15:37:55 +02:00
Alexander Larsson
8f5e47fda5 run: Always set personality (to clear weird states) 2017-08-30 15:37:32 +02:00