Add "untrusted" sections for environment variables defined in Occlum.json. Environment variable defined in "default" will be shown in libos directly. Environment variable defined in "untrusted" can be passed from occlum run or PAL layer and can override the value in "default" and thus is considered "untrusted".
		
			
				
	
	
		
			16 lines
		
	
	
		
			339 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			339 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| include ../test_common.mk
 | |
| 
 | |
| ARGC := 4
 | |
| ARG1 := 1
 | |
| ARG2 := arg2
 | |
| ARG3 := this is a string with spaces
 | |
| 
 | |
| EXTRA_C_FLAGS := \
 | |
| 	-DEXPECT_ARGC=$(ARGC) \
 | |
| 	-DEXPECT_ARG1="\"$(ARG1)\"" \
 | |
| 	-DEXPECT_ARG2="\"$(ARG2)\"" \
 | |
| 	-DEXPECT_ARG3="\"$(ARG3)\""
 | |
| EXTRA_LINK_FLAGS :=
 | |
| EXTRA_ENV := TEST=true STABLE=no OVERRIDE=Y
 | |
| BIN_ARGS := "$(ARG1)" "$(ARG2)" "$(ARG3)"
 |