Skip to content

systctl-33 doesn't see nx flag #65

@rjhornsby

Description

@rjhornsby

sysctl-33 appears to have been broken by commit 085b428.

The change from assignment_re to assignment_regex appears to have made it stop recognizing the presence of the nx flag, causing the test to fail.

  ×  sysctl-33: CPU No execution Flag or Kernel ExecShield (1 failed)
     ×  /proc/cpuinfo Flags should include NX
     expected [] to include "nx"
     ✔  Kernel Parameter kernel.exec-shield value should eq 1

This is what the flags string looks like on a sample CentOS 6 host:

$ grep nx /proc/cpuinfo
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc up rep_good xtopology nonstop_tsc pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx rdrand lahf_lm abm

Edit: For clarity, this might be a change that's related to the inspec version? We're currently on chefdk 1.2.22, which ships with inspec 1.11.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions