4 Jun 2010 15:29
PATCH: Arla CVS Current on Linux 2.6.24-2.6.32
Bo Brantén <bosse <at> acc.umu.se>
2010-06-04 13:29:26 GMT
2010-06-04 13:29:26 GMT
Hello, I have updated my patch for the latest kernels of Linux. It would be good if anyone with CVS access could commit this. Bo Brantén
diff -uprN arla-cvs/nnpfs/linux/nnpfs_blocks.c arla-cvs-new/nnpfs/linux/nnpfs_blocks.c
--- arla-cvs/nnpfs/linux/nnpfs_blocks.c 2008-03-08 22:38:16.000000000 +0100
+++ arla-cvs-new/nnpfs/linux/nnpfs_blocks.c 2010-06-03 23:32:08.232611383 +0200
<at> <at> -340,6 +340,10 <at> <at> nnpfs_block_open(struct nnpfs_node *node
uid_t saveuid;
gid_t savegid;
int ret;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
+ const struct cred *old_cred;
+ struct cred *override_cred;
+#endif
BUG_ON(!nnpfsp);
BUG_ON(flags & O_CREAT && file != NULL);
<at> <at> -364,10 +368,21 <at> <at> nnpfs_block_open(struct nnpfs_node *node
BUG_ON(!nnpfsp->cachedir || !nnpfsp->cacheroot);
/* use the nfsd trick to give us access */
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,28)
saveuid = current->fsuid;
savegid = current->fsgid;
current->fsuid = nnpfsp->uid;
(Continue reading)
RSS Feed