Kernel: Don't allow creating zero sized shm objects

This commit is contained in:
2026-08-23 15:51:01 +03:00
parent f163dacce5
commit 9a9a4fe8c0
@@ -87,6 +87,9 @@ namespace Kernel
return BAN::Error::from_errno(ENOENT);
}
if (size == 0)
return BAN::Error::from_errno(EINVAL);
const auto& process = Process::current();
const uid_t uid = process.credentials().euid();
const gid_t gid = process.credentials().egid();