mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 18:08:51 +08:00 
			
		
		
		
	vendor latest containers/common
We had a couple of regressions in containers/common in the last release. Before cutting a new release, let's vendor it here. Since 3.0 has been branched, we can vendor a non-release commit of c/common. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
		
							
								
								
									
										7
									
								
								vendor/github.com/containers/common/pkg/parse/parse.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/containers/common/pkg/parse/parse.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -13,7 +13,7 @@ import ( | ||||
|  | ||||
| // ValidateVolumeOpts validates a volume's options | ||||
| func ValidateVolumeOpts(options []string) ([]string, error) { | ||||
| 	var foundRootPropagation, foundRWRO, foundLabelChange, bindType, foundExec, foundDev, foundSuid int | ||||
| 	var foundRootPropagation, foundRWRO, foundLabelChange, bindType, foundExec, foundDev, foundSuid, foundChown int | ||||
| 	finalOpts := make([]string, 0, len(options)) | ||||
| 	for _, opt := range options { | ||||
| 		switch opt { | ||||
| @ -42,6 +42,11 @@ func ValidateVolumeOpts(options []string) ([]string, error) { | ||||
| 			if foundLabelChange > 1 { | ||||
| 				return nil, errors.Errorf("invalid options %q, can only specify 1 'z', 'Z', or 'O' option", strings.Join(options, ", ")) | ||||
| 			} | ||||
| 		case "U": | ||||
| 			foundChown++ | ||||
| 			if foundChown > 1 { | ||||
| 				return nil, errors.Errorf("invalid options %q, can only specify 1 'U' option", strings.Join(options, ", ")) | ||||
| 			} | ||||
| 		case "private", "rprivate", "shared", "rshared", "slave", "rslave", "unbindable", "runbindable": | ||||
| 			foundRootPropagation++ | ||||
| 			if foundRootPropagation > 1 { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Valentin Rothberg
					Valentin Rothberg