diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-09-25 10:04:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-25 10:04:26 -0700 |
commit | d95be98dd8b2feaffc296a19f9a6e59f76133568 (patch) | |
tree | f2536010b1f7c415af58119f493c5c986b1cfd6f /stdlib/type.tl | |
parent | f340a710a37cecfffe49d357a8b70ba47d9a97b7 (diff) | |
download | txr-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