# Check if NX/XD support is enabled.

**URL:** <https://forums.suse.com/t/check-if-nx-xd-support-is-enabled/30183>\
**Category:** SLES Configure-Administer\
**Created:** [August 16, 2017, 9:15pm UTC](https://forums.suse.com/t/check-if-nx-xd-support-is-enabled/30183 "2017-08-16T21:15:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmlutz](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jmlutz](https://forums.suse.com/u/jmlutz)\
**Post date:** [August 16, 2017, 9:15pm UTC](https://forums.suse.com/t/check-if-nx-xd-support-is-enabled/30183/1 "2017-08-16T21:15:19Z")

</div>

Hi. We are using the CIS Benchmarck for SLES 12 for our lockdown. The 1.5.2 control has one check to see if NX/XD support is enabled by running the following command.

`# dmesg | grep NX
NX (Execute Disable) protection: active
`

This works fine, except if the dmesg log fills up and NX protection line rotates off the log. Is there an alternative way one can use to show NX is enabled?

I know it’s on by default on 64-bit kernels, but due to audits, we must have a way to show that it is enabled. Thank you.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 16, 2017, 11:05pm UTC](https://forums.suse.com/t/check-if-nx-xd-support-is-enabled/30183/2 "2017-08-16T23:05:39Z")

</div>

Hi and welcome to the forum 🙂  
Perhaps save the boot log…? Or configure the journal to stay on disk for the boot logs…

```auto
journalctl --list-boots

journalctl -b --no-pager |grep "NX ("
Aug 15 18:54:26 fozzie-bear kernel: NX (Execute Disable) protection: active

grep nx /proc/cpuinfo
```

Since it only appears at boot, if it goes, the only thing you can do is a reboot ☹ Seems to be a no win type of thing…

---

<div class="post-metadata">

**Author:** ![jmlutz](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jmlutz](https://forums.suse.com/u/jmlutz)\
**Post date:** [August 17, 2017, 7:01pm UTC](https://forums.suse.com/t/check-if-nx-xd-support-is-enabled/30183/3 "2017-08-17T19:01:20Z")

</div>

I think using…

```auto
journalctl -b --no-pager |grep "NX ("
```

…seems to be the best method for showing what the control is looking for. It matches what using dmesg would show and the entry is still there while the dmesg log entry is gone. Thank you for the quick response!
