To test broken applications, for example Wine Bugzilla #11661.
sudo mount --bind $HOME/.wine $HOME/.wine
sudo mount /home/focht/.wine -o remount,noexec
mount | grep home
/dev/mapper/luks-9a3155b7-c22b-4d00-8f68-c2285afc374e on /home type ext4 (rw,relatime,seclabel)
/dev/mapper/luks-9a3155b7-c22b-4d00-8f68-c2285afc374e on /home/focht/.wine type ext4 (rw,noexec,relatime,seclabel)
Test application with no-exec (should error out):
# copy the installer into .wine/drive_c as needed
# run the installer
wine ./vve201setup.exe
...
0024:err:virtual:map_file_into_view failed to set PROT_EXEC on file map, noexec filesystem?
0024:err:virtual:virtual_map_section mapping 0x1310000 174f000 000000000 failed
Revert:
sudo umount $HOME/.wine
Links