禁用,只为自己重新启用的地址空间布局随机化 [英] Disable and re-enable address space layout randomization only for myself

查看:429
本文介绍了禁用,只为自己重新启用的地址空间布局随机化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的系统上禁用地址空间布局随机化(ASLR)(Ubuntu的GNU / Linux的2.6.32-41服务器),但是,如果我用

I would like to disable address space layout randomization (ASLR) on my system (Ubuntu Gnu/Linux 2.6.32-41-server), but, if I use

sysctl -w kernel.randomize_va_space=0

改变会影响系统上的所有用户,我presume。 (这是真的吗?)我怎么能只限制,或仅在其中我调用命令禁用shell会话禁用ASLR对自己作为用户的影响?

the change would affect all users on the system, I presume. (Is this true?) How can I limit the effects of disabling ASLR to myself as a user only, or only to the shell session in which I invoke the command to disable?

顺便说一句,我看到我的系统当前的(默认)设置为

BTW, I see that my system's current (default) setting is

sysctl -w kernel.randomize_va_space=0

为什么2并且不1或3?我在哪里可以找到有关的/ proc / sys中的设置,其范围的数值,以及它们的含义文档?谢谢!

Why 2 and not 1 or 3? Where can I find documentation about the numerical values of /proc/sys settings, their ranges, and their meanings? Thanks!

推荐答案

有关文档的 randomize_va_space 的sysctl 设置为 文档/ sysctl的/ kernel.txt 在内核源​​代码树。基本上,

The documentation for the randomize_va_space sysctl setting is in Documentation/sysctl/kernel.txt in the kernel source tree. Basically,

0 - 关闭进程的地址空间随机化了。

0 - Turn the process address space randomization off.

1 - 使MMAP基地的地址,栈和VDSO页随机

1 - Make the addresses of mmap base, stack and VDSO page randomized.

2 - 另外启用堆随机

2 - Additionally enable heap randomization.

这篇关于禁用,只为自己重新启用的地址空间布局随机化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆