Skip to content

Commit c771949

Browse files
MaxKellermanntytso
authored andcommitted
Revert "ext4: apply umask if ACL support is disabled"
This reverts commit 484fd6c. The commit caused a regression because now the umask was applied to symlinks and the fix is unnecessary because the umask/O_TMPFILE bug has been fixed somewhere else already. Fixes: https://lore.kernel.org/lkml/28DSITL9912E1.2LSZUVTGTO52Q@mforney.org/ Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Tested-by: Michael Forney <mforney@mforney.org> Link: https://lore.kernel.org/r/20240315142956.2420360-1-max.kellermann@ionos.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent fb092d4 commit c771949

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

fs/ext4/acl.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ extern int ext4_init_acl(handle_t *, struct inode *, struct inode *);
6868
static inline int
6969
ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir)
7070
{
71-
/* usually, the umask is applied by posix_acl_create(), but if
72-
ext4 ACL support is disabled at compile time, we need to do
73-
it here, because posix_acl_create() will never be called */
74-
inode->i_mode &= ~current_umask();
75-
7671
return 0;
7772
}
7873
#endif /* CONFIG_EXT4_FS_POSIX_ACL */

0 commit comments

Comments
 (0)