Path: blob/main/tests/sys/vm/mmap_map_32bit_test.sh
39534 views
#1# Copyright (c) 2022 Dmitry Chagin <[email protected]>2#3# SPDX-License-Identifier: BSD-2-Clause4#5# Simple test of MAP_32BIT flag w/wo ASLR67map_32bit_w_aslr_head()8{9atf_set descr "MAP_32BIT with ASLR"10atf_set require.progs proccontrol11}1213map_32bit_w_aslr_body()14{15atf_check -s exit:0 -x proccontrol -m aslr -s enable \16$(atf_get_srcdir)/mmap_map_32bit_helper17}1819map_32bit_wo_aslr_head()20{21atf_set descr "MAP_32BIT without ASLR"22atf_set require.progs proccontrol23}2425map_32bit_wo_aslr_body()26{27atf_check -s exit:0 -x proccontrol -m aslr -s disable \28$(atf_get_srcdir)/mmap_map_32bit_helper29}303132atf_init_test_cases()33{34atf_add_test_case map_32bit_w_aslr35atf_add_test_case map_32bit_wo_aslr36}373839