---
title: 使用Linux自带的ASLR功能
description: "说明：ASLR全称Address Space Layout Randomization，开启后能增强漏洞攻击防护能力。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_0019.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_0019.html
indexId: 065718fa975bb824334a20eb96eb39fbcfee69d466994c8cf199abd72029f45a61
---
# 使用Linux自带的ASLR功能

说明：ASLR全称Address Space Layout Randomization，开启后能增强漏洞攻击防护能力。

实施指导：在“/proc/sys/kernel/randomize_va_space”文件中写入“2”。
