summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-16 10:56:58 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-16 10:56:58 +0000
commit113320c6cc5d0b527b8d14ec9df1c6b07496bc3b (patch)
tree3f25b23b69fd96adc4fa4e71c5632c84e9de95b0 /libtrivfs
parent9819e76c6d3bda979636c1a0c079308c9fa6485c (diff)
Tue Feb 16 05:47:57 1999 Thomas Bushnell, BSG <tb@mit.edu>
* io-revoke.c: New file. * Makefile (IOSRCS): Add io-revoke.c.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/ChangeLog5
-rw-r--r--libtrivfs/Makefile4
-rw-r--r--libtrivfs/io-revoke.c32
3 files changed, 39 insertions, 2 deletions
diff --git a/libtrivfs/ChangeLog b/libtrivfs/ChangeLog
index be84966d..9d46bb92 100644
--- a/libtrivfs/ChangeLog
+++ b/libtrivfs/ChangeLog
@@ -1,3 +1,8 @@
+Tue Feb 16 05:47:57 1999 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * io-revoke.c: New file.
+ * Makefile (IOSRCS): Add io-revoke.c.
+
1999-02-12 Gordon Matzigkeit <gord@trick.fig.org>
* open.c (trivfs_open): Add missing `=' from last change.
diff --git a/libtrivfs/Makefile b/libtrivfs/Makefile
index 96ddbe98..58322c15 100644
--- a/libtrivfs/Makefile
+++ b/libtrivfs/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation
+# Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@ -29,7 +29,7 @@ FSSRCS= dir-link.c dir-mkdir.c dir-mkfile.c dir-lookup.c dir-readdir.c \
IOSRCS=io-async-icky.c io-async.c io-duplicate.c io-map.c io-modes-get.c \
io-modes-off.c io-modes-on.c io-modes-set.c io-owner-get.c \
- io-owner-mod.c io-pathconf.c io-read.c io-readable.c \
+ io-owner-mod.c io-pathconf.c io-read.c io-readable.c io-revoke.c \
io-reauthenticate.c io-restrict-auth.c io-seek.c io-select.c \
io-stat.c io-stubs.c io-write.c io-version.c io-identity.c
diff --git a/libtrivfs/io-revoke.c b/libtrivfs/io-revoke.c
new file mode 100644
index 00000000..5eccc6aa
--- /dev/null
+++ b/libtrivfs/io-revoke.c
@@ -0,0 +1,32 @@
+/*
+ Copyright (C) 1999 Free Software Foundation
+ Written by Thomas Bushnell, BSG.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#include "priv.h"
+#include "io_S.h"
+
+/* Implement io_revoke as described in <hurd/io.defs>. */
+kern_return_t
+trivfs_S_io_revoke (struct trivfs_protid *cred)
+{
+ /* Revoke of the underlying node is actually generally right,
+ because that will cause actual calls to fail. In any case,
+ we don't have the ability to check permissions ourselves
+ correctly. */
+
+ return cred ? io_revoke (cred->realnode) : EOPNOTSUPP;
+}