Filesystem services: Difference between revisions
Line 161: | Line 161: | ||
== Permissions == | == Permissions == | ||
Every time permissions are checked, the process registration [[#fsp-pr]] is loaded using the session processID. The permission data is populated with data from the [[NPDM]], | |||
If the processID is <= 6 (which happens only for built-in sysmodules), it will use a hardcoded registration data. | |||
Note that the functions check whether or not at least one bit is set in the mask. This means that, you don't need to set 0xFFFFFFFFFFFFFFFF to get all permissions: it suffices to set 0x8000000000000000. | |||
If the code were to request an invalid input type, panic. But this never happens. | |||
=== RwPermissions === | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 209: | Line 209: | ||
|} | |} | ||
=== BoolPermissions === | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- |