Skip to content

Commit

Permalink
pkg: danctnix: danctnix-tweaks: secfix - regenerate pacman gnupg keys
Browse files Browse the repository at this point in the history
Signed-off-by: Danct12 <danct12@disroot.org>
  • Loading branch information
Danct12 committed Jun 28, 2021
1 parent 33fed27 commit 3bbba09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PKGBUILDS/danctnix/danctnix-tweaks/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Maintainer: Danct12 <danct12@disroot.org>

pkgname=danctnix-tweaks
pkgver=0.2
pkgver=0.3
pkgrel=1
pkgdesc="Tweaks made to DanctNIX Mobile."
arch=(any)
url="https://danctnix.org"
license=('MIT')
install=$pkgname.install
source=(00-journal-size.conf
packagekit-rm-lock.service)

Expand Down
11 changes: 11 additions & 0 deletions PKGBUILDS/danctnix/danctnix-tweaks/danctnix-tweaks.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
post_upgrade() {
if [ "$(stat -c '%W' /etc/pacman.d/gnupg)" -lt 1624838400 ]; then
echo "Security fix: recreating gnupg keys for pacman"
echo "All systems before 2021/06/28 release shipped common private keys for pacman. Due to this vulnerability, all gnupg keys must be regenerated."
echo "This might take a while, please wait."

/usr/bin/rm -rf /etc/pacman.d/gnupg
/usr/bin/pacman-key --init
/usr/bin/pacman-key --populate archlinuxarm
fi
}

0 comments on commit 3bbba09

Please sign in to comment.