83c4f8b767 
							
						 
					 
					
						
						
							
							test/sandbox: check extra writable paths  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Hakurei (push) Successful in 48s 
				
			 
		
			
				
	Test / Create distribution (push) Successful in 39s 
				
			 
		
			
				
	Test / Hakurei (race detector) (push) Successful in 49s 
				
			 
		
			
				
	Test / Hpkg (push) Successful in 47s 
				
			 
		
			
				
	Test / Sandbox (push) Successful in 1m52s 
				
			 
		
			
				
	Test / Sandbox (race detector) (push) Successful in 2m54s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 1m21s 
				
			 
		
		
	 
 
	 
						
						This is not always obvious from mountinfo.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-09-14 15:12:51 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							ca247b8037 
							
						 
					 
					
						
						
							
							internal/app: mount /dev/shm early  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 38s 
				
			 
		
			
				
	Test / Hakurei (race detector) (push) Successful in 49s 
				
			 
		
			
				
	Test / Hpkg (push) Successful in 47s 
				
			 
		
			
				
	Test / Sandbox (push) Successful in 1m40s 
				
			 
		
			
				
	Test / Sandbox (race detector) (push) Successful in 2m10s 
				
			 
		
			
				
	Test / Hakurei (push) Successful in 2m15s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 1m30s 
				
			 
		
		
	 
 
	 
						
						This avoids covering /dev/shm mounts from hst.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-09-14 01:49:42 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							83a1c75f1a 
							
						 
					 
					
						
						
							
							app: set up acl on X11 socket  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 33s 
				
			 
		
			
				
	Test / Sandbox (push) Successful in 2m9s 
				
			 
		
			
				
	Test / Hakurei (push) Successful in 3m22s 
				
			 
		
			
				
	Test / Sandbox (race detector) (push) Successful in 4m26s 
				
			 
		
			
				
	Test / Hpkg (push) Successful in 4m25s 
				
			 
		
			
				
	Test / Hakurei (race detector) (push) Successful in 43s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 1m38s 
				
			 
		
		
	 
 
	 
						
						The socket is typically owned by the priv-user, and inaccessible by the target user, so just allowing access to the directory is not enough. This change fixes this oversight and add checks that will also be useful for merging #1 .
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-08-18 11:30:58 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							e574042d76 
							
						 
					 
					
						
						
							
							test/sandbox: verify seccomp on all test cases  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Hakurei (push) Successful in 42s 
				
			 
		
			
				
	Test / Sandbox (push) Successful in 39s 
				
			 
		
			
				
	Test / Hakurei (race detector) (push) Successful in 41s 
				
			 
		
			
				
	Test / Create distribution (push) Successful in 33s 
				
			 
		
			
				
	Test / Sandbox (race detector) (push) Successful in 39s 
				
			 
		
			
				
	Test / Planterette (push) Successful in 41s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 1m17s 
				
			 
		
		
	 
 
	 
						
						This change also makes seccomp hashes cross-platform.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-07-09 04:21:35 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							2b44493e8a 
							
						 
					 
					
						
						
							
							test/sandbox: guard on testtool tag  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Hakurei (push) Successful in 40s 
				
			 
		
			
				
	Test / Create distribution (push) Successful in 31s 
				
			 
		
			
				
	Test / Hakurei (race detector) (push) Successful in 41s 
				
			 
		
			
				
	Test / Planterette (push) Successful in 40s 
				
			 
		
			
				
	Test / Sandbox (push) Successful in 1m30s 
				
			 
		
			
				
	Test / Sandbox (race detector) (push) Successful in 1m43s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 1m11s 
				
			 
		
		
	 
 
	 
						
						This tool should not show up when building hakurei normally.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-07-07 20:11:29 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							f772940768 
							
						 
					 
					
						
						
							
							test/sandbox: treat ESRCH as temporary failure  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 25s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 33s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m30s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m13s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 52s 
				
			 
		
		
	 
 
	 
						
						This is an ugly fix that makes various assumptions guaranteed to hold true in the testing vm. The test package is filtered by the build system so some ugliness is tolerable here.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-30 03:50:59 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							8886c40974 
							
						 
					 
					
						
						
							
							test/sandbox: separate check filter  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 34s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m29s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m12s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 54s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-30 02:15:08 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							ff3cfbb437 
							
						 
					 
					
						
						
							
							test/sandbox: check seccomp outcome  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 25s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 33s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m27s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m15s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 56s 
				
			 
		
		
	 
 
	 
						
						This is as ugly as it is because it has to have CAP_SYS_ADMIN and not be in seccomp mode.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-28 02:24:27 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							660a2898dc 
							
						 
					 
					
						
						
							
							test/sandbox/ptrace: dump seccomp bpf program  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 34s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m21s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m4s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 55s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-28 01:35:56 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							f8502c3ece 
							
						 
					 
					
						
						
							
							test/sandbox: check environment  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 19s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 34s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 41s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 41s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 56s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-27 03:16:33 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							996b42634d 
							
						 
					 
					
						
						
							
							test/sandbox: invoke check program directly  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 34s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 40s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 2m47s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 1m4s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-27 03:11:50 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							3dd4ff29c8 
							
						 
					 
					
						
						
							
							test/sandbox: check mount table length  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 37s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m20s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 2m51s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 1m0s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-24 16:36:53 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							b989a4601a 
							
						 
					 
					
						
						
							
							test/sandbox: fail on mismatched mount entry  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 34s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m26s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 2m47s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 57s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-24 13:43:32 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							0eb1bc6301 
							
						 
					 
					
						
						
							
							test/sandbox: verify outcome via mountinfo  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Fpkg (push) Successful in 36s 
				
			 
		
			
				
	Test / Create distribution (push) Successful in 4m56s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 6m33s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 7m3s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 54s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-24 01:42:38 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							1eb837eab8 
							
						 
					 
					
						
						
							
							test/sandbox: warn about misuse in doc comment  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 34s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m16s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 2m45s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 59s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-23 23:28:28 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							75e0c5d406 
							
						 
					 
					
						
						
							
							test/sandbox: parse full test case  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 25s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m37s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m52s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 4m12s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 50s 
				
			 
		
		
	 
 
	 
						
						This makes declaring multiple tests much cleaner.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-23 14:53:50 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							a57a7a6a16 
							
						 
					 
					
						
						
							
							test/sandbox: check type handling host_passthrough  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 25s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m30s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m30s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 4m20s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 52s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-21 12:21:08 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							f38ba7e923 
							
						 
					 
					
						
						
							
							test/sandbox: bypass fields  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 27s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m33s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m26s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m44s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 53s 
				
			 
		
		
	 
 
	 
						
						A field is bypassed if it contains a single null byte. This will never appear in the text format so is safe to use.
Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-13 00:00:58 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							df266527f1 
							
						 
					 
					
						
						
							
							test/sandbox/mount: work around nondeterminism  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 25s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m30s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m20s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m35s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 50s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-12 15:16:51 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							f7bd6a5a41 
							
						 
					 
					
						
						
							
							test/sandbox: check seccomp outcome  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m40s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m39s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m44s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 51s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-04 13:30:16 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							0bd9b9e8fe 
							
						 
					 
					
						
						
							
							test/sandbox: assert filesystem json  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m27s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m30s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m30s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 57s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-02 23:23:04 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							0d3652b793 
							
						 
					 
					
						
						
							
							test/sandbox/assert: wrap printf  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 26s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m34s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m30s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m38s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 50s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-03-02 18:37:46 +09:00 
						 
				 
			
				
					
						
					 
					
						
						
							
							
								
									
								
							
						
						
						
							
						
						
							558974b996 
							
						 
					 
					
						
						
							
							test/sandbox: assert mntent json  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Test / Create distribution (push) Successful in 28s 
				
			 
		
			
				
	Test / Fortify (push) Successful in 2m27s 
				
			 
		
			
				
	Test / Fpkg (push) Successful in 3m24s 
				
			 
		
			
				
	Test / Data race detector (push) Successful in 3m25s 
				
			 
		
			
				
	Test / Flake checks (push) Successful in 49s 
				
			 
		
		
	 
 
	 
						
						Signed-off-by: Ophestra <cat@gensokyo.uk> 
						
						
					 
					
						2025-02-28 15:40:58 +09:00