diff options
author | David Howells <dhowells@redhat.com> | 2007-04-26 18:57:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-04-26 18:57:07 -0400 |
commit | 00d3b7a4533e367b0dc2812a706db8f9f071c27f (patch) | |
tree | f0b1ae0266267cb2c54cb11aa61ad0758ce9c0f5 /fs/afs/callback.c | |
parent | 436058a49e0fb91c74454dbee9cfee6fb53b4336 (diff) |
[AFS]: Add security support.
Add security support to the AFS filesystem. Kerberos IV tickets are added as
RxRPC keys are added to the session keyring with the klog program. open() and
other VFS operations then find this ticket with request_key() and either use
it immediately (eg: mkdir, unlink) or attach it to a file descriptor (open).
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs/callback.c')
-rw-r--r-- | fs/afs/callback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/afs/callback.c b/fs/afs/callback.c index 61121554714..e674bebbb8b 100644 --- a/fs/afs/callback.c +++ b/fs/afs/callback.c | |||
@@ -72,7 +72,10 @@ void afs_broken_callback_work(struct work_struct *work) | |||
72 | return; /* someone else is dealing with it */ | 72 | return; /* someone else is dealing with it */ |
73 | 73 | ||
74 | if (test_bit(AFS_VNODE_CB_BROKEN, &vnode->flags)) { | 74 | if (test_bit(AFS_VNODE_CB_BROKEN, &vnode->flags)) { |
75 | if (afs_vnode_fetch_status(vnode) < 0) | 75 | if (S_ISDIR(vnode->vfs_inode.i_mode)) |
76 | afs_clear_permits(vnode); | ||
77 | |||
78 | if (afs_vnode_fetch_status(vnode, NULL, NULL) < 0) | ||
76 | goto out; | 79 | goto out; |
77 | 80 | ||
78 | if (test_bit(AFS_VNODE_DELETED, &vnode->flags)) | 81 | if (test_bit(AFS_VNODE_DELETED, &vnode->flags)) |