tech:pb_docker_rhel_centos_5_et_6
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:pb_docker_rhel_centos_5_et_6 [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:pb_docker_rhel_centos_5_et_6 [2025/10/23 10:22] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag>Pb RedHat Docker Kernel Sécurité Syscall}} | ||
| + | |||
| + | |||
| + | # Pb Docker RHEL CentOS 5 et 6 | ||
| + | |||
| + | Voir : | ||
| + | * [[Kernel Linux syscall]] | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | ~~~ | ||
| + | $ docker run --rm -ti centos: | ||
| + | [139] $ | ||
| + | |||
| + | $ docker run --rm -ti centos: | ||
| + | [139] $ | ||
| + | ~~~ | ||
| + | |||
| + | Impossible de lancer la plupart des commandes. Code de retour d' | ||
| + | |||
| + | ## Solution | ||
| + | |||
| + | Sur le hôte passer au Kernel Linux l' | ||
| + | ~~~bash | ||
| + | vsyscall=emulate | ||
| + | ~~~ | ||
| + | |||
| + | Source : | ||
| + | https:// | ||
| + | |||
| + | La version de la glibc est trop ancienne et utilise dans anciens appels système !? | ||
| + | |||
| + | |||
| + | |||
| + | Exécutez la commande suivante pour vérifier que votre système a désactivé vsyscall: | ||
| + | ~~~bash | ||
| + | cat / | ||
| + | ~~~ | ||
| + | |||
| + | La sortie sera semblable à ce qui suit: | ||
| + | ~~~ | ||
| + | 7fffccfcc000-7fffccfce000 r-xp 00000000 00:00 0 [vdso] | ||
| + | ~~~ | ||
| + | |||
| + | ou à celui-ci: | ||
| + | ~~~ | ||
| + | 7fffe03fe000-7fffe0400000 r-xp 00000000 00:00 0 [vdso] | ||
| + | ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] | ||
| + | ~~~ | ||
| + | |||
| + | https:// | ||
| + | ~~~ | ||
| + | vsyscall= [X86-64, | ||
| + | Controls the behavior of vsyscalls (i.e. calls to | ||
| + | fixed addresses of 0xffffffffff600x00 from legacy | ||
| + | code). | ||
| + | versions of glibc use these calls. | ||
| + | functions are at fixed addresses, they make nice | ||
| + | targets for exploits that can control RIP. | ||
| + | |||
| + | emulate | ||
| + | reasonably safely. | ||
| + | readable. | ||
| + | |||
| + | xonly | ||
| + | emulated reasonably safely. | ||
| + | page is not readable. | ||
| + | |||
| + | none | ||
| + | them quite hard to use for exploits but | ||
| + | might break your system. | ||
| + | ~~~ | ||
| + | |||
| + | |||
