Skip to content

AFS: Add security support and fix bugs

David Howells linux-fsdevel lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8AF_RXRPC: Use own workqueuesnet/rxrpc/af_rxrpc.c net/rxrpc/ar-accept.c net/rxrpc/ar-ack.c +12 more+92 -690 replies
2/8AF_RXRPC: Lower dead call timeout and fix available call counting on connectionsnet/rxrpc/ar-call.c net/rxrpc/ar-connection.c+56 -230 replies
3/8AFS: Fix callback aggregator work item deadlockfs/afs/callback.c fs/afs/fsclient.c+13 -70 replies
4/8AFS: Correctly alter relocation state after update and show state in /procfs/afs/proc.c fs/afs/vlocation.c+16 -30 replies
5/8AFS: Handle multiple mounts of an AFS superblock correctlyfs/afs/super.c+16 -100 replies
6/8AFS: AF_RXRPC key changesinclude/keys/rxrpc-type.h net/rxrpc/af_rxrpc.c net/rxrpc/ar-key.c +1 more+38 -20 replies
7/8AFS: Permit key to be cached in nameidatafs/namei.c fs/open.c include/linux/namei.h+11 -20 replies
8/8AFS: Add security supportfs/afs/AFS.h fs/afs/Makefile fs/afs/callback.c +15 more+1001 -2383 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] AFS: Add security support and fix bugs

These patches build on the patchset labelled "AF_RXRPC socket family and AFS rewrite". The patches are also available for http download.

Firstly, the patches fix a number of bugs in AF_RXRPC:

http://people.redhat.com/~dhowells/rxrpc/09-af_rxrpc-own-workqueues.diff
http://people.redhat.com/~dhowells/rxrpc/10-af_rxrpc-fixes.diff

Secondly, they fix some bugs in the AFS filesystem:

http://people.redhat.com/~dhowells/rxrpc/11-afs-callback-wq.diff
http://people.redhat.com/~dhowells/rxrpc/12-afs-vlocation.diff
http://people.redhat.com/~dhowells/rxrpc/13-afs-multimount.diff

And finally, they add security support to AFS:

http://people.redhat.com/~dhowells/rxrpc/14-afs-rxrpc-key.diff
http://people.redhat.com/~dhowells/rxrpc/15-afs-nameidata-key.diff
http://people.redhat.com/~dhowells/rxrpc/16-afs-security.diff

A security key is acquired by running the klog program:

http://people.redhat.com/~dhowells/rxrpc/klog.c

This is compiled by:

make klog CFLAGS="-Wall -g" LDLIBS="-lcrypto -lcrypt -lkrb4 -lkeyutils"

And then run by:

	./klog

Note that at the moment this is a rough and ready test program that has the username, realm, password and proposed key timeout compiled in. Note also that it will only talk to the AFS kaserver.

If a security key is acquired, then all subsequent operations - including VL lookups and mounts - performed with that session keyring will be authenticated using that key. The key can be viewed like so:

	[root@andromeda ~]# keyctl show
	Session Keyring
	       -3 --alswrv      0     0  keyring: _ses.3268
		2 --alswrv      0     0   \_ keyring: _uid.0
	111416553 --als--v      0     0   \_ rxrpc: [email protected]

David