Skip to content

RFC AFS: Implement OpenAFS pioctls(version)s

David Howells linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest17 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17VFS: Implement the pioctl() system callarch/x86/ia32/ia32entry.S arch/x86/include/asm/unistd_32.h arch/x86/include/asm/unistd_64.h +17 more+339 -23 replies
2/17VFS: Implement the AFS system callarch/x86/ia32/ia32entry.S arch/x86/include/asm/unistd_64.h arch/x86/kernel/syscall_table_32.S +7 more+108 -40 replies
3/17VFS: Implement handling for pathless pioctlsfs/compat_pioctl.c fs/pioctl.c include/linux/pioctl.h+130 -102 replies
4/17AFS: Add key request for pioctlfs/afs/pioctl.c+20 -10 replies
5/17AFS: Handle pathless pioctls aimed at AFSfs/afs/internal.h fs/afs/pioctl.c fs/afs/super.c+46 -20 replies
6/17VFS: Define pioctl command wrappersfs/afs/pioctl.c include/linux/venus.h include/linux/vice.h+60 -30 replies
7/17AFS: Implement the PGetFid pioctlfs/afs/pioctl.c include/linux/afscall.h include/linux/venus.h+34 -00 replies
8/17AFS: Implement the PGetFileCell pioctlfs/afs/pioctl.c include/linux/afscall.h include/linux/venus.h+33 -00 replies
9/17AFS: Implement the PGetVolStat pioctlfs/afs/pioctl.c include/linux/afscall.h include/linux/venus.h+55 -00 replies
10/17AFS: Implement the PWhereIs pioctlfs/afs/pioctl.c include/linux/afscall.h include/linux/venus.h+55 -02 replies
11/17AFS: Implement the PFlushCB pioctlfs/afs/pioctl.c include/linux/afscall.h include/linux/venus.h+28 -00 replies
12/17KEYS: Export lookup_user_key() and the key permission request flagsDocumentation/keys.txt include/linux/key.h security/keys/internal.h +6 more+67 -400 replies
13/17RxRPC: Record extra data in keyinclude/keys/rxrpc-type.h net/rxrpc/ar-internal.h net/rxrpc/ar-key.c +1 more+129 -550 replies
14/17RxRPC: Declare the security index constants symbolicallyinclude/linux/rxrpc.h net/rxrpc/ar-key.c net/rxrpc/rxkad.c+12 -50 replies
15/17AFS: Implement the PSetTokens pioctlfs/afs/cell.c fs/afs/internal.h fs/afs/pioctl.c +2 more+208 -00 replies
16/17KEYS: Add a function by which the contents of a keyring can be enumeratedDocumentation/keys.txt include/linux/key.h security/keys/keyring.c+93 -00 replies
17/17AFS: Implement the PGetTokens pioctlfs/afs/pioctl.c include/linux/afscall.h include/linux/venus.h+176 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/17] [RFC] AFS: Implement OpenAFS pioctls(version)s

This series of patches provides a pioctl() system call, and makes kAFS use it to provide a number of of the OpenAFS pioctl functions sufficient to allow a number of OpenAFS userspace utilities work with kAFS.

File-requiring pioctls have been tested with:

[root@andromeda ~]# fs getfid /afs
File /afs (1.1.0) contained in volume 1 [root@andromeda ~]# fs whichcell /afs
File /afs lives in cell 'procyon.org.uk' [root@andromeda ~]# fs examine /afs
fs: You don't have the required access rights on '/afs' [root@andromeda ~]# fs whereis /afs
File /afs is on host altair.procyon.org.uk

Non-file-requiring pioctls for manipulating authentication tokens have been tested with:

[root@andromeda ~]# kinit admin/admin
Password for admin/[email protected]:
[root@andromeda ~]# klog admin
Password:
[root@andromeda ~]# keyctl show
Session Keyring
-3 --alswrv 0 0 keyring: _ses
939040040 --als--v 0 0 \_ rxrpc: [email protected]
[root@andromeda ~]# fs examine /afs
File /afs (1.1.32558) contained in volume 1 Volume status for vid = 536870912 named
Current disk quota is 5000
Current blocks used are 2
The partition has 39007484 blocks available out of 39187776

[root@andromeda ~]# aklog
[root@andromeda ~]# keyctl show
Session Keyring
-3 --alswrv 0 0 keyring: _ses
660792724 --als--v 0 0 \_ rxrpc: [email protected]
[root@andromeda ~]# tokens

Tokens held by the Cache Manager:

User's (AFS ID 10143) tokens for [email protected] [Expires Jun 17 00:47]
--End of list--

The AFS keys probably should be in their own keyring which is linked to from the session keyring.