diff options
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r-- | fs/gfs2/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index a9f5cbe45cd9..bc2590ef5fc1 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -174,7 +174,9 @@ void gfs2_set_inode_flags(struct inode *inode) | |||
174 | struct gfs2_inode *ip = GFS2_I(inode); | 174 | struct gfs2_inode *ip = GFS2_I(inode); |
175 | unsigned int flags = inode->i_flags; | 175 | unsigned int flags = inode->i_flags; |
176 | 176 | ||
177 | flags &= ~(S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC); | 177 | flags &= ~(S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC|S_NOSEC); |
178 | if ((ip->i_eattr == 0) && !is_sxid(inode->i_mode)) | ||
179 | inode->i_flags |= S_NOSEC; | ||
178 | if (ip->i_diskflags & GFS2_DIF_IMMUTABLE) | 180 | if (ip->i_diskflags & GFS2_DIF_IMMUTABLE) |
179 | flags |= S_IMMUTABLE; | 181 | flags |= S_IMMUTABLE; |
180 | if (ip->i_diskflags & GFS2_DIF_APPENDONLY) | 182 | if (ip->i_diskflags & GFS2_DIF_APPENDONLY) |