Lors de la reconfiguration des locales d'environnements, je me suis rendu compte que localedef etait tué par le Noyau patché avec Grsecurity.
Ce serait la faute de PAX :
PAX: From 192.168.0.1: terminating task: /usr/bin/localedef(localedef):16081, \
uid/euid: 0/0, EIP: 5F419488, ESP: 5F419350
PAX: bytes at EIP: b9 fc 99 41 5f e9 72 97 c5 a8 00 00 ac 42 08 08 30 bb 13 08
Ni une, ni deux, je récupère chpax sur http://pageexec.virtualave.net/ et enlève tous les bits de protection sur /usr/bin/locatedef.
Voici le résultat final :
plop:~# ./chpax -v /usr/bin/localedef ----[ chpax 0.5 : Current flags for /usr/bin/localedef (pemrxs) ]---- * Paging based PAGE_EXEC : disabled * Trampolines : not emulated * mprotect() : not restricted * mmap() base : not randomized * ET_EXEC base : not randomized * Segmentation based PAGE_EXEC : disabled
Et plus aucun problème ! Niveau sécurité, je ne pense pas y perdre beaucoup.