关于Linux 内核 < 2.6.36.2 特权提升漏洞源码
去年就公布的漏洞,本人在linux虚拟机上用gcc编译测试,为何会出现以下错误
half-nelson.c:86:21: warning: extra tokens at end of #include directive
half-nelson.c: In function `get_kstack':
half-nelson.c:191: `MAP_32BIT' undeclared (first use in this function)
half-nelson.c:191: (Each undeclared identifier is reported only once
half-nelson.c:191: for each function it appears in.)
half-nelson.c: In function `do_parent':
half-nelson.c:381: `__NR_restart_syscall' undeclared (first use in this function)
half-nelson.c: In function `do_child_upper':
half-nelson.c:396: `IOVS' undeclared (first use in this function)
half-nelson.c:522:2: warning: no newline at end of file 本帖最后由 wjtvbm 于 2012-03-20 00:07 编辑
你看一下你的86行....
本來是#include <net/if.h> #define IOVS 446應該是#include <net/if.h>
#define IOVS 446你对安全有兴趣吗?
有机会可以讨论一下 这个攻击的代码是在x86的64位系统上的;
man手册中MAP_32BIT说明:
MAP_32BIT
Put the mapping into the first 2GB of the process address space.Ignored when MAP_FIXED
is set.This flag is currently only supported on x86-64 for 64bit programs.
页:
[1]