mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 06:48:22 -04:00
fs.mitm: loosen boot0 write restrictions, protect keyblobs.
This commit is contained in:
parent
d88fd04c73
commit
a07e37121d
3 changed files with 46 additions and 13 deletions
|
@ -142,10 +142,13 @@ class Boot0Storage : public SectoredProxyStorage<0x200> {
|
|||
static constexpr u64 BctPubkStart = 0x210;
|
||||
static constexpr u64 BctPubkSize = 0x100;
|
||||
static constexpr u64 BctPubkEnd = BctPubkStart + BctPubkSize;
|
||||
|
||||
static constexpr u64 EksStart = 0x180000;
|
||||
static constexpr u64 EksSize = 0x4000;
|
||||
static constexpr u64 EksEnd = EksStart + EksSize;
|
||||
private:
|
||||
u64 title_id;
|
||||
private:
|
||||
bool AllowWrites();
|
||||
bool CanModifyBctPubks();
|
||||
public:
|
||||
Boot0Storage(FsStorage *s, u64 t) : Base(s), title_id(t) { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue