-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If `authselect` doesn't exist and no entry for group + control + module is present in `/etc/pam.d/system-auth` the Bash remediation inserted square brackets with backslashes to `system-auth`. The backslashes shouldn't be inserted there. The issue manifested when the Bash remediation is used during a build of a bootable container image. The solution is to escape the control string only if it's a part of a regular expression (in `sed` and `grep` commands) but not escape the control string if it's used in `echo` command.
- Loading branch information
Showing
4 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...rvices/sssd/sssd_enable_smartcards/tests/sssd_parameter_missing_remove_authselect.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# packages = sssd | ||
rm -rf /usr/bin/authselect | ||
SSSD_FILE="/etc/sssd/sssd.conf" | ||
rm -f $SSSD_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters