diff options
author | Roland McGrath <roland@gnu.org> | 2001-07-03 01:10:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-07-03 01:10:17 +0000 |
commit | cfdf7c3ded1e3165ae643a740a4a0425cecdadcb (patch) | |
tree | 9e86c8233b18bd0cf268c48bf9b163494483fa2b /libfshelp/fshelp.h | |
parent | b5f0edcc31bbdb8969404b409311c29240281c24 (diff) | |
download | hurd-cfdf7c3ded1e3165ae643a740a4a0425cecdadcb.tar.gz hurd-cfdf7c3ded1e3165ae643a740a4a0425cecdadcb.tar.bz2 hurd-cfdf7c3ded1e3165ae643a740a4a0425cecdadcb.zip |
2001-06-21 Neal H Walfield <neal@cs.uml.edu>
* fshelp.h (fshelp_iscontroller): Declare new function.
* perms-iscontroller.c: New file.
* Makefile (SRCS): Add it.
Diffstat (limited to 'libfshelp/fshelp.h')
-rw-r--r-- | libfshelp/fshelp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h index 81e1fadb..88f63b69 100644 --- a/libfshelp/fshelp.h +++ b/libfshelp/fshelp.h @@ -1,5 +1,5 @@ /* FS helper library definitions - Copyright (C) 1994,95,96,97,98,99,2000 Free Software Foundation, Inc. + Copyright (C) 1994,95,96,97,98,99,2000,01 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -238,6 +238,13 @@ error_t fshelp_set_options (struct argp *argp, int flags, appropriate error code. */ error_t fshelp_isowner (struct stat *st, struct iouser *user); +/* Check to see whether USER should be considered a controller of the + filesystem. Which is to say, check to see if we should give USER the + control port. ST is the stat of the root node. USER is the user + asking for a send right to the control port. */ +error_t +fshelp_iscontroller (struct stat *st, struct iouser *user); + /* Check to see whether the user USER can operate on a file identified by ST. OP is one of S_IREAD, S_IWRITE, and S_IEXEC. If the access is permitted, return zero; otherwise return an appropriate error |