Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6bc445e0
Commit
6bc445e0
authored
May 31, 2015
by
Theodore Ts'o
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext4 crypto: make sure the encryption info is initialized on opendir(2)
Signed-off-by:
Theodore Ts'o
<
tytso@mit.edu
>
parent
55557029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
fs/ext4/dir.c
fs/ext4/dir.c
+8
-0
No files found.
fs/ext4/dir.c
View file @
6bc445e0
...
@@ -593,6 +593,13 @@ static int ext4_dx_readdir(struct file *file, struct dir_context *ctx)
...
@@ -593,6 +593,13 @@ static int ext4_dx_readdir(struct file *file, struct dir_context *ctx)
return
0
;
return
0
;
}
}
static
int
ext4_dir_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
if
(
ext4_encrypted_inode
(
inode
))
return
ext4_get_encryption_info
(
inode
)
?
-
EACCES
:
0
;
return
0
;
}
static
int
ext4_release_dir
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
ext4_release_dir
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
{
if
(
filp
->
private_data
)
if
(
filp
->
private_data
)
...
@@ -635,5 +642,6 @@ const struct file_operations ext4_dir_operations = {
...
@@ -635,5 +642,6 @@ const struct file_operations ext4_dir_operations = {
.
compat_ioctl
=
ext4_compat_ioctl
,
.
compat_ioctl
=
ext4_compat_ioctl
,
#endif
#endif
.
fsync
=
ext4_sync_file
,
.
fsync
=
ext4_sync_file
,
.
open
=
ext4_dir_open
,
.
release
=
ext4_release_dir
,
.
release
=
ext4_release_dir
,
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment