Fix the regex
Fixed the regex checking for config files containing AllowUnauthenticated
in apt config directory
Change-Id: I5422e1cfd0c532cd16d060c3ac384a2ca7ffbef3
(cherry picked from commit b840612551)
			
			
This commit is contained in:
		
				
					committed by
					
						
						Jesse Pretorius (odyssey4me)
					
				
			
			
				
	
			
			
			
						parent
						
							9b820be289
						
					
				
				
					commit
					a6785964af
				
			@@ -49,7 +49,7 @@
 | 
			
		||||
# and remediation.
 | 
			
		||||
#
 | 
			
		||||
- name: Search for AllowUnauthenticated in /etc/apt/apt.conf.d/ (for V-38462)
 | 
			
		||||
  command: grep -r AllowUnauthenticated /etc/apt/apt.conf.d/
 | 
			
		||||
  command: grep -r '^[^#].*AllowUnauthenticated \"true\"' /etc/apt/apt.conf.d/
 | 
			
		||||
  register: v38462_result
 | 
			
		||||
  changed_when: False
 | 
			
		||||
  failed_when: False
 | 
			
		||||
 
 | 
			
		||||
@@ -63,7 +63,7 @@
 | 
			
		||||
 | 
			
		||||
# See the documentation for RHEL-07-020150 for more details on this check.
 | 
			
		||||
- name: Search for AllowUnauthenticated in /etc/apt/apt.conf.d/
 | 
			
		||||
  command: grep -r AllowUnauthenticated /etc/apt/apt.conf.d/
 | 
			
		||||
  command: grep -r '^[^#].*AllowUnauthenticated \"true\"' /etc/apt/apt.conf.d/
 | 
			
		||||
  register: gpgcheck_result
 | 
			
		||||
  changed_when: False
 | 
			
		||||
  failed_when: False
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user