Networking NVIDIA NVOS User Manual for InfiniBand Switches

Security Commands

Integrity Measurement Architecture (IMA)

nv show system security ima

 

nv show system security ima

Shows the IMA boot policy state.

Syntax Description

N/A

Default

state: disabled

History

25.03.0724

Example

admin@nvos:~$ nv show system security ima
                operational    applied
                -----------    -------
state           disabled       enabled

REST API

GET https://<ip>/nvue_v1/system/security/ima

Related Commands

nv set system security ima state
nv action upload system security ima measurements

Notes

After you change the IMA state, the operational state matches the applied state only after a system reboot.

 nv set system security ima state

 

nv set system security ima state <enabled | disabled>
Enables or disables full IMA policy enforcement at boot.

Syntax Description

state

enabled, disabled

Default

disabled

History

25.03.0724

Example

admin@nvos:~$ nv set system security ima state enabled

admin@nvos:~$ nv config apply
Applied.

REST API

PATCH https://<ip>/nvue_v1/system/security/ima

Related Commands

nv show system security ima
nv unset system security ima

Notes

When IMA is enabled, the switch applies additional IMA measurement rules at boot (MMAP_CHECK, BPRM_CHECK, FIRMWARE_CHECK, KEXEC_INITRAMFS_CHECK, KEXEC_CMDLINE). The change takes effect after a system reboot.

nv unset system security ima

 

nv unset system security ima
Clears the IMA configuration and restores the default state (disabled).

Syntax Description

N/A

Default

N/A

History

25.03.0724

Example

admin@nvos:~$ nv unset system security ima

REST API

DELETE https://<ip>/nvue_v1/system/security/ima

Related Commands

nv show system security ima
nv set system security ima state

Notes

The change takes effect after a system reboot.

 nv action upload system security ima measurements

 

nv action upload system security ima measurements <remote-url>

Uploads the IMA runtime measurements to a remote server.

Syntax Description

remote-url

Remote URL (FTP, SCP, or SFTP). For example, scp://<username>:<password>@<hostname>/<path>/

Default

N/A

History

25.03.0724

Example

admin@nvos:~$ nv action upload system security ima measurements scp://my_user:my_password@hostname/dir/

Action executing ...
Action succeeded

REST API

POST https://<ip>/nvue_v1/system/security/ima/measurements

Related Commands

nv show system security ima

Notes

Exports the contents of binary_runtime_measurements from the kernel securityfs interface. If you omit the password from the URL, the switch prompts for it.


Last updated: