4864 Commits

Author SHA1 Message Date
Alexander Larsson
2bfa0060b0 Update pofiles 1.2.4 2019-03-27 10:08:52 +01:00
Alexander Larsson
fa442971e2 Bump version to 1.2.4 2019-03-27 10:02:20 +01:00
Alexander Larsson
5b3d0fae03 Update NEWS for release 2019-03-27 10:02:11 +01:00
Ryan Gonzalez
8e0aaf4b70 run: Only compare the lowest 32 ioctl arg bits for TIOCSTI
Closes #2782.

Closes: #2783
Approved by: alexlarsson

(cherry picked from commit a9107feeb4)
2019-03-26 11:01:56 +01:00
Alexander Larsson
43fc48ea8a Fix flatpak-list --arch
It was looking at the wrong part of the ref...

Closes: #2765
Approved by: mwleeds

(cherry picked from commit c9a7dd9425)
2019-03-26 11:01:56 +01:00
Matthew Leeds
62d7c62779 dir: Fix GError handling in flatpak_load_deploy_data()
Commit b20ee7e26 introduced a bug where flatpak_load_deploy_data()
returns NULL without setting @error in the case that there's a problem
reading the deploy file. I think this is causing a seg fault in
flatpak_installation_list_installed_refs() which tries to print the
error message after calling get_ref() (which indirectly loads the deploy
file).

I didn't personally verify that this fixes the GNOME Builder seg fault
that was reported, but it seems almost certain looking at the provided
stack trace, since get_ref() only returns NULL if
flatpak_dir_get_deploy_data() returns NULL, and that function clearly
sets the error pointer on failure except in flatpak_load_deploy_data().

I'm not sure why the deploy file doesn't exist (or is unreadable) for
the user who reported this seg fault.

Fixes https://github.com/flatpak/flatpak/issues/2717

Closes: #2733
Approved by: matthiasclasen

(cherry picked from commit 7a5c024695)
2019-03-26 11:01:56 +01:00
Alexander Larsson
dbf3c00f53 Fix issues with XDG_RUNTIME_DIR being /var/run which is a symlink
Whenever we use $XDG_RUNTIME_DIR and expose it somehow in the sandbox
we fully resolve the path, because if (as happens on gentoo for instance)
it contains /var/run -> ../run, then flatpak thinks we need to
add the /var/run symlink in the runtime even though we already
exposed that.

Closes: #2710
Approved by: matthiasclasen

(cherry picked from commit 28e96288c4)
2019-03-26 11:01:56 +01:00
Piotr Drąg
4f7286972e Update Polish translation
Closes: #2744
Approved by: matthiasclasen
2019-03-07 14:37:48 +00:00
AsciiWolf
c2427e1332 Update Czech translation
Closes: #2729
Approved by: matthiasclasen
2019-02-26 15:16:23 +00:00
Matthew Leeds
373941346d Merge pull request #2725 from AsciiWolf/patch-2
Fix missing translatable string [flatpak-1.2.x]
2019-02-25 14:54:07 -08:00
AsciiWolf
98c6d0616e Fix missing translatable string
Closes: #2725
Approved by: mwleeds
2019-02-25 22:12:19 +00:00
AsciiWolf
6f0548a55e Fix missing translatable string 2019-02-25 21:24:36 +01:00
Patrick Griffis
84c2ffaa01 Support multiple nvidia cards
Closes: #2695
Approved by: alexlarsson

(cherry picked from commit d2dff2875b)
2019-02-14 10:08:33 +01:00
Alexander Larsson
428c7bf856 Update pofiles 1.2.3 2019-02-11 14:44:28 +01:00
Alexander Larsson
ea9a97e144 Bump version to 1.2.3 2019-02-11 14:37:24 +01:00
Alexander Larsson
c002ac8074 Update NEWS for release 2019-02-11 14:37:24 +01:00
Alexander Larsson
dcd19956fc Don't expose /proc when running apply_extra
As shown by CVE-2019-5736, it is sometimes possible for the sandbox
app to access outside files using /proc/self/exe. This is not
typically an issue for flatpak as the sandbox runs as the user which
has no permissions to e.g. modify the host files.

However, when installing apps using extra-data into the system repo
we *do* actually run a sandbox as root. So, in this case we disable mounting
/proc in the sandbox, which will neuter attacks like this.

(cherry picked from commit 468858c1cbcdbcb27266deb5c7347b37adf3a9e4)
2019-02-11 14:37:24 +01:00
Piotr Drąg
9b13b1e7c2 Update Polish translation
Closes: #2690
Approved by: matthiasclasen
2019-02-11 12:33:35 +00:00
AsciiWolf
77afb0c156 Update Czech translation
Closes: #2693
Approved by: matthiasclasen
2019-02-11 12:32:53 +00:00
Alexander Larsson
6abe5fe027 Update pofiles 1.2.2 2019-02-06 11:36:33 +01:00
Alexander Larsson
6d0055f466 Bump version to 1.2.2 2019-02-06 11:27:35 +01:00
Alexander Larsson
37c733a7e1 Update NEWS for release 2019-02-06 11:27:22 +01:00
Alexander Larsson
29510435ea CLI: Handle consoles reporting zero size
For whatever reason, in the buildbot environment the TIOCGWINSZ
ioctl returns a 0x0 size, which causes a divide by zero. We
handle this by returning a default 80x24 size.

Closes: #2685
Approved by: alexlarsson

(cherry picked from commit 7c9368d100)
2019-02-06 11:25:44 +01:00
Alexander Larsson
8b3966ecd0 Revert "cli transaction: Make the checks green"
This reverts commit e209ac9e10.

We're counting thee escape sequences as width, until we fix
this we disable this.

Closes: #2686
Approved by: alexlarsson

(cherry picked from commit 2ea428a541)
2019-02-06 11:25:35 +01:00
Alexander Larsson
7b78a7d0af Update pofiles 1.2.1 2019-02-05 14:00:02 +01:00
Alexander Larsson
101f8bd8e6 Update NEWS for release 2019-02-05 12:57:31 +01:00
Alexander Larsson
06a2f4d82d Actually always return non-null from flatpak_dir_get_display_name()
This also changes this to a non-const as we need to generate it.

Closes: #2683
Approved by: alexlarsson
2019-02-05 11:45:54 +00:00
Alexander Larsson
8928a60876 Bump version to 1.2.1 2019-02-05 11:35:49 +01:00
Matthias Clasen
f8dfcf66f8 Only install polkit agent when needed
We don't need a polkit agent for simple things like
flatpak --installations. Only install it for running
actual commands.

Closes: #2679
Approved by: alexlarsson
2019-02-05 10:35:26 +00:00
Matthias Clasen
2bf420b93a icon validator: Use exec for the sandboxing
We don't really need a separate process here, and
doing things this way makes output from the sandbox
appear outside, thereby giving us meaningful error
messages for invalid icons.

Related: #2669

Closes: #2677
Approved by: alexlarsson
2019-02-05 10:00:15 +00:00
Mathieu Velten
65634d214c build-init: use the sdk branch from the sdk ref when checking extensions
Closes: #2664
Approved by: alexlarsson
2019-02-04 09:51:54 +00:00
Matthias Clasen
e209ac9e10 cli transaction: Make the checks green
Success ought to be green.

Related: #2671

Closes: #2676
Approved by: mwleeds
2019-02-02 01:38:32 +00:00
Matthias Clasen
d502d31a34 Add a define for green
Add a define for the Escape sequence for green.

Closes: #2676
Approved by: mwleeds
2019-02-02 01:38:32 +00:00
Matthias Clasen
228ee0bd0a appdata: Ignore allowed attributes
We only interested in a few of the attributes of some
tags, but we shouldn't fail if other valid attributes
are present.

Add some of the allowed attributes to the <release> element
in the appdata test and verify that we can still parse it.

The appstream spec is here:
https://www.freedesktop.org/software/appstream/docs/

Closes: #2674
Approved by: matthiasclasen
2019-02-02 00:52:32 +00:00
Piotr Drąg
8d4fa873c2 Update Polish translation
Closes: #2672
Approved by: alexlarsson
2019-02-01 17:05:48 +00:00
Alexander Larsson
f74b54503a build-commit-from: Fix the collection-ref binding
We accidentally got an extra variant making the
type variant(a(ss)) instead of just a(ss).

Closes: #2666
Approved by: alexlarsson
2019-02-01 16:48:09 +00:00
Debarshi Ray
7c8f21e0a4 profile: Unbreak XDG_DATA_DIRS when debug logging is enabled
If G_MESSAGES_DEBUG is set in the shell's start-up scripts, then the
"flatpak --installations" output is contaminated with these strings:
  (flatpak:4558): flatpak-DEBUG: ...

Fallout from 30c2919624

Closes: #2673
Approved by: alexlarsson
2019-02-01 16:30:52 +00:00
Matthias Clasen
d5e2970725 cli transaction: Adapt to an api change
In f7a566e2ab, the flatpak_installation_get_display_name()
api was changed to (almost) always return a non-NULL string. Adapt
to this change, in order to use the preferred messages here.

Closes: #2655

Closes: #2668
Approved by: alexlarsson
2019-02-01 16:30:17 +00:00
AsciiWolf
5a08abb399 Update Czech translation
Closes: #2667
Approved by: matthiasclasen
2019-01-31 20:36:07 +00:00
AsciiWolf
6075a5e7d0 Make the Nothing to do. string translatable 2019-01-31 15:19:29 +01:00
Simon McVittie
2184205801 make-test-*: Don't sandbox the icon validator
During build-time tests, bwrap doesn't necessarily work. In particular,
official Debian autobuilders can't enter namespaces.

We continue to leave the sandbox enabled in the build-export calls in
tests/test-extensions.sh, tests/test-unsigned-summaries.sh
and tests/test-update-remote-configuration.sh, which are already
skipped if bwrap isn't available. This means we exercise both the
normal and --disable-sandbox code paths.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #2661
Approved by: alexlarsson
2019-01-31 14:02:24 +00:00
Simon McVittie
ea227187d4 build-export: Allow sandboxing on icon validator to be disabled
During build-time tests, we can't rely on bwrap working.

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #2661
Approved by: alexlarsson
2019-01-31 14:02:24 +00:00
Matthew Leeds
2b40e68e16 build-commit-from: Fix handling of ostree.collection-refs-binding
In a previous iteration of the work for supporting multiple collection
bindings on a commit[1][2] the key ostree.collections-binding was used,
but it was decided that ostree.collection-refs-binding makes more sense.
So update build-commit-from in one place where the old key was still
being used. This impact of this bug is that we would overwrite the value
of ostree.collection-refs-binding on the new commit with the one on the
source commit (which may not have all the same collection-refs
associated with it).  However since the libostree support for that key
hasn't been merged that wouldn't cause any problems yet.

[1] https://github.com/flatpak/flatpak/pull/2634
[2] https://github.com/ostreedev/ostree/pull/1805

Closes: #2644
Approved by: matthiasclasen
2019-01-29 23:04:54 +00:00
Alexander Larsson
ed71e4680c Handle versions of appstream-glib prior to 0.5.15
These don't have AS_BUNDLE_KIND_FLATPAK, but we can just
assume all bundles are flatpak bundles in the appstream data
we get from flatpak.

Closes: #2650
Approved by: alexlarsson
2019-01-29 10:19:28 +00:00
Alexander Larsson
f0c404d104 Add backported version of g_date_time_new_from_iso8601
Closes: #2642
Approved by: matthiasclasen
2019-01-28 16:36:38 +00:00
Alexander Larsson
7a4f36b5fb Make dconf optional on dconf 0.26
This is needed, because e.g. xenial only has dconf 0.24 which doesn't
have the API needed.

Closes: #2643
Approved by: matthiasclasen
2019-01-28 16:33:06 +00:00
Alexander Larsson
7baac10cdb Update pofiles 1.2.0 2019-01-28 12:43:03 +01:00
Alexander Larsson
5ebcecf244 Bump version to 1.2.0 2019-01-28 11:48:50 +01:00
Alexander Larsson
110fd3b4fe Update NEWS for release 2019-01-28 11:46:13 +01:00
Alexander Larsson
bcc53c2454 validate-icon: Search the path for bwrap
Closes: #2640
Approved by: alexlarsson
2019-01-28 09:40:22 +00:00