You've already forked woodpecker
							
							
				mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-30 23:27:39 +02:00 
			
		
		
		
	add in validation for shm size, run go fmt on util.go
This commit is contained in:
		| @@ -51,6 +51,9 @@ func CheckTrusted(c *yaml.Container) error { | ||||
| 	if c.Privileged { | ||||
| 		return fmt.Errorf("Insufficient privileges to use privileged mode") | ||||
| 	} | ||||
| 	if c.ShmSize != 0 { | ||||
| 		return fmt.Errorf("Insufficient privileges to override shm_size") | ||||
| 	} | ||||
| 	if len(c.DNS) != 0 { | ||||
| 		return fmt.Errorf("Insufficient privileges to use custom dns") | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user