# Kernel + grsecurity dans les dépôts !

**URL:** <https://www.debian-fr.org/t/kernel-grsecurity-dans-les-depots/71308>\
**Category:** Trucs et Astuces\
**Created:** [Octobre 12, 2016, 1:58 UTC](https://www.debian-fr.org/t/kernel-grsecurity-dans-les-depots/71308 "2016-10-12T13:58:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PengouinPdt](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pengouinpdt/32/3978_2.png) [@PengouinPdt](https://www.debian-fr.org/u/PengouinPdt)\
**Post date:** [Octobre 12, 2016, 1:58 UTC](https://www.debian-fr.org/t/kernel-grsecurity-dans-les-depots/71308/1 "2016-10-12T13:58:36Z")

</div>

Le patch **grsecurity** apporte des **améliorations de sécurité dans le noyau Linux**. Cela permet de durcir le noyau, contre des attaques différentes.

À ce jour, il existe une initiative menée par Yves-Alexis Perez pour simplifier son installation, et son intégration au sein de Debian. Lors du SSTIC, il a écrit un document “**[Noyaux Linux durcis](https://www.sstic.org/media/SSTIC2016/SSTIC-actes/noyaux_linux_durcis/SSTIC2016-Article-noyaux_linux_durcis-perez.pdf)**” montrant l’implication au sein du projet Debian … entres autres …

Hormis le fait de proposer une “preuve de concept” grâce à son outil ‘grsec-config’, il maintient l’intégration de grsecurity par la proposition des kernels “patchés” dans les dépôts Sid et Jessie Backports.

Il est possible de suivre son [actualité Debian](http://corsac.net/?cat=3) …

* * *

Pour Sid :

- 64 bits : `apt install linux-image-grsec-amd64`
- 32 bits : `apt install linux-image-grsec-i686-pae`

* * *

Pour Jessie, il faut activer les dépôts backports :

- 64 bits : `apt install -t jessie-backports linux-headers-grsec-amd64 linux-image-grsec-amd64`
- 32 bits : `apt install -t jessie-backports linux-headers-grsec-686-pae linux-image-grsec-686-pae`

_En effet, pour Jessie, il est nécessaire, à ce jour, de mettre-à-jour le paquet linux-base en version 3.5 pour Jessie, et en version 4.3 dans les backports … autrement les paquets linux-\*-grsec\* ne peuvent s’installer_

* * *

Pensez à redémarrer …

Il est possible de modifier certains paramètres au-travers du fichier /etc/sysctl.d/grsec.conf - mais renseignez-vous avant !

* * *

Des erreurs possibles :

Si lors de l’installation, vous avez ces messages :

- **Bad return status for module** :

> /etc/kernel/postinst.d/dkms:  
> Error! Bad return status for module build on kernel: 4.7.0-1-grsec-amd64 (x86\_64)  
> Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.  
> Error! Bad return status for module build on kernel: 4.7.0-1-grsec-amd64 (x86\_64)  
> Consult /var/lib/dkms/broadcom-sta/6.30.223.248/build/make.log for more information.

**Dommage grsecurity ne gèrent pas ces modules** … En fait, il gère très peu de module - tel que ceux d’Intel.

* * *

- **kernel headers not found** :

```auto
/etc/kernel/postinst.d/dkms:
Error! Error! Your kernel headers for kernel 4.7.0-1-grsec-amd64 cannot be found.
Please install the linux-headers-4.7.0-1-grsec-amd64 package,
or use the --kernelsourcedir option to tell DKMS where it's located
Your kernel headers for kernel 4.7.0-1-grsec-amd64 cannot be found.
Please install the linux-headers-4.7.0-1-grsec-amd64 package,
or use the --kernelsourcedir option to tell DKMS where it's located

```

Comme il est annoncé, pensez à **installer le paquet “linux-headers-grsec” correspondant à votre architecture**!

---

<div class="post-metadata">

**Author:** ![jcsm33](https://www.debian-fr.org/user_avatar/www.debian-fr.org/jcsm33/32/3832_2.png) [@jcsm33](https://www.debian-fr.org/u/jcsm33)\
**Post date:** [Mai 3, 2017, 5:05 UTC](https://www.debian-fr.org/t/kernel-grsecurity-dans-les-depots/71308/2 "2017-05-03T17:05:23Z")

</div>

Bonjour,

Ça restera valable dans stretch qui a la version 4.9 du noyau mais au-delà, mystère, étant donné l’annonce faite récemment par Brad Spengler & The PaX Team.

[grsecurity - Passing the Baton](https://grsecurity.net/passing_the_baton.php)

> [@](#):
>
> Today we are handing over future maintenance of grsecurity test patches to the community. This makes grsecurity for Linux 4.9 the last version Open Source Security Inc. will release to non-subscribers.

Cela dit, debian fait peut-être partie des abonnés.

---

<div class="post-metadata">

**Author:** ![PengouinPdt](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pengouinpdt/32/3978_2.png) [@PengouinPdt](https://www.debian-fr.org/u/PengouinPdt)\
**Post date:** [Mai 3, 2017, 5:47 UTC](https://www.debian-fr.org/t/kernel-grsecurity-dans-les-depots/71308/3 "2017-05-03T17:47:46Z")

</div>

/dev/null \< cette histoire ni +, ni - !
