summaryrefslogtreecommitdiff
path: root/sys/miscfs/tcfs/tcfs_mount.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-06-17 17:16:08 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-06-17 17:16:08 +0000
commit883d8fd44467302c3565033377329596ff584353 (patch)
tree6a4fab996854c794c5bbb82961a34807efb5bdb0 /sys/miscfs/tcfs/tcfs_mount.h
parente5891f818a179b348802443c30c18b6ab4adfed8 (diff)
initial import of tcfs.
Diffstat (limited to 'sys/miscfs/tcfs/tcfs_mount.h')
-rw-r--r--sys/miscfs/tcfs/tcfs_mount.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys/miscfs/tcfs/tcfs_mount.h b/sys/miscfs/tcfs/tcfs_mount.h
new file mode 100644
index 00000000000..59e863f3482
--- /dev/null
+++ b/sys/miscfs/tcfs/tcfs_mount.h
@@ -0,0 +1,39 @@
+#ifndef _TCFS_KEYTAB_H_
+#include "tcfs_keytab.h"
+#endif
+#define _TCFS_MOUNT_H_
+
+#ifndef _TCFS_VERSION_H_
+#include "tcfs_version.h"
+#endif
+
+#define MaxCipherNameLen 8
+struct tcfs_status {
+ int status;
+ int n_ukey;
+ int n_gkey;
+ int tcfs_version;
+ char cipher_desc[MaxCipherNameLen];
+ int cipher_keysize;
+ int cipher_version;
+ };
+struct tcfs_args {
+ char *target; /* Target of loopback */
+ char *tcfs_key; /* chiave */
+ int cipher_num;
+ int cmd; /* direttiva */
+ uid_t user; /* utente */
+ pid_t proc; /* processo */
+ gid_t group; /* gruppo */
+ int treshold; /* soglia grpkey */
+ struct tcfs_status st;
+};
+
+struct tcfs_mount {
+ struct mount *tcfsm_vfs;
+ struct vnode *tcfsm_rootvp; /* Reference to root tcfs_node */
+ void* ks;
+ tcfs_keytab *tcfs_uid_kt;
+ tcfs_keytab *tcfs_gid_kt;
+ int tcfs_cipher_num;
+};