Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Catch up with genfs_can argument changes
details: https://anonhg.NetBSD.org/src/rev/57f3e83b7986
branches: trunk
changeset: 1012684:57f3e83b7986
user: christos <christos%NetBSD.org@localhost>
date: Fri Aug 07 18:13:19 2020 +0000
description:
Catch up with genfs_can argument changes
diffstat:
share/man/man9/genfs.9 | 52 +++++++++++++++++++++++++------------------------
1 files changed, 27 insertions(+), 25 deletions(-)
diffs (103 lines):
diff -r e3fdb96f3c05 -r 57f3e83b7986 share/man/man9/genfs.9
--- a/share/man/man9/genfs.9 Fri Aug 07 17:59:32 2020 +0000
+++ b/share/man/man9/genfs.9 Fri Aug 07 18:13:19 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: genfs.9,v 1.4 2014/03/18 18:20:40 riastradh Exp $
+.\" $NetBSD: genfs.9,v 1.5 2020/08/07 18:13:19 christos Exp $
.\"
.\" Copyright 2012 Elad Efrat <elad%NetBSD.org@localhost>
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd March 1, 2012
+.Dd August 7, 2020
.Dt GENFS 9
.Os
.Sh NAME
@@ -35,25 +35,26 @@
.Sh SYNOPSIS
.In miscfs/genfs/genfs.h
.Ft int
-.Fn genfs_can_access "enum vtype type" "mode_t file_mode" "uid_t uid" \
-"gid_t gid" "mode_t acc_mode" "kauth_cred_t cred"
+.Fn genfs_can_access "vnode_t *vp" "kauth_cred_t cred" "uid_t uid" \
+"gid_t gid" "mode_t file_mode" "struct acl *acl" "accmode_t accmode"
.Ft int
-.Fn genfs_can_chflags "kauth_cred_t cred" "enum vtype type" "uid_t owner_uid" \
+.Fn genfs_can_chflags "vnode_t *vp" kauth_cred_t cred" "uid_t owner_uid" \
"bool changing_sysflags"
.Ft int
-.Fn genfs_can_chmod "enum vtype type" "kauth_cred_t cred" "uid_t cur_uid" \
+.Fn genfs_can_chmod "vnode_t *vp" "kauth_cred_t cred" "uid_t cur_uid" \
"gid_t cur_gid" "mode_t new_mode"
.Ft int
-.Fn genfs_can_chown "kauth_cred_t cred" "uid_t cur_uid" "gid_t cur_gid" \
-"uid_t new_uid" "gid_t new_gid"
+.Fn genfs_can_chown "vnode_t *vp" "kauth_cred_t cred" "uid_t cur_uid" \
+ "gid_t cur_gid" "uid_t new_uid" "gid_t new_gid"
+.Ft int
+.Fn genfs_can_chtimes "vnode_t *vp" "kauth_cred_t cred" "uid_t owner_uid" \
+"u_int vaflags"
.Ft int
-.Fn genfs_can_chtimes "vnode_t *vp" "u_int vaflags" "uid_t owner_uid" \
-"kauth_cred_t cred"
+.Fn genfs_can_extattr "vnode_t *vp" "kauth_cred_t cred" "accmode_t accmode" \
+"int attrnamespace"
.Ft int
-.Fn genfs_can_extattr "kauth_cred_t cred" "int access_mode" "vnode_t *vp" \
-"const char *attr"
-.Ft int
-.Fn genfs_can_sticky "kauth_cred_t cred" "uid_t dir_uid" "uid_t file_uid"
+.Fn genfs_can_sticky "vnode_t *vp" "kauth_cred_t cred" "uid_t dir_uid" \
+ "uid_t file_uid"
.Sh DESCRIPTION
The functions documented here are general routines for internal use in
file systems to implement common policies for performing various operations.
@@ -78,33 +79,34 @@
.Ed
.Sh FUNCTIONS
.Bl -tag -width compact
-.It Fn genfs_can_access "enum vtype type" "mode_t file_mode" "uid_t uid" \
-"gid_t gid" "mode_t acc_mode" "kauth_cred_t cred"
+.It Fn genfs_can_access "vnode_t *vp" "kauth_cred_t cred" "uid_t uid" \
+"gid_t gid" "mode_t file_mode" "struct acl *" "accmode_t accmode"
Implements file access checking based on traditional Unix permissions.
-.It Fn genfs_can_chflags "kauth_cred_t cred" "enum vtype type" \
+.It Fn genfs_can_chflags "vnode_t *vp" "kauth_cred_t cred"
"uid_t owner_uid" "bool changing_sysflags"
Implements
.Xr chflags 2
policy.
-.It Fn genfs_can_chmod "enum vtype type" "kauth_cred_t cred" "uid_t cur_uid" \
+.It Fn genfs_can_chmod "vnode_t *vp" "kauth_cred_t cred" "uid_t cur_uid" \
"gid_t cur_gid" "mode_t new_mode"
Implements
.Xr chmod 2
policy.
-.It Fn genfs_can_chown "kauth_cred_t cred" "uid_t cur_uid" "gid_t cur_gid" \
-"uid_t new_uid" "gid_t new_gid"
+.It Fn genfs_can_chown "vnode_t *vp" "kauth_cred_t cred" "uid_t cur_uid" \
+"gid_t cur_gid" "uid_t new_uid" "gid_t new_gid"
Implements
.Xr chown 2
policy.
-.It Fn genfs_can_chtimes "vnode_t *vp" "u_int vaflags" "uid_t owner_uid" \
-"kauth_cred_t cred"
+.It Fn genfs_can_chtimes "vnode_t *vp" "kauth_cred_t cred" "uid_t owner_uid" \
+"u_int vaflags"
Implements
.Xr utimes 2
policy.
-.It Fn genfs_can_extattr "kauth_cred_t cred" "int access_mode" "vnode_t *vp" \
-"const char *attr"
+.It Fn genfs_can_extattr "vnode_t *vp" "kauth_cred_t cred" "accmode_t accmode" \
+"int attrnamespace"
Implements extended attributes access policy.
-.It Fn genfs_can_sticky "kauth_cred_t cred" "uid_t dir_uid" "uid_t file_uid"
+.It Fn genfs_can_sticky "vnode_t *vp" "kauth_cred_t cred" "uid_t dir_uid" \
+"uid_t file_uid"
Implements rename and delete policy from sticky directories.
.El
.Sh SEE ALSO
Home |
Main Index |
Thread Index |
Old Index