summaryrefslogtreecommitdiff
path: root/libtrivfs/priv.h
AgeCommit message (Collapse)Author
2016-04-26libtrivfs: fix notion of privileged userJustus Winter
Set 'is_root' if the node has been opened by the root user (this was the old behavior) or if it has been opened by the user the translator is executing under. This fixes the irritating bug that an unprivileged user cannot control her own trivfs-based translators. It does not change how privileged trivfs translators work. * libtrivfs/io-reauthenticate.c (trivfs_S_io_reauthenticate): Use the new function to compute 'isroot'. * libtrivfs/io-restrict-auth.c (trivfs_S_io_restrict_auth): Likewise. * libtrivfs/open.c (trivfs_open): Likewise. * libtrivfs/priv.h (_is_privileged): New function. * libtrivfs/trivfs.h (struct peropen): Clarify what 'isroot' means.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* priv.h: All declarations moved to ... * trivfs.h: ... here. #include those server stub headers. * fsmutations.h (FILE_IMPORTS, IO_IMPORTS, FSYS_IMPORTS): Use <hurd/trivfs.h> instead of "priv.h" here.
1997-02-20(trivfs_dynamic_protid_port_classes, trivfs_num_dynamic_protid_port_classes,Miles Bader
trivfs_dynamic_control_port_classes, trivfs_num_dynamic_control_port_classes, trivfs_dynamic_port_buckets, trivfs_num_dynamic_port_buckets): New declarations.
1994-06-15entered into RCSMichael I. Bushnell
1994-05-24Formerly priv.h.~3~Michael I. Bushnell
1994-05-24Formerly priv.h.~2~Michael I. Bushnell
1994-05-24Initial revisionMichael I. Bushnell