Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "anon_inode: set S_IFREG on the anon_inode"

This reverts commit a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d.

Al Viro 1eb2cbb6 9dda696f

+1 -1
+1 -1
fs/anon_inodes.c
··· 205 205 * that it already _is_ on the dirty list. 206 206 */ 207 207 inode->i_state = I_DIRTY; 208 - inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; 208 + inode->i_mode = S_IRUSR | S_IWUSR; 209 209 inode->i_uid = current_fsuid(); 210 210 inode->i_gid = current_fsgid(); 211 211 inode->i_flags |= S_PRIVATE;