如下來完成下載在系統上使用grsecurity所需的全部組件的過程。 將每一個組件下載到計算機上的同一目錄中。linux
下載grsecurity 工具
在http://grsecurity.net/。單擊「下載」連接,而後選擇「穩定」或「測試」補丁(自2015年9月9日起,只有商業客戶才能得到穩定的grsecurity補丁)。只得爲內核3.2.50安裝最新的穩定grsecurity。所以,補丁文件將被稱爲「grsecurity-2.9.1-3.2.50-201308052151.patch」。測試
$ gpg --import spender-gpg-key.asc
gpg: key 4245D46A: public key "Bradley Spengler (spender) <spender@grsecurity.net>" imported
gpg: Total number processed: 1
gpg: imported: 1
導入密鑰後,在grsecurity目錄中運行如下命令來驗證下載的grsecurity和gradm軟件包:網站
$ gpg --verify grsecurity-2.9.1-3.2.50-201308052151.patch.sig gpg: Signature made Mon 05 Aug 2013 06:55:44 PM PDT using DSA key ID 4245D46A gpg: Good signature from "Bradley Spengler (spender) <spender@grsecurity.net>" gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 9F74 393D 7E7F FF3C 6500 E778 9879 B649 4245 D46A $ gpg --verify gradm-2.9.1-201308021745.tar.gz.sig gpg: Signature made Fri 02 Aug 2013 02:45:37 PM PDT using DSA key ID 4245D46A gpg: Good signature from "Bradley Spengler (spender) <spender@grsecurity.net>" gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 9F74 393D 7E7F FF3C 6500 E778 9879 B649 4245 D46A
如下是簽名驗證失敗的案例。 修補程序文件是故意修改的,以便驗證失敗。加密
$ gpg --verify grsecurity-2.9.1-3.2.50-201308052151.patch.sig gpg: Signature made Mon 05 Aug 2013 06:55:44 PM PDT using DSA key ID 4245D46A gpg: BAD signature from "Bradley Spengler (spender) <spender@grsecurity.net>"