diff options
author | Liav A <liavalb@gmail.com> | 2021-10-22 12:02:11 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-22 13:13:00 +0200 |
commit | cf0dbc9069645c966b9dcda3c00acdf506069dc3 (patch) | |
tree | 288a11780e8e146b86eefc76ebda2e30cf9da5da /Meta/build-root-filesystem.sh | |
parent | 026687816d65a28bd3a553c7a343d8b3421a9483 (diff) | |
download | serenity-cf0dbc9069645c966b9dcda3c00acdf506069dc3.zip |
Tests: Add a unit test to ensure the /dev/mem device works correctly
To ensure everything works as expected, a unit test was added with
multiple scenarios.
This binary has to have the SetUID flag, and we also bind-mount the
/usr/Tests directory to allow running of SetUID binaries.
Diffstat (limited to 'Meta/build-root-filesystem.sh')
-rwxr-xr-x | Meta/build-root-filesystem.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index 5ee609b39d..e11a7b97c8 100755 --- a/Meta/build-root-filesystem.sh +++ b/Meta/build-root-filesystem.sh @@ -102,6 +102,10 @@ if [ -f mnt/bin/utmpupdate ]; then chown 0:$utmp_gid mnt/bin/utmpupdate chmod 2755 mnt/bin/utmpupdate fi +if [ -f mnt/usr/Tests/Kernel/TestMemoryDeviceMmap ]; then + chown 0:0 mnt/usr/Tests/Kernel/TestMemoryDeviceMmap + chmod 4755 mnt/usr/Tests/Kernel/TestMemoryDeviceMmap +fi chmod 0400 mnt/res/kernel.map chmod 0400 mnt/boot/Kernel |