mirror of
				https://github.com/GrapheneOS/hardened_malloc.git
				synced 2025-10-27 14:36:32 +01:00 
			
		
		
		
	make preload script for testing a bit more robust
This commit is contained in:
		
							parent
							
								
									1ea997b887
								
							
						
					
					
						commit
						af393afc09
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -1,5 +1,6 @@ | ||||||
| #!/bin/bash | #!/bin/bash | ||||||
| 
 | 
 | ||||||
| dir=$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd) | dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||||||
| export LD_PRELOAD+=" $dir/hardened_malloc.so" | [[ $LD_PRELOAD ]] && LD_PRELOAD+=" " | ||||||
| exec $@ | export LD_PRELOAD+="$dir/hardened_malloc.so" | ||||||
|  | exec "$@" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue