Commit graph

1644 commits

Author SHA1 Message Date
Alexey Min
2fb18b5d30
samsung-klte: backport memfd_create() syscall (!479)
This brings in several patches needed to add support for a
memfd_create() syscall into kernel version 3.4 from kernel
version 3.17. This is required for running lxc >= 3.1.0-r1
with security patch that fixes CVE-2019-5736.

In short, security issue was: in a privileged container root
process could overwrite lxc-start executable by opening its
file descriptor and rewriting executable contents. This is
where memfd comes to help: you can create an in-memory file,
copy your executable there, and place a set of SEALS to protect
it from modifying at a deep level. Then you fexecve() that fd
and you're safe.

For example, pulseaudio also can benefit from having
memfd_create() implemented.

This backports the following commits from upstream linux:
 - dd37978c50bc8b354e5c4633f69387f16572fdac: cache the value
   of file_inode() in struct file

   commit from linux-3.10 to have an f_inode member inside
   struct file and a helper function file_inode() that is
   used in some of the following commits

 - 40e041a2c858b3caefc757e26cb85bfceae5062b shm: add sealing API

   from 3.17: security measure called SEALS, that you can put
   on memfd file to restrict operations on it

 - 9183df25fe7b194563db3fec6dc3202a5855839c shm: add memfd_create()
   syscall

   also from 3.17

 - 503e6636b6f96056210062be703356f4253b6db9 asm-generic: add
   memfd_create system call to unistd.h

 - e57e41931134e09fc6c03c8d4eb19d516cc6e59b ARM: wire up
   memfd_create syscall

The last two are needed to make the syscall visible/usable from
userspace, one in generic context, other for ARM arch.

The test program (https://github.com/minlexx/test_memfd/) was
written to verify that this works.

[ci:skip-build]: already built successfully in CI
2019-07-09 21:17:33 +02:00
Alexander Polynomdivision
17ab67d2b6
samsung-herolte: fix indent in nonfree_firmware (!478)
As spaces instead of tabs were used, pmbootstrap would error out when
using `samsung-herolte` during init.
2019-07-06 09:13:19 +02:00
Bart Ribbers
8f6a331ffd
kde/calindori: update to first 1.0 release (!475) 2019-07-06 03:39:15 +02:00
Luca Weiss
7c079a69fd
QEMU: fix case sensitivity, unify device names (!480)
[ci:skip-vercheck]
2019-07-06 03:30:37 +02:00
Oliver Smith
f90149a024
osk-sdl: update to 0.53
As Idan Horo wrote in osk-sdl!82:
"Newer versions of cryptsetup automatically encrypt with LUKS v2.
osk-sdl assumes all partitions are encrytped with v1 and as such fails.
By just changing the encryption type to NULL cryptsetup automatically
detects and chooses the correct LUKS version. Tested on xiaomi-kenzo."
2019-07-06 03:24:53 +02:00
Oliver Smith
3bb5504643
unity8/mir: rebuild against protobuf 3.8.0 (!481)
Add two patches that make it build against Alpine's current versions of
protobuf and libdrm.

[ci:skip-build]: I've manually verified that this builds.
2019-07-06 03:18:49 +02:00
Oliver Smith
975640fc7b
main/pmbootstrap: update to 1.7.0 2019-07-05 21:20:57 +02:00
Oliver Smith
bc17119682
pmaports.cfg: set min pmbootstrap version: 1.7.0
Require latest pmbootstrap version, because it supports depends in
depends in the APKBUILD parser, and is able to properly test
UEVENT_HELPER, LBDAP kconfig options (they must depend on the kernel
version).
2019-07-05 21:20:57 +02:00
Federico Amedeo Izzo
9620435c92
samsung-ariesve: new device (Samsung Galaxy S Plus) (!474)
Also known as gt-i9001.

[ci:skip-build]: already built successfully in CI
2019-07-03 21:10:28 +02:00
hacker12455
e2e4bb3df2
samsung-lt023g: Enable WiFi, switch arch to armv7 (!470)
[ci:skip-build]: already ran successfully in CI
2019-06-30 19:13:31 +02:00
Oliver Smith
24d0ce16e5
asus-flo, sony-castor-windy: use mesa-freedreno (!450)
Let all remaining devices that depend on mesa-dri-freedreno use the new
mesa-freedreno package.

[ci:skip-build]: won't finish in time. I'm verifying that the whole
                 merge request builds before merging.
2019-06-30 18:54:08 +02:00
Martijn Braam
624c965b41
lg-hammerhead: mesa-freedreno, serial tty0, fix X (!450)
Use the new mesa-freedreno package. Configure inittab to start a
terminal on ttyMSM0 (serial). Remove fbdev from xorg.conf and set
SWCursor on.

Based on patches from Brian Masney.
2019-06-30 18:54:08 +02:00
Oliver Smith
71a9fec125
sony-sirius: use mesa-freedreno, change to armv7 (!450)
Switch to armv7, because we're not building linux-postmarketos-qcom for
armhf anymore.
2019-06-30 18:54:08 +02:00
Oliver Smith
7e4b70ddf4
main/linux-postmarketos-qcom: update: 5.2_rc3, disable armhf (!450)
Kernel patches by Brian Masney, this pmaports.git patch is based on work
by Brian and Martijn Braam.
2019-06-30 18:54:08 +02:00
Oliver Smith
a4f35cb7d6
temp/mesa-freedreno: current mesa master (!450)
Freedreno is broken in latest mesa stable, but it is fixed in current
master. Let's use master for now.

Based on Brian Masney's patch, but with a hardcoded commit and a
separate package.
2019-06-30 18:54:02 +02:00
Oliver Smith
ec14336927
teclast-x80pro: enable CONFIG_UEVENT_HELPER (!472)
[ci:skip-build]: will not finish in time. I've built linux-asus-me176c
                 and it builds fine. I'm assuming that
                 linux-teclast-x80pro will also build, since it is
                 pretty much the vanilla kernel.
2019-06-30 18:46:37 +02:00
Oliver Smith
58bb1ab8f3
asus-me176c: enable CONFIG_UEVENT_HELPER (!472)
Make busybox mdev work in the postmarketOS initramfs.
2019-06-30 17:10:31 +02:00
Martijn Braam
74ac6819c9
main/postmarketos-mkinitfs: verbose network log (!468)
Make the initfs show better errors in the network setup part.
2019-06-30 11:49:03 +02:00
Oliver Smith
17292f4f5e
main/postmarketos-base: fix wpa_supplicant config (!365)
Fix wifi on htc-ace by properly setting nl80211 before wext.

/etc/conf.d/wpa_supplicant is supposed to get modified twice with the
current code in the post-install file. The first one was patched
recently to set nl80211 before wext, but that change does not work in
practice, for two reasons:

1. The code block does not even get executed, because apk reports that
   /etc/conf.d/wpa_supplicant was already modified (by a package that
   was installed before, in its post-install script? I could not find
   out which one does that though).
2. Even if it worked, the second code block would revert the change and
   put wext before nl80211 again.

Fix this by removing the first code block, and changing the order in the
second one. Make it easier to catch such errors in the future, by
printing, which files get modified, or get skipped. Set "#!/bin/sh -e",
so the script can not fail silently.

When doing pmbootstrap -y zap and then pmbootstrap install, the output
looks like this:

(141/151) Installing postmarketos-base (3-r26)
Executing postmarketos-base-3-r26.post-install
- Modifying: /etc/fstab
- Modifying: /etc/issue
- Modifying: /etc/motd
- Modifying: /etc/conf.d/syslog
- Modifying: /etc/conf.d/wpa_supplicant
- Modifying: /etc/sudoers
- Modifying: /etc/chrony/chrony.conf
2019-06-30 02:00:08 +02:00
Luca Weiss
82b143f3f0
Fix spelling mistakes (!466)
codespell --skip="./.git,*.patch,*.diff,config-*.*"

[ci:skip-build]
[ci:skip-vercheck]
2019-06-30 01:40:02 +02:00
Tito Ragusa
745cefca8a
maemo/hildon-theme-alpha: Cleanup debian files (!469) 2019-06-29 16:15:38 +02:00
Bart Ribbers
0cebe2a3a2
main/libphonenumber: remove, upstreamed (!467) 2019-06-27 11:05:01 +02:00
Bart Ribbers
fb05a9e586
temp/kwin: remove (!467)
The patch we forked it for is in KWin 5.16.2 which is in Alpine Linux
2019-06-27 11:04:20 +02:00
Kenneth Endfinger
258e92e942
google-glass: Add non-free firmware and initialize the display (!462)
[ci:skip-build]: already built successfully in CI
2019-06-26 23:56:33 +02:00
Idan Horo
624e777a6f
xiaomi-kenzo: new device (Xiaomi Redmi Note 3) (!461)
Boots succsfully, SSH over USB works fine, display and touch screen
works fine. WiFi is also confirmed to be working.

[ci:skip-build]: already built successfully in CI
2019-06-26 23:26:14 +02:00
Bart Ribbers
8220ed31e6
main/postmarketos-ui-plasma-mobile: add lightdm-openrc to depends (!460)
Fixes post-install script.
2019-06-26 22:50:37 +02:00
Bart Ribbers
07a382a8b7
kde/sink: remove (!460) 2019-06-26 22:50:37 +02:00
Bart Ribbers
1f9f9f628c
kde/kpkpass: remove (!460) 2019-06-26 22:50:37 +02:00
Bart Ribbers
f8f2ff56e2
kde/kimap2: remove (!460) 2019-06-26 22:50:37 +02:00
Bart Ribbers
7688f6dfa1
kde/kdav2: remove (!460) 2019-06-26 22:50:37 +02:00
Bart Ribbers
02f09d66e2
kde/kasync: remove (!460) 2019-06-26 22:50:37 +02:00
Bart Ribbers
df665a4980
kde/kube: remove in favor of trojita (!460) 2019-06-26 22:50:31 +02:00
Luca Weiss
a66fed62cc
Format **/*.c with clang-format (!465)
[ci:skip-build]: already built successfully in CI
[ci:skip-vercheck]
2019-06-26 22:36:24 +02:00
Luca Weiss
90e2cc7eff
CI: check coding style of C code (!465) 2019-06-26 22:36:20 +02:00
Luca Weiss
4553bd705a
Add .clang-format file (!465) 2019-06-26 22:36:15 +02:00
Daniel Michelin
0a634a4932
CI: check_mr_settings: disallow squashing commits (!464) 2019-06-26 21:55:47 +02:00
Daniele Debernardi
fb477bab21 samsung-maguro: migrate to armv7 architecture (!455)
[ci:skip-build]: already built successfully in CI
2019-06-24 20:44:08 +00:00
Bart Ribbers
4f3360c051
main/vvave: update and move to newer sources (!454)
[ci:skip-build]: already built successfully in CI
2019-06-24 22:09:09 +02:00
Bart Ribbers
377426d090
main/pix: update and move to newer sources (!454) 2019-06-24 22:08:57 +02:00
Bart Ribbers
359991bcab
main/nota: update and move to newer sources (!454) 2019-06-24 22:08:57 +02:00
Bart Ribbers
c72e009383
main/index: update and move to newer sources (!454) 2019-06-24 22:08:57 +02:00
Bart Ribbers
8cae9e1b2b
main/buho: update and move to newer sources (!454) 2019-06-24 22:08:57 +02:00
Bart Ribbers
98b21a669b
main/mauikit: update and move to newer sources (!454) 2019-06-24 22:08:53 +02:00
Oliver Smith
7fb32b86a4
main/libofono-qt: disable docs
Documentation depends on texlive, which is currently not available in
Alpine edge x86.
2019-06-24 21:59:45 +02:00
Oliver Smith
020dd0e9f2
main/libofono-qt: remove unused patch files
[ci:skip-vercheck]
2019-06-24 21:58:43 +02:00
Oliver Smith
069fabbd3d
main/telepathy-ofono: bump pkgrel
missing depend(s): so:libmission-control-plugins.so.0, so:libofono-qt.so.1
2019-06-24 21:25:06 +02:00
Daniele Debernardi
375e98b950
main/reboot-mode: new aport (!442)
New tool to reboot the device to a specific mode.
2019-06-24 21:09:47 +02:00
Bart Ribbers
af263907ca
main/libofono-qt: rename from ofono-qt and move to newer sources (!408)
[ci:skip-vercheck] libofono-qt switched to newer sources but uses a
different version numbering system
2019-06-24 11:06:44 +02:00
Bart Ribbers
f0a25157c2
kde/plasma-phone-components: enable calls (!408) 2019-06-24 11:06:44 +02:00
Bart Ribbers
16ae92881b
kde/kdeconnect: remove, upstreamed (!453) 2019-06-24 11:03:08 +02:00