You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds three new utility functions to avocado.utils.linux for
managing kernel lockdown security feature:
1. is_kernel_lockdown_enabled(): Check current lockdown state
- Returns tuple of (mode, is_enabled)
- Supports none, integrity, and confidentiality modes
- Handles cases where lockdown feature is unavailable
2. enable_kernel_lockdown_integrity(): Enable integrity mode
- Prevents kernel modification
- Verifies mode change via sysfs
- Validates dmesg for lockdown message
3. enable_kernel_lockdown_confidentiality(): Enable confidentiality mode
- Most restrictive mode (prevents modification and data exposure)
- Verifies mode change via sysfs
- Validates dmesg for lockdown message
All functions follow PEP 8 standards and include comprehensive docstrings.
Lockdown mode transitions are one-way at runtime and require reboot to
downgrade.
Signed-off-by: Maram Srimannarayana Murthy <msmurthy@linux.vnet.ibm.com>
0 commit comments