diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-08-02 08:12:36 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-08-02 08:12:36 +0000 |
commit | 58e0953f50ce9d1193bc1c073c8a81fd0d2d8818 (patch) | |
tree | a50601039b99e6e5b7016723f4f0021d1a9d17c8 /sys/kern | |
parent | 53c1841d145dd838af77a3ce49b6c373890f171d (diff) |
Move prototypes of unveil(2) functions which are used in separate C
files into the common namei.h header.
OK deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_unveil.c | 5 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 7 |
2 files changed, 2 insertions, 10 deletions
diff --git a/sys/kern/kern_unveil.c b/sys/kern/kern_unveil.c index ac82d5a7478..0c88a3a889e 100644 --- a/sys/kern/kern_unveil.c +++ b/sys/kern/kern_unveil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_unveil.c,v 1.30 2019/08/01 15:09:25 bluhm Exp $ */ +/* $OpenBSD: kern_unveil.c,v 1.31 2019/08/02 08:12:35 bluhm Exp $ */ /* * Copyright (c) 2017-2019 Bob Beck <beck@openbsd.org> @@ -43,9 +43,6 @@ #define UNVEIL_MAX_VNODES 128 #define UNVEIL_MAX_NAMES 128 -struct unveil *unveil_lookup(struct vnode *vp, struct proc *p, - ssize_t *position); - static inline int unvname_compare(const struct unvname *n1, const struct unvname *n2) { diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index ff230f1677e..0c8c55b857f 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.327 2019/07/25 01:43:21 cheloha Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.328 2019/08/02 08:12:35 bluhm Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -90,11 +90,6 @@ int doutimensat(struct proc *, int, const char *, struct timespec [2], int); int dovutimens(struct proc *, struct vnode *, struct timespec [2]); int dofutimens(struct proc *, int, struct timespec [2]); int dounmount_leaf(struct mount *, int, struct proc *); -int unveil_add(struct proc *, struct nameidata *, const char *); -void unveil_removevnode(struct vnode *vp); -void unveil_free_traversed_vnodes(struct nameidata *); -ssize_t unveil_find_cover(struct vnode *, struct proc *); -struct unveil *unveil_lookup(struct vnode *, struct proc *, ssize_t *); /* * Virtual File System System Calls |