-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: danctnix: danctnix-tweaks: secfix - regenerate pacman gnupg keys
Signed-off-by: Danct12 <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# Maintainer: Danct12 <[email protected]> | ||
|
||
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) | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
PKGBUILDS/danctnix/danctnix-tweaks/danctnix-tweaks.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |