get_hardening() through napalm-device-types' HardeningMixin (4.48.0, NAPALM/napalm-device-types branch feature/hardening-reading), for NetOrk/netork#2706.
_run_hardening_command(command, *, privileged) runs the shared, read-only command on an exec channel, because aa-status --json prints one line longer than the PTY holds reliably. It runs as root first for AppArmor's profiles, and as the login user where root is refused. OpenMediaVault and QNAP get it through LinuxDriver.
Requires napalm-device-types>=4.48.0. CI stays red until 4.48.0 is released and on the runner's index (about 25 minutes after the tag). That is expected.
Tested: TestGetHardening in tests/test_linux.py, covering the exec channel as root and the fallback when root is refused. Full suite green locally against the device-types branch (469 passed), ruff and mypy clean.
`get_hardening()` through napalm-device-types' `HardeningMixin` (4.48.0, NAPALM/napalm-device-types branch `feature/hardening-reading`), for NetOrk/netork#2706.
`_run_hardening_command(command, *, privileged)` runs the shared, read-only command on an exec channel, because `aa-status --json` prints one line longer than the PTY holds reliably. It runs as root first for AppArmor's profiles, and as the login user where root is refused. OpenMediaVault and QNAP get it through `LinuxDriver`.
Requires `napalm-device-types>=4.48.0`. **CI stays red until 4.48.0 is released and on the runner's index (about 25 minutes after the tag).** That is expected.
Tested: `TestGetHardening` in `tests/test_linux.py`, covering the exec channel as root and the fallback when root is refused. Full suite green locally against the device-types branch (469 passed), ruff and mypy clean.
The transport runs the shared, read-only command on an exec channel, as root
first for AppArmor's profiles and as the login user where root is refused.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
get_hardening()through napalm-device-types'HardeningMixin(4.48.0, NAPALM/napalm-device-types branchfeature/hardening-reading), for NetOrk/netork#2706._run_hardening_command(command, *, privileged)runs the shared, read-only command on an exec channel, becauseaa-status --jsonprints one line longer than the PTY holds reliably. It runs as root first for AppArmor's profiles, and as the login user where root is refused. OpenMediaVault and QNAP get it throughLinuxDriver.Requires
napalm-device-types>=4.48.0. CI stays red until 4.48.0 is released and on the runner's index (about 25 minutes after the tag). That is expected.Tested:
TestGetHardeningintests/test_linux.py, covering the exec channel as root and the fallback when root is refused. Full suite green locally against the device-types branch (469 passed), ruff and mypy clean.