lvs fullnat部署手册(四)相关配置篇

1、内核提权
centos

   因为目前fullnat用的内核是2.6.32-220.23.1.e16这个版本。最近存在内核提权的漏洞。此次受影响的存在于centos6中除了6.5的全部系统。
bash

   乌云上已经公布了http://zone.wooyun.org/content/3733ide

   解决的办法是:ci

sysctl kernel.perf_event_paranoid=2
       并写到/etc/sysctl.conf

   关于kernel.perf_event_paranoid:rem

kernel.perf_event_paranoid = 2: you can't take any measurements. The perf utility might still be useful to analyse existing records with perf ls, perf report, perf timechart or perf trace.
kernel.perf_event_paranoid = 1: you can trace a command with perf stat or perf record, and get kernel profiling data.
kernel.perf_event_paranoid = 0: you can trace a command with perf stat or perf record, and get CPU event data.
kernel.perf_event_paranoid = -1: you get raw access to kernel tracepoints (specifically, you can mmap the file created by perf_event_open, I don't know what the implications are).


   若是想直接打到内核中,修改kernel/events/core.c,找到int sysctl_perf_event_paranoid在最后改为2。而后搭乘patch,作成内核rpm包get


2、待续it

相关文章
相关标签/搜索