Skip to content

NixOS must be configured to limit the number of concurrent sessions to ten for all accounts and/or account types.

An XCCDF Rule

Description

Operating system management includes the ability to control the number of users and user sessions that use an operating system. Limiting the number of allowed users and sessions per user is helpful in reducing the risks related to denial-of-service (DoS) attacks. This requirement addresses concurrent sessions for information system accounts and does not address concurrent sessions by single users via multiple system accounts. The maximum number of concurrent sessions should be defined based upon mission needs and the operational environment for each system.

ID
SV-268085r1039143_rule
Version
ANIX-00-000090
Severity
Low
References
Updated

Remediation Templates

A Manual Procedure

Configure the NixOS to limit the number of concurrent sessions to ten for all accounts and/or account types.

Add the following to the NixOS configuration: /etc/nixos/configuration.nix

security.pam.loginLimits = [
 {