diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-07-16 10:51:21 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-20 17:52:52 +0200 |
commit | 641249f6b143c4e22825e18e0dbe22bb04d21138 (patch) | |
tree | 5a58963f268df6fe984ca43ca72b3556515fbfaf /procfs/procfs_dir.c | |
parent | b1a3f96a8139c5ed3aac7b8a77b06ba4c0a877c7 (diff) | |
download | hurd-641249f6b143c4e22825e18e0dbe22bb04d21138.tar.gz hurd-641249f6b143c4e22825e18e0dbe22bb04d21138.tar.bz2 hurd-641249f6b143c4e22825e18e0dbe22bb04d21138.zip |
Fix default file ownership
Formerly all nodes were created so that they were owned by root:root
by default. This causes problems if the procfs translator is running
as unprivileged user and serves passive translator records, because
the file ownership is being used as credentials for starting
translators. This obviously fails if the procfs translator is not root
but is trying to acquire credentials including uid/gid 0.
Fix this by using the uid/gid of the procfs translator by default.
procfs.c (procfs_make_node): Fix default node ownership.
Diffstat (limited to 'procfs/procfs_dir.c')
0 files changed, 0 insertions, 0 deletions