* [PATCH 0/5] ecryptfs fixes
@ 2010-11-03 10:11 Roberto Sassu
2010-11-09 22:01 ` Tyler Hicks
0 siblings, 1 reply; 3+ messages in thread
From: Roberto Sassu @ 2010-11-03 10:11 UTC (permalink / raw)
To: tyhicks
Cc: kirkland, jmorris, linux-security-module, linux-kernel,
linux-fsdevel
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
This patch set applies to the latest kernel 2.6.37-rc1.
Roberto Sassu (5):
ecryptfs: moved ECRYPTFS_SUPER_MAGIC definition to linux/magic.h
ecryptfs: missing initialization of the superblock 'magic' field
ecryptfs: test lower_file pointer when lower_file_mutex is locked
ecryptfs: fixed testing of file descriptor flags
ecryptfs: open lower files with kthread credentials
fs/ecryptfs/ecryptfs_kernel.h | 4 +---
fs/ecryptfs/file.c | 20 +++++++++-----------
fs/ecryptfs/inode.c | 32 ++++++++++++++------------------
fs/ecryptfs/kthread.c | 17 +++++++++++++----
fs/ecryptfs/main.c | 5 +++--
include/linux/magic.h | 1 +
6 files changed, 41 insertions(+), 38 deletions(-)
--
1.7.2.3
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4707 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/5] ecryptfs fixes
2010-11-03 10:11 [PATCH 0/5] ecryptfs fixes Roberto Sassu
@ 2010-11-09 22:01 ` Tyler Hicks
2010-11-10 9:31 ` Roberto Sassu
0 siblings, 1 reply; 3+ messages in thread
From: Tyler Hicks @ 2010-11-09 22:01 UTC (permalink / raw)
To: Roberto Sassu
Cc: kirkland, jmorris, linux-security-module, linux-kernel,
linux-fsdevel
On Wed Nov 03, 2010 at 11:11:06AM +0100, Roberto Sassu <roberto.sassu@polito.it> wrote:
> This patch set applies to the latest kernel 2.6.37-rc1.
>
>
> Roberto Sassu (5):
> ecryptfs: moved ECRYPTFS_SUPER_MAGIC definition to linux/magic.h
> ecryptfs: missing initialization of the superblock 'magic' field
> ecryptfs: test lower_file pointer when lower_file_mutex is locked
> ecryptfs: fixed testing of file descriptor flags
> ecryptfs: open lower files with kthread credentials
Hey Roberto - I pushed these patches to
git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6.git#next
Thanks,
Tyler
>
> fs/ecryptfs/ecryptfs_kernel.h | 4 +---
> fs/ecryptfs/file.c | 20 +++++++++-----------
> fs/ecryptfs/inode.c | 32 ++++++++++++++------------------
> fs/ecryptfs/kthread.c | 17 +++++++++++++----
> fs/ecryptfs/main.c | 5 +++--
> include/linux/magic.h | 1 +
> 6 files changed, 41 insertions(+), 38 deletions(-)
>
> --
> 1.7.2.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/5] ecryptfs fixes
2010-11-09 22:01 ` Tyler Hicks
@ 2010-11-10 9:31 ` Roberto Sassu
0 siblings, 0 replies; 3+ messages in thread
From: Roberto Sassu @ 2010-11-10 9:31 UTC (permalink / raw)
To: Tyler Hicks
Cc: kirkland, jmorris, linux-security-module, linux-kernel,
linux-fsdevel
Hi Tyler
thanks for accepting my patches.
There is another O_RDONLY test in the function ecryptfs_privileged_open(), in the file fs/ecryptfs/kthread.c,
that is not actually fixed, because i need some explanations on the code.
In this function the dentry_open() is called first time with flags (O_LARGEFILE | O_RDWR) or
(O_LARGEFILE | O_RDONLY) depending on the options passed during the mount of the lower
filesystem.
If the dentry_open() fails, a lower_file pointer can be obtained from the function ecryptfs_threadfn()
executed by the kernel kthread service. However, this option is available only if the lower filesystem
is mounted in read-write mode.
Can you explain me this?
Thanks.
Roberto
On Tuesday, November 09, 2010 11:01:44 pm Tyler Hicks wrote:
> On Wed Nov 03, 2010 at 11:11:06AM +0100, Roberto Sassu <roberto.sassu@polito.it> wrote:
> > This patch set applies to the latest kernel 2.6.37-rc1.
> >
> >
> > Roberto Sassu (5):
> > ecryptfs: moved ECRYPTFS_SUPER_MAGIC definition to linux/magic.h
> > ecryptfs: missing initialization of the superblock 'magic' field
> > ecryptfs: test lower_file pointer when lower_file_mutex is locked
> > ecryptfs: fixed testing of file descriptor flags
> > ecryptfs: open lower files with kthread credentials
>
> Hey Roberto - I pushed these patches to
> git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6.git#next
>
> Thanks,
> Tyler
>
> >
> > fs/ecryptfs/ecryptfs_kernel.h | 4 +---
> > fs/ecryptfs/file.c | 20 +++++++++-----------
> > fs/ecryptfs/inode.c | 32 ++++++++++++++------------------
> > fs/ecryptfs/kthread.c | 17 +++++++++++++----
> > fs/ecryptfs/main.c | 5 +++--
> > include/linux/magic.h | 1 +
> > 6 files changed, 41 insertions(+), 38 deletions(-)
> >
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-10 9:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 10:11 [PATCH 0/5] ecryptfs fixes Roberto Sassu
2010-11-09 22:01 ` Tyler Hicks
2010-11-10 9:31 ` Roberto Sassu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).