GitLab has been upgraded to 13.11.3 If you encounter any issues mail code@riscosopen.org

Commit c087cd17 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Tighten DA access permissions

Given not all page table formats can represent user mode RO + privileged R/W, and there's no reason for FileCore to let the user peek its internal structures, tighten this up and remove user mode access entirely.
Tested in a Titanium ROM with SCSIFS/RamFS/SDFS/ADFS.

Version 3.77. Tagged as 'FileCore-3_77'
parent c10a3a57
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
GBLS Module_ApplicationDate GBLS Module_ApplicationDate
GBLS Module_HelpVersion GBLS Module_HelpVersion
GBLS Module_ComponentName GBLS Module_ComponentName
Module_MajorVersion SETS "3.76" Module_MajorVersion SETS "3.77"
Module_Version SETA 376 Module_Version SETA 377
Module_MinorVersion SETS "" Module_MinorVersion SETS ""
Module_Date SETS "21 Nov 2020" Module_Date SETS "14 Dec 2020"
Module_ApplicationDate SETS "21-Nov-20" Module_ApplicationDate SETS "14-Dec-20"
Module_ComponentName SETS "FileCore" Module_ComponentName SETS "FileCore"
Module_FullVersion SETS "3.76" Module_FullVersion SETS "3.77"
Module_HelpVersion SETS "3.76 (21 Nov 2020)" Module_HelpVersion SETS "3.77 (14 Dec 2020)"
END END
/* (3.76) /* (3.77)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* *
*/ */
#define Module_MajorVersion_CMHG 3.76 #define Module_MajorVersion_CMHG 3.77
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 21 Nov 2020 #define Module_Date_CMHG 14 Dec 2020
#define Module_MajorVersion "3.76" #define Module_MajorVersion "3.77"
#define Module_Version 376 #define Module_Version 377
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "21 Nov 2020" #define Module_Date "14 Dec 2020"
#define Module_ApplicationDate "21-Nov-20" #define Module_ApplicationDate "14-Dec-20"
#define Module_ComponentName "FileCore" #define Module_ComponentName "FileCore"
#define Module_FullVersion "3.76" #define Module_FullVersion "3.77"
#define Module_HelpVersion "3.76 (21 Nov 2020)" #define Module_HelpVersion "3.77 (14 Dec 2020)"
#define Module_LibraryVersionInfo "3:76" #define Module_LibraryVersionInfo "3:77"
...@@ -429,7 +429,7 @@ InitEntry ROUT ; NO REENTRANCY CHECK NEEDED ...@@ -429,7 +429,7 @@ InitEntry ROUT ; NO REENTRANCY CHECK NEEDED
MOV R1, #-1 ; don't care about the number MOV R1, #-1 ; don't care about the number
MOV R2, #0 ; initial size of area MOV R2, #0 ; initial size of area
MOV R3, #-1 ; don't care about the base MOV R3, #-1 ; don't care about the base
MOV R4, #1+(1<<7) ; USR mode can't write, and not draggable MOV R4, #2 + DynAreaFlags_NotUserDraggable ; supervisor only
MOV R5, #FsMapMaxSize ; max size of area MOV R5, #FsMapMaxSize ; max size of area
MOV R6, #0 ; no handler MOV R6, #0 ; no handler
MOV R7, #0 ; no workspace for handler MOV R7, #0 ; no workspace for handler
...@@ -527,7 +527,7 @@ InitEntry ROUT ; NO REENTRANCY CHECK NEEDED ...@@ -527,7 +527,7 @@ InitEntry ROUT ; NO REENTRANCY CHECK NEEDED
MOV R2, #BigDirMinSize ; initial size of area MOV R2, #BigDirMinSize ; initial size of area
STR R2, DirBufferSize ; store the size STR R2, DirBufferSize ; store the size
MOV R3, #-1 ; don't care about the base MOV R3, #-1 ; don't care about the base
MOV R4, #1+(1<<7) ; USR mode can't write, and not draggable MOV R4, #2 + DynAreaFlags_NotUserDraggable ; supervisor only
MOV R5, #BigDirMaxSize ; max size of area MOV R5, #BigDirMaxSize ; max size of area
MOV R6, #0 ; no handler MOV R6, #0 ; no handler
MOV R7, #0 ; no workspace for handler MOV R7, #0 ; no workspace for handler
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment