SV-216206r603268_rule
V-216206
SRG-OS-000480
SOL-11.1-080020
CAT II
10
The root role is required.
Determine the OS version you are currently securing.
# uname –v
If the OS version is 11.3 or newer, enable non-executable program stacks using the "sxadm" command.
# pfexec sxadm enable nxstack
For Solaris 11, 11.1, and 11.2, this action applies to the global zone only and the "/etc/system" file is updated. Determine the zone that you are currently securing.
# zonename
If the command output is "global", modify the "/etc/system" file.
# pfedit /etc/system
add the line:
set noexec_user_stack=1
Solaris 11, 11.1, and 11.2 systems will need to be restarted for the setting to take effect.
Determine the OS version you are currently securing.
# uname –v
If the OS version is 11.3 or newer, this check applies to all zones and relies on the "sxadm" command. Determine if the system implements non-executable program stacks.
# sxadm status -p nxstack | cut -d: -f2
enabled (all)
If the command output is not "enabled (all)", this is a finding.
For Solaris 11, 11.1, and 11.2, this check applies to the global zone only and the "/etc/system" file is inspected. Determine the zone that you are currently securing.
# zonename
If the command output is "global", determine if the system implements non-executable program stacks.
# grep noexec_user_stack /etc/system
If the noexec_user_stack is not set to 1, this is a finding.
V-216206
False
SOL-11.1-080020
Determine the OS version you are currently securing.
# uname –v
If the OS version is 11.3 or newer, this check applies to all zones and relies on the "sxadm" command. Determine if the system implements non-executable program stacks.
# sxadm status -p nxstack | cut -d: -f2
enabled (all)
If the command output is not "enabled (all)", this is a finding.
For Solaris 11, 11.1, and 11.2, this check applies to the global zone only and the "/etc/system" file is inspected. Determine the zone that you are currently securing.
# zonename
If the command output is "global", determine if the system implements non-executable program stacks.
# grep noexec_user_stack /etc/system
If the noexec_user_stack is not set to 1, this is a finding.
M
4021