forked from flatpak/flatpak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNEWS
3584 lines (2968 loc) · 151 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Changes in 1.16.0
~~~~~~~~~~~~~~~~~~
Released: not yet
...
Changes in 1.15.91
~~~~~~~~~~~~~~~~~~
Released: 2024-12-19
Enhancements:
* Add the `FLATPAK_DATA_DIR` environment variable, which allows overriding
at runtime the data directory location that Flatpak uses to search for
configuration files such as remotes. This is useful for running tests,
and for when installing using Flatpak in a chroot.
* Add a `FLATPAK_DOWNLOAD_TMPDIR` variable. This allows using download
directories other than /var/tmp.
* Emit progress escape sequence. This can be used by terminal emulators
to detect and display progress of Flatpak operations on their graphical
user interfaces.
Bug fixes:
* Install missing test data. This should fix "as-installed" tests via
`ginsttest-runner`, used for example in Debian's autopkgtest framework.
* Unify and improve how the Wayland socket is passed to the sandboxed app.
This should fix a regression that is triggered by compositors that both
implement the security-context-v1 protocol, and sets the `WAYLAND_DISPLAY`
environment variable when launching Flatpak apps. (#5863)
* Fix the plural form of a translatable string.
Changes in 1.15.12
~~~~~~~~~~~~~~~~~~
Released: 2024-11-28
Bug fixes:
* Return to using the process ID of the Flatpak app in the cgroup name.
Using the instance ID in 1.15.11 caused crashes when installing apps,
extensions or runtimes that use the "extra data" mechanism, which
does not set up an instance ID. (#6009)
Changes in 1.15.11
~~~~~~~~~~~~~~~~~~
Released: 2024-11-26
Dependencies:
* In distributions that compile Flatpak to use a separate bubblewrap
executable, version 0.11.0 is recommended (but not required).
The minimum bubblewrap continues to be 0.10.0.
* In distributions that compile Flatpak to use a separate xdg-dbus-proxy
executable, version 0.1.6 is recommended (but not required).
The minimum xdg-dbus-proxy continues to be 0.1.0.
Enhancements:
* Allow applications like WebKit to connect the AT-SPI accessibility tree
of processes in a sub-sandbox with the tree in the main process (#5898)
* New sandboxing parameter `flatpak run --a11y-own-name`, which is
like `--own-name` but for the accessibility bus
* flatpak-portal API v7: add new sandbox-a11y-own-names option, which
accepts names matching `${FLATPAK_ID}.*`
* Apps may call the `org.a11y.atspi.Socket.Embedded` method on names
matching `${FLATPAK_ID}.Sandboxed.*` by default
* `flatpak run -vv $app_id` shows all applicable sandboxing parameters
and their source, including overrides, as debug messages (#5895)
* Add --device=usb, a subset of --device=all
* Introduce USB device listing
* Apps can list which USB devices they want to access ahead of time by
using the `--usb` parameter. Check the manpages for the more information
about the accepted syntax.
* Denying access to USB devices is also possible with the `--no-usb`
parameter. The syntax is equal to `--usb`.
* Both options merely store metadata, and aren't used by Flatpak itself.
This metadata is intended to be used by the (as of now, still in
progress) USB portal to decide which devices the app can enumerate and
request access.
* Add support for KDE search completion
* Use the instance id of the Flatpak app as part of the cgroup name. This
better matches the naming conventions for cgroup.
* Preconfigured repositories can now be set up by OS vendors using
`${datadir}/flatpak/remotes.d` (typically /usr/share/flatpak/remotes.d),
in addition to `${sysconfdir}/flatpak/remotes.d` (typically
/etc/flatpak/remotes.d) which is intended for local sysadmin use
Bug fixes:
* Update libglnx to 2024-08-23 (#5918)
* fix build in environments that use -Werror=return-type, such as
openSUSE Tumbleweed (#5778)
* add a fallback definition for G_PID_FORMAT with older GLib
* avoid warnings for g_steal_fd() with newer GLib
* improve compatibility of g_closefrom() backport with newer GLib
* Update meson wrap file for bubblewrap to version 0.11.0:
* drop Autotools build system
* improve handling of EINTR
* improve handling of socket control messages
* improve compatibility with busybox
* improve compatibility with older Meson
* fix deprecation warnings
* Update meson wrap file for xdg-dbus-proxy to version 0.1.6:
* compatibility with D-Bus implementations that pipeline the
authentication handshake, such as sd-bus and zbus
* compatibility with D-Bus implementations that use non-consecutive
serial numbers, such as godbus and zbus
* broadcast signals can be allowed without having to add TALK permission
(#5828)
* fix memory leaks
* Fix some memory leaks
* Translation updates: cs, pl, zh_CN
Internal changes:
* Better const-correctness (#5913)
* Fix a shellcheck warning in the tests (#5914)
Changes in 1.15.10
~~~~~~~~~~~~~~~~~~
Released: 2024-08-14
Dependencies:
* In distributions that compile Flatpak to use a separate bubblewrap (bwrap)
executable, version 0.10.0 is required.
This version adds a new feature which is required by the security fix
in this release.
Security fixes:
* Don't follow symbolic links when mounting persistent directories
(--persist option). This prevents a sandbox escape where a malicious or
compromised app could edit the symlink to point to a directory that
the app should not have been allowed to read or write.
(CVE-2024-42472, GHSA-7hgv-f2j8-xw87)
Documentation:
* Mark the 1.12.x and 1.10.x branches as end-of-life (#5352)
Other bug fixes:
* Fix several memory leaks (#5883, #5884)
Internal changes:
* Record a log file when running build-time tests with
AddressSanitizer (#5884)
* Add initial suppressions file for AddressSanitizer (#5884)
Changes in 1.15.9
~~~~~~~~~~~~~~~~~
Released: 2024-07-22
Dependencies:
* bubblewrap and xdg-dbus-proxy are now provided by Meson wrap files
instead of being directly vendored via `git submodule`.
If downloading external software during build is not allowed in your
environment, please install suitable versions of bubblewrap and
xdg-dbus-proxy separately, then configure Flatpak with options similar to
`-Dsystem_bubblewrap=bwrap -Dsystem_dbus_proxy=xdg-dbus-proxy`
(most major distributions package it like this already).
Enhancements:
* If xdg-dbus-proxy is new enough (0.1.6 or later, not yet released),
allow two broadcast signals from AT-SPI by default, allowing bus
traffic to be reduced. If xdg-dbus-proxy is older, this change will
have no practical effect but is harmless. (#5828)
* Install csh profile snippet (#5753)
Bug fixes:
* Expand the list of environment variables that Flatpak apps do not
inherit from the host system (#5765, #5785)
* Take time zone information from $TZDIR if set (#5850)
* Fix a memory leak since 1.15.7 when reloading D-Bus configuration (#5856)
* Fix a memory leak when running `flatpak permissions` (#5844)
* Fix memory leaks in `flatpak update` (#5816)
* Fix memory leaks when installing packages (#5811)
* Use more similar translatable strings for some error messages (#5748)
* Document `flatpak config --set languages '*all*'` correctly:
it is really `*all*` (or equivalently `*`), not just `all` (#5836)
* Fix a misleading comment in the test for CVE-2024-32462 (#5779)
* Fix a copy/paste error in the 1.15.7 release notes
* On systems where subdirectories of /sys have been made inaccessible,
continue without them (#5138)
* Make tests more compatible with non-GNU shell utilities (#5812)
* Translation updates: ka (#5873), hi (#5838), pt_BR (#5877), zh_CN (#5843)
Internal changes:
* libglnx and variant-schema-compiler are now managed as `git subtree`
instead of `git submodule`.
Maintainers and contributors, please see `subprojects/README.md` for
details of how to interact with these.
In particular this means that submodules no longer need to be set up
before working on a git clone. (#5800, #5845)
* Split library code into more, smaller translation units, reducing
internal circular dependencies (#5409, #5801, #5803)
* Add some convenience macros in the test suite (#5693)
* Minor internal robustness improvement (#5833)
* Add configuration for Github Codespaces (#5767)
* Improve CI configuration (#5791)
* Work around infrastructure issues in third-party apt repositories
used by default in Github Workflows (#5786)
Changes in 1.15.8
~~~~~~~~~~~~~~~~~
Released: 2024-04-18
Security fixes:
* Don't allow an executable name to be misinterpreted as a command-line
option for bwrap(1). This prevents a sandbox escape where a malicious
or compromised app could ask xdg-desktop-portal to generate a .desktop
file with access to files outside the sandbox. (CVE-2024-32462)
Other bug fixes:
* Pass the -export-dynamic linker option as -Wl,-export-dynamic,
fixing build failures with clang 18 and lld 18 (#5760)
* Fix a double-free when installation is cancelled (#5763)
* Fix installed-tests failure with "FUSERMOUNT: unbound variable"
(#5751)
* Translation updates: pt_BR (#5762), tr (#5761)
Changes in 1.15.7
~~~~~~~~~~~~~~~~~
Released: 2024-03-27
Dependencies:
* The Meson build system is now required.
Compiling with Autotools is no longer possible.
* In distributions that compile Flatpak to use a separate bubblewrap (bwrap)
executable, version 0.9.0 is recommended. Several of the bug fixes listed
below will not be active if an older version is used.
* In distributions that compile Flatpak to use a separate xdg-dbus-proxy
executable, version 0.1.5 is recommended.
* If libmalcontent (parental controls) is enabled, it must be version 0.5.0
or later.
New features:
* Automatically remove obsolete driver versions and other autopruned refs
(#5632)
* `--socket=inherit-wayland-socket` (#5614)
* Automatically reload D-Bus session bus configuration after installing
or upgrading apps, to pick up any exported D-Bus services (#3342)
Bug fixes:
* Update included copy of bubblewrap to version 0.9.0:
* `--symlink` is now idempotent, meaning it succeeds if the
symlink already exists and already has the desired target
(#2387, #3477, #5255)
* Report a better error message if `mount(2)` fails with `ENOSPC`
* Fix a double-close on error reading from `--args`, `--seccomp` or
`--add-seccomp-fd` argument
* Improve memory allocation behaviour
* Silence various compiler warnings
* Update included copy of xdg-dbus-proxy to version 0.1.5:
* Fix handling of long object paths
* Don't parse `<developer><name/></developer>` as the application name
(#5700)
* Don't refuse to start apps when there is no D-Bus system bus available
(#5076)
* Don't try to repeat migration of apps whose data was migrated to a new
name and then deleted (#5668)
* Improve handling of mixed locales on systems with systemd-localed (#5497)
* Improve display of ellipsized columns in wide terminals (#5722)
* Make `flatpak info -e` look for extensions in all installations (#5670)
* Fix warnings from newer GLib versions (#5660, #5737)
* Always set the `container` environment variable (#5610)
* Always let the app inherit redirected file descriptors (#5626)
* In `flatpak ps`, add xdg-desktop-portal-gnome to the list of backends
we'll use to learn which apps are running in the background (#5729)
* Don't use `WAYLAND_SOCKET` unless given `--socket=inherit-wayland-socket`
(#5614)
* Use `fusermount3` if compiled with FUSE 3, overridable with
`-Dsystem_fusermount` compile-time option (#5104)
* Avoid leaking a temporary variable from /etc/profile.d/flatpak.sh into
the shell environment (#5574)
* Improve async-signal safety (#5687)
* Fix various memory leaks (#5683, #5690, #5691)
* Avoid undefined behaviour of signed left-shift when storing object IDs
in a hash table (#5738)
* Detect the correct gtk-doc when cross-compiling (#5650)
* Detect the correct wayland-scanner when cross-compiling (#5596)
* Documentation improvements (#5659, #5677, #5682, #5664, #5719)
* Skip more tests when FUSE isn't available (#5611)
* Translation updates (#5602, #5707)
Changes in 1.15.6
~~~~~~~~~~~~~~~~~
Released: 2023-11-14
Dependencies:
* In distributions that compile Flatpak to use a separate bubblewrap (bwrap)
executable, version 0.8.0 is now required.
* Enabling the optional Wayland security context feature requires
libwayland-client, wayland-scanner >= 1.15 and wayland-protocols >= 1.32.
* Ubuntu 18.04 is no longer routinely tested. Support for dependency
versions included in Ubuntu 18.04 should be considered "at risk".
Features:
* Add --device=input, for access to evdev devices in /dev/input (#5481)
* Update bundled copy of bubblewrap to version 0.8.0, and rely on its
features:
* Improve error message if seccomp is disabled in kernel config
* Security hardening: set user namespace limit to 0, to prevent creation
of nested user namespaces in a more robust way (#5084)
* For subsandboxes started by flatpak-portal, inherit environment
variables from the `flatpak run` that started the original instance
rather than from flatpak-portal, fixing behaviour of FLATPAK_GL_DRIVERS
and similar features (#5278)
* Stop http transfers if a download in progress becomes very slow (#5519)
* Make it easier to configure extra languages, by picking them up from
AccountsService if configured there (#5006)
* Add new flatpak_transaction_add_rebase_and_uninstall() API,
allowing end-of-life apps to be replaced by their intended replacement
more reliably (#3991)
* Create a private Wayland socket with the "security context" extension
if available, allowing the compositor to identify connections from
sandboxed apps as belonging to the sandbox (#4920, #5507, #5558)
* Update libglnx to 2023-08-29
* Use features of newer GLib versions if available
* Turn off system-level crash reporting infrastructure during
some unit tests that involve intentional assertion failures
* Add anchors to link to sections of flatpak-metadata documentation (#5582)
* New translations: ka, nl.
Bug fixes:
* Avoid warnings processing symbolic links with GLib >= 2.77.0, and
with GLib 2.76.0 (GLib 2.76.1 or later silences these warnings)
* Bypass page cache for backend requests in revokefs, fixing installation
errors with libostree 2023.4 (#5452)
* Show AppStream metadata in `flatpak remote-info` as intended
(#5523; regression in 1.9.1)
* Don't let Flatpak apps inherit VK_DRIVER_FILES or VK_ICD_FILENAMES
from the host system, which would be wrong for the sandbox (#5553)
* Fix build failure with prereleases of libappstream 0.17.x (#5472)
* Forward-compatibility with libappstream 1.0 (#5563)
* Fix installation with Meson if configured with -Dauto_sideloading=true
(#5495)
* Fix a memory leak (#5329)
* Fix compiler warnings (#5362, #5366)
* Make the tests fail more comprehensibly if a required tool is missing
(#5020)
* Clean up `/var/tmp/flatpak-cache-*` directories on boot (#1119)
* Don't force `GIO_USE_VFS=local` for programs launched via flatpak-spawn
(#5567)
* Clarify documentation for D-Bus name ownership (#5582)
* Translation updates: id, tr, zh_CN
(#5332, #5565)
Internal changes:
* Split up large source files into smaller modules, reducing internal
circular dependencies (#5410, #5411, #5415, #5419, #5416, #5414)
* Re-synchronize code backported from GLib with the version in GLib
(#5410)
* Make the flags used to apply "extra data" clearer (#5466)
* Use glnx_opendirat() where possible (#5527)
* CI improvements (#5374, #5381)
Changes in 1.15.4
~~~~~~~~~~~~~~~~~
Released: 2023-03-16
Security fixes:
* Escape special characters when displaying permissions and metadata,
preventing malicious apps from manipulating the appearance of the
permissions list using crafted metadata (CVE-2023-28101).
* If a Flatpak app is run on a Linux virtual console (tty1, tty2, etc.),
don't allow copy/paste via the TIOCLINUX ioctl (CVE-2023-28100).
Note that this is specific to virtual consoles: Flatpak is not
vulnerable to this if run from a graphical terminal emulator such as
xterm, gnome-terminal or Konsole.
Other bug fixes:
* Document the path used for `flatpak override`
* Translation updates: oc, pl, ru, sv, tr
Changes in 1.15.3
~~~~~~~~~~~~~~~~~
Released: 2023-02-21
Build system:
* Building this version of Flatpak with Meson is recommended. The source
release flatpak-1.15.3.tar.xz no longer contains Autotools-generated
files, although this version can still be built using Autotools after
running `./autogen.sh`. Future versions are likely to remove the
Autotools build system.
Bug fixes:
* When splitting an upgrade into two steps (download without installing, and
then upgrade without allowing further downloads) like GNOME Software does,
if an app is marked EOL and superseded by a replacement, don't remove the
superseded app in the first step, which would result in the replacement
incorrectly not being installed (#5172)
* Fix a crash when --socket=gpg-agent is used (#5095)
* Fix a crash when listing apps if one of them is broken or misconfigured
(#5293)
* If an app has invalid syntax in its overrides or metadata, mention the
filename in the error message (#5293)
* Unset $GDK_BACKEND for apps, ensuring GTK apps with --socket=fallback-x11
can work (#5303)
* Fix a deprecation warning when compiled with curl >= 7.85 (#5284)
* Translation updates: es, ru (#5266, #5312, #5313)
Internal changes:
* Better diagnostic messages for why runtimes are or are not considered
unused (#5237)
Changes in 1.15.2
~~~~~~~~~~~~~~~~~
Released: 2023-02-06
Bug fixes:
* Never try to export a parent of reserved directories as a --filesystem,
for example /run, which would prevent the app from starting (#5205, #5207)
* Never try to export a --filesystem below /run/flatpak or /run/host,
which could similarly prevent the app from starting
* The above change also fixes apps not starting if a --filesystem is a
symlink to the root directory (#1357)
* Show a warning when the --filesystem exists but cannot be shared with
the sandbox (#1357, #5035, #5205, #5207)
* Display the intended messages for `flatpak repair` (#5204)
* Exporting an app to an existing repository on a CIFS filesystem
now works as intended (#5257)
* Unset $GIO_EXTRA_MODULES for apps, avoiding misbehaviour in some GLib
apps when set to a path on the host (#5206)
* Unset $XKB_CONFIG_ROOT for apps, avoiding crashes in GTK and Qt apps
under Wayland when this variable is set to a path not available in the
sandbox (#5194)
* When using the fish shell, avoid duplicate XDG_DATA_DIRS entries if the
profile script is sourced more than once (#5198)
* Update included copy of bubblewrap to 0.7.0 for better error messages
* Install SELinux files correctly when building with Meson
* Translation updates: ru, tr (#5256, #5262)
Internal changes:
* Update included copy of libglnx
* flatpak -v now uses the INFO log level, and flatpak -vv uses the
DEBUG log level in the flatpak log domain. Previously, the extra
messages that were logged by flatpak -vv were in a separate "flatpak2"
log domain. G_MESSAGES_DEBUG=flatpak previously had an effect similar to
flatpak -v, and is now more similar to flatpak -vv. (#5001)
Changes in 1.15.1
~~~~~~~~~~~~~~~~~
Released: 2022-11-17
Dependencies:
* When building with Meson, gpgme 1.8.0 is now required.
Older versions can still be used by building with Autotools.
Features:
* If an old temporary deploy directory was leaked by versions before #5146,
clean it up the next time the same app is updated (#5164)
Bug fixes:
* If an app update is blocked by parental controls policies, clean up the
temporary deploy directory (#5146)
* Fix Autotools build with versions of gpgme that no longer provide
gpgme-config(1) (#5173)
* Fix a possible parallel build failure with Meson (#5165)
* Fix a compiler warning on 32-bit architectures (#5148)
* When building with Autotools, be more consistent about applying compiler
warning flags (#5149)
* Unset $TEMP, $TEMPDIR and $TMP for apps, the same as $TMPDIR (#5168)
* Treat /efi the same as /boot/efi (#5155)
Changes in 1.15.0
~~~~~~~~~~~~~~~~~
Released: 2022-10-24
Build system:
* Flatpak can now be compiled using Meson instead of Autotools.
This requires Meson 0.53.0 or later, and Python 3.5 or later.
The Autotools build system is likely to be removed during either the
1.15.x or 1.17.x cycle. (#4845)
New features:
* Allow the `modify_ldt` system call as part of `--allow=multiarch`.
This increases attack surface, but is required when running 16-bit
executables in some versions of Wine. (#4297)
* Share gssproxy socket, which acts like a portal for Kerberos authentication.
This lets apps use Kerberos authentication without needing a sandbox hole.
(#4914)
* Add a httpbackend variable to flatpak.pc, allowing dependent projects
like GNOME Software to detect whether they are compatible with libflatpak
(#5054)
Bug fixes:
* Terminate the flatpak-session-helper and flatpak-portal services when the
session ends, so that applications will not inherit outdated Wayland
and X11 socket addresses (#5068)
* When using `fish` shell, don't overwrite a previously-set XDG_DATA_DIRS
(#5123)
* Don't try to enable HTTP 2 if linked to a libcurl version that doesn't
support it (#5074)
* Stop systemd reporting the session-helper as failed when terminated by
a signal (#5129)
* Fix a warning when listing a document with no permissions (#5055)
* Fix compilation with GLib 2.66.x (as used in Debian 11) (#5062)
* Fix compilation with GLib 2.58.x (as used in Debian 10) (#5066)
* Make generated files more reproducible (#5085)
* Translation updates: cs, id, pl, pt_BR (#5052, #5056, #5059, #5126)
Internal changes:
* Update project logo in README (#5119)
* Update libglnx subproject (#5140)
Changes in 1.14.0
~~~~~~~~~~~~~~~~~
Released: 2022-08-22
Known issues:
* There may be an issue where non-primary architecture builds don't show up
(https://github.com/flatpak/flatpak/issues/5045)
* There is a new security advisory on Flatpak but all supported versions are
not affected due to using new enough versions of libostree
(https://github.com/flatpak/flatpak/security/advisories/GHSA-45jq-5658-v38x)
Dependencies:
* Conditional on a build time option, revokefs will now use version 3 of the
FUSE API rather than version 2 (#4326)
* Libappstream should be updated to at least 0.15.3 to avoid critical warning
messages when using the "flatpak search" command
(https://github.com/ximion/appstream/issues/384)
New features:
* A new key "DeploySideloadCollectionID" is now supported in flatpakref and
flatpakrepo files, to allow setting a collection ID at the time a remote is
added from one of those files, rather than when metadata is pulled from the
remote, and without affecting versions of Flatpak with the older pre-sideload
P2P implementation (#4826)
* Allow sub-sandboxes to own MPRIS names on the session bus (#5023)
* Commands that accept "--user" will now also take "-u" as an alias for that
(#5014)
* The CLI now properly informs the user of which apps are (indirectly) using
end-of-life runtime extensions in end-of-life info messages (#4835)
* The CLI now takes into account operations in the pending transaction when
printing end-of-life messages (#4835)
* The uninstall command now asks for confirmation before removing in-use
runtimes or runtime extensions (#4835)
* A "--socket=gpg-agent" option is now recognized by "flatpak run" and related
commands (#4958)
Bug fixes:
* Fix a memory corruption issue caused by use of libcurl in an unsafe way
(#5046)
* Update selinux policy to cover symbolic links in /var/lib/flatpak (#4992)
* Fix a crash in case a .desktop file processed by the build-export command has
no Exec= key, and some related fixes for handling such .desktop files (#4817)
* Preserve the X11 display number rather than redirecting it to :99 (#5034)
Other changes:
* Various improvements to the unit tests, CI infra, and documentation
* Some changes were made to ensure translators can work on full sentences
rather than fragments in several places
* Translation updates: de, ru, sv, tr, uk, zh_CN
Changes in 1.13.3
~~~~~~~~~~~~~~~~~
Released: 2022-06-16
Dependencies:
* Support curl 7.29 or later as an additional, and the default, HTTP backend
alongwith libsoup 2.x (#4943)
* Clarify that glib 2.46 or later is now required (#4944)
New features:
* Implement support for rewriting dynamic launchers when an app is renamed
(#4703)
* Add --include-sdk/debug options to install command to install SDK/debuginfo
along with a ref (#4777)
* Improve --sideload-repo option to take create-usb dirs (#4843)
* Add a new library API flatpak_transaction_get_operation_for_ref() (#4947)
Bug fixes:
* Update the SELinux module to explicitly permit the system helper have read
access to /etc/passwd and systemd-userdbd, read and lock access to
/var/lib/flatpak, and watch files inside $libexecdir (#4852, #4855, #4892)
* Fix the error messages and the exit code of the 'uninstall' command when
non-existent refs are specified (#4857)
* Be more careful with errors when creating directories and deleting files,
and address some memory errors (#4930)
* Fix support for --noninteractive in the 'uninstall' command (#4947)
Other changes:
* Cosmetic improvements to end-of-life messages and other aspects of the CLI
output (#4947)
* Speed up the tests by not installing the polkit agent (#4942)
* Disable fuzzy ref matching when ID has a period or a slash, or when the
standard input or output is not a TTY (#4829, #4848)
* Update the icon-validator to print the format and size for consumption by
the dynamic launcher portal (#4803, #4808)
* Remove a pointless test (#4856)
* Improve various details of the GitHub workflows (#4870)
* Prepare for the addition of a Meson build (#4842, #4871, #4888, #4889, #4890)
* Only add the specified 'summary-arches' to the compat summary. This is
important since we're nearing the 10MB size limit for Flathub's legacy
summary files. (#4880)
* Translation updates: id, pt, sv, tr, uk
Changes in 1.13.2
~~~~~~~~~~~~~~~~~
Released: 2022-03-14
Bug fixes:
* Consistently pass relative subpaths to libostree, working around a bug
in libostree < 2021.6 when used with GLib >= 2.71 (#4805)
* Document have-kernel-module-* as having been added in 1.13.1
* Fix some memory leaks in GVariant data processing
Changes in 1.13.1
~~~~~~~~~~~~~~~~~
Released: 2022-03-01
Dependencies:
* libappstream 0.12.0 or later is now required
* appstream-glib is no longer required
* In distributions that compile Flatpak to use a separate bubblewrap (bwrap)
executable, version 0.5.0 is now required
New features:
* Create a directory for XDG_STATE_HOME and set the environment variable
(#4477)
- Apps requiring a state directory without a dependency on this updated
Flatpak version can get similar functionality by using:
--persist=.local/state --unset-env=XDG_STATE_HOME
which will use the same storage location
* Set HOST_XDG_STATE_HOME environment variable (#4477)
* Add have-kernel-module-foo family of conditionals for extensions, a
generalization of have-intel-gpu (which is now mostly equivalent to
have-kernel-module-i915) (#4647)
* Add `flatpak document-unexport --doc-id=...` (#1897)
* Export Appstream metadata for host system to use (#4350, #4599)
* Add command-line completion for the Fish shell (#3109)
* Add FlatpakTransaction:no-interaction API (#4699)
* We now allow networked access to X11 and PulseAudio services
if that is configured, and the application has network access.
(#397, #3908, #4702)
* `flatpak build-init` automatically sets the build directory to be
ignored by git (#4741)
Other changes:
* Updated bundled xdg-dbus-proxy to 0.1.3 (#4737)
* Updated bundled bubblewrap to 0.6.1 (#4779)
* The default branch in the Github repository is now named 'main'
* Don't offer options in CLI tab completion unless the user typed a '-'
(#4753)
* Disable fancy output (e.g. progress bars that get redrawn) when
G_MESSAGES_DEBUG is set in the environment (#4767)
* Most commands now work if /var/lib/flatpak exists but /var/lib/flatpak/repo
does not, and will automatically populate the repo directory if
possible (#4111)
* Disable session bus access for `flatpak-spawn --sandbox` as intended
(#4630)
* Make `sudo flatpak --user ...` fail with an error message, since acting
on root's per-user installation is unlikely to be what was intended
(#4638)
* Don't mention "negative" permissions like !host in /.flatpak-info (#4691)
* Improve performance when finding related refs
* Use SHA256 instead of SHA1 to avoid false-positives from static analysis
(in fact the use of SHA1 was not security-sensitive here) (#4716)
* Create sandbox's XDG_RUNTIME_DIR with 0700 permissions (#3397)
* Always create /.flatpak-info with 0600 permissions
* Absolute paths in WAYLAND_DISPLAY now work (#4752)
* Improve reliability of detecting the current GTK theme (#4754)
* Fix some error code paths when deploying malformed apps
* Improve some error messages
* Use URN for fontconfig DTD, consistent with fontconfig itself (#4617)
* Use `type -P` or `command -v` in preference to which(1) (#4696)
* Improve measurement of test coverage (#4681)
* Translation updates: de, fr, hi, hr, id, oc, pl, pt_BR, sv, uk, zh_CN
Changes in 1.12.6
~~~~~~~~~~~~~~~~~
Released: 2022-02-21
* Fix a bug that sometimes caused repo corruption in case downloads are
interrupted or canceled, necessitating a "flatpak repair" to recover
(#3479, #4258)
* More reliably detect the GTK theme (#4754)
* Fix history command unit test in some edge cases (#4764)
* Improve NEWS for 1.12.5
* Translation update: pt_BR
Changes in 1.12.5
~~~~~~~~~~~~~~~~~
Released: 2022-02-11
* Fixed a case where temporary data was sometimes left in
/var/lib/flatpak/appstream, and we now detect such leftover data and
remove it. (#4735)
* Fix regressions in `flatpak history` since 1.9.1 (#4121, #4332)
- Don't display the appstream branch used internally
- Don't display temporary repositories used internally
- Warn instead of failing if other non-app, non-runtime refs are found
- Don't set up an unnecessary polkit agent for `flatpak history`
- Add test coverage
* Don't propagate GStreamer-related environment variables into
sandbox (#4728)
* Fix a typo in an error message
* Fix incorrect year in NEWS for 1.12.4 release
* Translation update: pl
Changes in 1.12.4
~~~~~~~~~~~~~~~~~
Released: 2022-01-18
This is a regression fix update, reverting non-backwards-compatible
behaviour changes in the solution previously chosen for CVE-2022-21682.
Flatpak 1.12.3 and 1.10.6 changed the behaviour of `--nofilesystem=host`
and `--nofilesystem=home` in a way that was not backwards-compatible in
all cases. For example, some Flatpak users previously used a global
`flatpak override --nofilesystem=home` or
`flatpak override --nofilesystem=host`, but expected that individual apps
would still be able to have finer-grained filesystem access granted by the
app manifest, such as Zoom's `--filesystem=~/Documents/Zoom:create`. With
the changes in 1.12.3, this no longer had the intended result, because
`--nofilesystem=home` was special-cased to disallow inheriting the
finer-grained `--filesystem`.
Flatpak 1.12.4 and 1.10.7 return to the previous behaviour of
`--nofilesystem=host` and `--nofilesystem=home`. Instead, CVE-2022-21682
will be resolved by a new 1.2.2 release of flatpak-builder, which will
use a new option `--nofilesystem=host:reset` introduced in Flatpak 1.12.4
and 1.10.7. In addition to behaving like `--nofilesystem=host`, the new
option prevents filesystem permissions from being inherited from the
app manifest.
Other changes:
* Clarify documentation of `--nofilesystem`
* Improve unit test coverage around `--filesystem` and `--nofilesystem`
* Restore compatibility with older appstream-glib versions, fixing a
regression in 1.12.3
Changes in 1.12.3
~~~~~~~~~~~~~~~~~
Released: 2022-01-12
This is a security update that fixes two issues that were found in flatpak:
https://github.com/flatpak/flatpak/security/advisories/GHSA-qpjc-vq3c-572j
(also known as CVE-2021-43860)
This issue is about the possibility for a malicious repository to send
invalid application metadata in a way that hides some of the app
permissions displayed during installation.
https://github.com/flatpak/flatpak/security/advisories/GHSA-8ch7-5j3h-g4fx
(also known as CVE-2022-21682)
This issue is a problem with how flatpak-builder uses flatpak, that
can cause `flatpak-builder --mirror-screenshots-url` commands to be
allowed to create directories outside of the build directory.
The fix for this is done in flatpak by making the --nofilesystem=host
and --nofilesystem=home more powerful. They previously only removed
access to the particular location, i.e. `--nofilesystem=host` negated
`--filesystem=host`, but not `--filesytem=/some/dir`. This is a minor
change in behavior, as it may change the behavior of an override
with these specific options, however it is likely that the new
behavior was the expected one.
Other changes:
* Extra-data downloading now properly handles compressed content-encodings
which fixes checksum verification (see #4415)
Note: In some corner case server setups this may require the extra-data
checksum to be changed
* Avoid unnecessary policy-kit dialog due to auto-pinning when installing runtimes
* Better handling of updates of extensions that exist in multiple repositories
* Fixed (initial) installation apps with renamed ids
* Support more pulseaudio configuration, including the one used in WSL2
* Fixed regression in updates from no-enumerate remotes
* We now verify checksums of summary caches, to better handle local file
corruption
* Improved cli output for non-terminal targets
* Flatpak run --session-bus now works
* Fix build with PyParsing >= 3.0.4
* Fixed "Since" annotations on FlatpakTransaction signals
* bash auto completion now doesn't complete on command name aliases
* Minor improvements to the search command
* Minor improvements to the list command
* Minor improvements to the repair command
* Add more tests
* Updated translations and docs
Changes in 1.12.2
~~~~~~~~~~~~~~~~~
Released: 2021-10-12
* Install translations referenced by LANG, LANGUAGE or LC_ALL
* Fix error handling for the syscalls that are blocked when not using --devel
* Improve diagnostic messages when seccomp rules cannot be applied
* Update Polish translation
Changes in 1.12.1
~~~~~~~~~~~~~~~~~
Released: 2021-10-08
The security fix in the 1.12.0 release failed when used with some
older versions of libseccomp (that don't know about the new syscalls).
More specifically, installing modules that use extra-data would fail, and so
would running applications with the --allow=multiarch feature, such as Steam.
This release fixes those regressions.
Changes in 1.12.0
~~~~~~~~~~~~~~~~~
Released: 2021-10-08
This is the first stable release in the 1.12.x series. The major changes
in this series is the support for better control of sub-sandboxes, as
used by the Steam Flatpak app to run Windows games under Proton.
In addition, this release fixes a security vulnerability in the portal
support. Some recently added syscalls were not blocked by the seccomp rules
which allowed the application to create sub-sandboxes which can confuse
the sandboxing verification mechanisms of the portal. This has been
fixed by extending the seccomp rules. (CVE-2021-41133)
For details, see:
https://github.com/flatpak/flatpak/security/advisories/GHSA-67h7-w3jq-vh4q
Other changes in this version:
* Some test fixes
* Update translations
* Support for specifying the flatpak binary to use during exports
* Install translations for all languages in the locale, not just the ones in
LC_MESSAGES.
* Fix progress reporting in flatpak fsck
* Handle cases where /var/tmp is a symlink
* Expose /etc/gai.conf to the sandbox
* Fix the parental control checks for root
* Handle missing /etc/ld.so.cache (musl)
Changes in 1.11.3
~~~~~~~~~~~~~~~~~
Released: 2021-08-25
Dependencies:
* For Linux distributions that compile Flatpak to use a separate
bubblewrap (bwrap) executable, updating to version 0.5.0 is recommended,