mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
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.
This commit is contained in:
parent
026687816d
commit
cf0dbc9069
Notes:
sideshowbarker
2024-07-18 02:03:39 +09:00
Author: https://github.com/supercomputer7
Commit: cf0dbc9069
Pull-request: https://github.com/SerenityOS/serenity/pull/10571
Reviewed-by: https://github.com/bgianfo ✅
4 changed files with 57 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue