Replace use of the legacy vm_flags_t flags with vma_flags_t values in the
IPE mprotect LSM hook.

No functional change intended.

Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]>
Acked-by: Fan Wu <[email protected]>
Reviewed-by: Lance Yang <[email protected]>
---
 security/ipe/hooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/ipe/hooks.c b/security/ipe/hooks.c
index d878b52ceec8..247b07748b1d 100644
--- a/security/ipe/hooks.c
+++ b/security/ipe/hooks.c
@@ -112,7 +112,7 @@ int ipe_file_mprotect(struct vm_area_struct *vma,
        struct ipe_eval_ctx ctx = IPE_EVAL_CTX_INIT;
 
        /* Already Executable */
-       if (vma->vm_flags & VM_EXEC)
+       if (vma_test(vma, VMA_EXEC_BIT))
                return 0;
 
        if (prot & PROT_EXEC) {

-- 
2.56.1


Reply via email to