|
Basic Solution File System - BSFS
|
Implements su command to switch session identity (testing). More...
Functions | |
| int | su (FILE *disk, superblock_t *sb, char **args) |
| Switch the browser session identity (testing helper). | |
Implements su command to switch session identity (testing).
| int su | ( | FILE * | disk, |
| superblock_t * | sb, | ||
| char ** | args ) |
Switch the browser session identity (testing helper).
Changes the API session uid (and optionally gid) used for permission checks. Accepts decimal values. Intended for testing permission behavior in the browser; no OS-level identity is changed.
| disk | Open filesystem image (unused). |
| sb | Loaded superblock (unused). |
| args | argv-like vector; expects uid in args[1], optional gid in args[2]. |