mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
Kernel/Ext2: Avoid overflow when updating UID and GID values
Previously, attempting to update an ext2 inode with a UID or GID larger than 65535 would overflow. We now write the high bits of UIDs and GIDs to the same place that Linux does within the `osd2` struct.
This commit is contained in:
parent
7e10f76021
commit
db929e0fcf
5 changed files with 47 additions and 7 deletions
|
@ -98,6 +98,10 @@ if [ -f mnt/bin/timezone ]; then
|
|||
chown 0:$phys_gid mnt/bin/timezone
|
||||
chmod 4750 mnt/bin/timezone
|
||||
fi
|
||||
if [ -f mnt/usr/Tests/Kernel/TestExt2FS ]; then
|
||||
chown 0:0 mnt/usr/Tests/Kernel/TestExt2FS
|
||||
chmod 4755 mnt/usr/Tests/Kernel/TestExt2FS
|
||||
fi
|
||||
if [ -f mnt/usr/Tests/Kernel/TestMemoryDeviceMmap ]; then
|
||||
chown 0:0 mnt/usr/Tests/Kernel/TestMemoryDeviceMmap
|
||||
chmod 4755 mnt/usr/Tests/Kernel/TestMemoryDeviceMmap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue