mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 17:47:59 -06:00
Update the initramfs to set 755 permissions on /init (#13567)
This commit is contained in:
parent
9b5659d4b9
commit
9f77522f64
@ -6267,5 +6267,14 @@ Error code: Wsl/InstallDistro/WSL_E_INVALID_JSON\r\n",
|
|||||||
std::wstring::npos);
|
std::wstring::npos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_METHOD(InitPermissions)
|
||||||
|
{
|
||||||
|
WSL2_TEST_ONLY();
|
||||||
|
|
||||||
|
auto [out, _] = LxsstuLaunchWslAndCaptureOutput(L"stat -c %a /init");
|
||||||
|
|
||||||
|
VERIFY_ARE_EQUAL(out, L"755\n");
|
||||||
|
}
|
||||||
|
|
||||||
}; // namespace UnitTests
|
}; // namespace UnitTests
|
||||||
} // namespace UnitTests
|
} // namespace UnitTests
|
||||||
|
|||||||
@ -40,7 +40,7 @@ use constant TRAILER => "TRAILER!!!";
|
|||||||
# like initramfs.
|
# like initramfs.
|
||||||
#
|
#
|
||||||
use constant INODE => 0;
|
use constant INODE => 0;
|
||||||
use constant MODE => oct("100777");
|
use constant MODE => oct("100755");
|
||||||
use constant UID => 0;
|
use constant UID => 0;
|
||||||
use constant GID => 0;
|
use constant GID => 0;
|
||||||
use constant NLINK => 0;
|
use constant NLINK => 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user