summaryrefslogtreecommitdiffstats
path: root/stdlib/type.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-09-25 10:04:26 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-09-25 10:04:26 -0700
commitd95be98dd8b2feaffc296a19f9a6e59f76133568 (patch)
treef2536010b1f7c415af58119f493c5c986b1cfd6f /stdlib/type.tl
parentf340a710a37cecfffe49d357a8b70ba47d9a97b7 (diff)
downloadtxr-d95be98dd8b2feaffc296a19f9a6e59f76133568.tar.gz
txr-d95be98dd8b2feaffc296a19f9a6e59f76133568.tar.bz2
txr-d95be98dd8b2feaffc296a19f9a6e59f76133568.zip
path access tests: use real credentials.
The various accessibility functions like path-writable-to-me should use the real credentials, the same way that the POSIX access function does. This makes them much more useful and secure in setuid programs, since they answer the question "does the underlying user, without these elevated privileges, have this access". * stdlib/path-test.tl (path-mine-p): Use getuid, not geteuid. (path-my-group-p): Use getgid, not getegid. (sys:path-access, path-private-to-me, path-strictly-private-to-me): Use getuid, getgid and rename euid variable to uid. * txr.1: Updated.
Diffstat (limited to 'stdlib/type.tl')
0 files changed, 0 insertions, 0 deletions