Index: src/trusted/service_runtime/sel_validate_image.c |
diff --git a/src/trusted/service_runtime/sel_validate_image.c b/src/trusted/service_runtime/sel_validate_image.c |
index 24c686f506ee0b52bfab01d696ef49a1284d7ae0..12325fa1cf5b60dc5535a87b80182cea1a2b7682 100644 |
--- a/src/trusted/service_runtime/sel_validate_image.c |
+++ b/src/trusted/service_runtime/sel_validate_image.c |
@@ -73,6 +73,7 @@ int NaClValidateCode(struct NaClApp *nap, uintptr_t guest_addr, |
allowable HLTs. */ |
status = validator->Validate(guest_addr, data, size, |
TRUE, /* stub out */ |
+ nap->pnacl_mode, |
Petr Hosek
2015/07/28 19:05:46
This will become `nap->pnacl_mode ? DISABLE_UNSUPP
ruiq
2015/07/28 21:34:56
Done.
|
FALSE, /* text is not read-only */ |
nap->cpu_features, |
metadata, |
@@ -83,6 +84,7 @@ int NaClValidateCode(struct NaClApp *nap, uintptr_t guest_addr, |
int readonly_text = nap->fixed_feature_cpu_mode; |
status = validator->Validate(guest_addr, data, size, |
FALSE, /* do not stub out */ |
+ nap->pnacl_mode, |
Petr Hosek
2015/07/28 19:05:46
ditto
ruiq
2015/07/28 21:34:56
Done.
|
readonly_text, |
nap->cpu_features, |
metadata, |