-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/pam: assemble rules from modular configuration #255547
Commits on Sep 24, 2023
-
Makes the rules more uniform in structure and style. This makes it easier to automate subsequent commits. No behavior changes.
Configuration menu - View commit details
-
Copy full SHA for dd45897 - Browse repository at this point
Copy the full SHA dd45897View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f9d719 - Browse repository at this point
Copy the full SHA 0f9d719View commit details
Commits on Oct 10, 2023
-
nixos/pam: extract header comments
Unblocks converting the rules from one big string to a rich data structure.
Configuration menu - View commit details
-
Copy full SHA for d6bb805 - Browse repository at this point
Copy the full SHA d6bb805View commit details -
nixos/pam: automatically populate rule type
Eliminates a redundancy between the 'rules' suboptions and the type specified in each rule. We eventually want to give each rule a name so that we can merge config overrides. The PAM name is a natural choice for rule name, but a PAM is often used in multiple rule types. Organizing rules by type and rule name avoids name collisions.
Configuration menu - View commit details
-
Copy full SHA for 3c85d15 - Browse repository at this point
Copy the full SHA 3c85d15View commit details -
nixos/pam: define rules as submodules
Allows us to decompose rules into multiple fields that we later format as textual rules. Eventually allows users to override individual fields.
Configuration menu - View commit details
-
Copy full SHA for fbd7427 - Browse repository at this point
Copy the full SHA fbd7427View commit details -
nixos/pam: give each rule a name
These names are internal identifiers. They will be used as keys so that users can reconfigure rules by merging a rule config with the same name. The name is arbitrary. The built-in rules are named after the PAM where practical.
Configuration menu - View commit details
-
Copy full SHA for 0563e0a - Browse repository at this point
Copy the full SHA 0563e0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25bc21f - Browse repository at this point
Copy the full SHA 25bc21fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12a488e - Browse repository at this point
Copy the full SHA 12a488eView commit details -
Module arguments have common escaping rules for all PAMs.
Configuration menu - View commit details
-
Copy full SHA for 6eea7fb - Browse repository at this point
Copy the full SHA 6eea7fbView commit details
Commits on Oct 11, 2023
-
nixos/pam: add settings option for common argument styles
Adds easily overrideable settings for the most common PAM argument styles. These are: - Flag (e.g. "use_first_pass"): rendered for true boolean values. false values are ignored. - Key-value (e.g. "action=validate"): rendered for non-null, non-boolean values. Most PAM arguments can be configured this way. Others can still be configured with the 'args' option.
Configuration menu - View commit details
-
Copy full SHA for 5b8439f - Browse repository at this point
Copy the full SHA 5b8439fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e86487e - Browse repository at this point
Copy the full SHA e86487eView commit details -
nixos/pam: convert rules to attrs, add order field
Makes it possible to override properties of a rule by name. Introduces an 'order' field that can be overridden to change the sequence of rules. For now, the order value for each built-in rule is derived from its place in the hardcoded list of rules.
Configuration menu - View commit details
-
Copy full SHA for 077cdcc - Browse repository at this point
Copy the full SHA 077cdccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43f7cb4 - Browse repository at this point
Copy the full SHA 43f7cb4View commit details -
nixos/pam: generate apparmor includes from rules
Removes redundant config from the module. Fixes a bug where some modules (e.g. ussh) were added to apparmor even though they had no rules enabled.
Configuration menu - View commit details
-
Copy full SHA for e712b6e - Browse repository at this point
Copy the full SHA e712b6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d6e6e1 - Browse repository at this point
Copy the full SHA 9d6e6e1View commit details