From cfdf7c3ded1e3165ae643a740a4a0425cecdadcb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 3 Jul 2001 01:10:17 +0000 Subject: 2001-06-21 Neal H Walfield * fshelp.h (fshelp_iscontroller): Declare new function. * perms-iscontroller.c: New file. * Makefile (SRCS): Add it. --- libfshelp/fshelp.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libfshelp/fshelp.h') 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 -- cgit v1.2.3