diff options
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 43871c85729d..6ba7785319de 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -132,6 +132,7 @@ enum pid_directory_inos { | |||
132 | PROC_TGID_ATTR_EXEC, | 132 | PROC_TGID_ATTR_EXEC, |
133 | PROC_TGID_ATTR_FSCREATE, | 133 | PROC_TGID_ATTR_FSCREATE, |
134 | PROC_TGID_ATTR_KEYCREATE, | 134 | PROC_TGID_ATTR_KEYCREATE, |
135 | PROC_TGID_ATTR_SOCKCREATE, | ||
135 | #endif | 136 | #endif |
136 | #ifdef CONFIG_AUDITSYSCALL | 137 | #ifdef CONFIG_AUDITSYSCALL |
137 | PROC_TGID_LOGINUID, | 138 | PROC_TGID_LOGINUID, |
@@ -174,6 +175,7 @@ enum pid_directory_inos { | |||
174 | PROC_TID_ATTR_EXEC, | 175 | PROC_TID_ATTR_EXEC, |
175 | PROC_TID_ATTR_FSCREATE, | 176 | PROC_TID_ATTR_FSCREATE, |
176 | PROC_TID_ATTR_KEYCREATE, | 177 | PROC_TID_ATTR_KEYCREATE, |
178 | PROC_TID_ATTR_SOCKCREATE, | ||
177 | #endif | 179 | #endif |
178 | #ifdef CONFIG_AUDITSYSCALL | 180 | #ifdef CONFIG_AUDITSYSCALL |
179 | PROC_TID_LOGINUID, | 181 | PROC_TID_LOGINUID, |
@@ -291,6 +293,7 @@ static struct pid_entry tgid_attr_stuff[] = { | |||
291 | E(PROC_TGID_ATTR_EXEC, "exec", S_IFREG|S_IRUGO|S_IWUGO), | 293 | E(PROC_TGID_ATTR_EXEC, "exec", S_IFREG|S_IRUGO|S_IWUGO), |
292 | E(PROC_TGID_ATTR_FSCREATE, "fscreate", S_IFREG|S_IRUGO|S_IWUGO), | 294 | E(PROC_TGID_ATTR_FSCREATE, "fscreate", S_IFREG|S_IRUGO|S_IWUGO), |
293 | E(PROC_TGID_ATTR_KEYCREATE, "keycreate", S_IFREG|S_IRUGO|S_IWUGO), | 295 | E(PROC_TGID_ATTR_KEYCREATE, "keycreate", S_IFREG|S_IRUGO|S_IWUGO), |
296 | E(PROC_TGID_ATTR_SOCKCREATE, "sockcreate", S_IFREG|S_IRUGO|S_IWUGO), | ||
294 | {0,0,NULL,0} | 297 | {0,0,NULL,0} |
295 | }; | 298 | }; |
296 | static struct pid_entry tid_attr_stuff[] = { | 299 | static struct pid_entry tid_attr_stuff[] = { |
@@ -299,6 +302,7 @@ static struct pid_entry tid_attr_stuff[] = { | |||
299 | E(PROC_TID_ATTR_EXEC, "exec", S_IFREG|S_IRUGO|S_IWUGO), | 302 | E(PROC_TID_ATTR_EXEC, "exec", S_IFREG|S_IRUGO|S_IWUGO), |
300 | E(PROC_TID_ATTR_FSCREATE, "fscreate", S_IFREG|S_IRUGO|S_IWUGO), | 303 | E(PROC_TID_ATTR_FSCREATE, "fscreate", S_IFREG|S_IRUGO|S_IWUGO), |
301 | E(PROC_TID_ATTR_KEYCREATE, "keycreate", S_IFREG|S_IRUGO|S_IWUGO), | 304 | E(PROC_TID_ATTR_KEYCREATE, "keycreate", S_IFREG|S_IRUGO|S_IWUGO), |
305 | E(PROC_TID_ATTR_SOCKCREATE, "sockcreate", S_IFREG|S_IRUGO|S_IWUGO), | ||
302 | {0,0,NULL,0} | 306 | {0,0,NULL,0} |
303 | }; | 307 | }; |
304 | #endif | 308 | #endif |
@@ -1764,6 +1768,8 @@ static struct dentry *proc_pident_lookup(struct inode *dir, | |||
1764 | case PROC_TGID_ATTR_FSCREATE: | 1768 | case PROC_TGID_ATTR_FSCREATE: |
1765 | case PROC_TID_ATTR_KEYCREATE: | 1769 | case PROC_TID_ATTR_KEYCREATE: |
1766 | case PROC_TGID_ATTR_KEYCREATE: | 1770 | case PROC_TGID_ATTR_KEYCREATE: |
1771 | case PROC_TID_ATTR_SOCKCREATE: | ||
1772 | case PROC_TGID_ATTR_SOCKCREATE: | ||
1767 | inode->i_fop = &proc_pid_attr_operations; | 1773 | inode->i_fop = &proc_pid_attr_operations; |
1768 | break; | 1774 | break; |
1769 | #endif | 1775 | #endif |