Merge branch 'misc.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / fs / proc / base.c
index e5b5f77..533d583 100644 (file)
@@ -95,6 +95,7 @@
 #include <linux/posix-timers.h>
 #include <linux/time_namespace.h>
 #include <linux/resctrl.h>
+#include <linux/cn_proc.h>
 #include <trace/events/oom.h>
 #include "internal.h"
 #include "fd.h"
@@ -1674,8 +1675,10 @@ static ssize_t comm_write(struct file *file, const char __user *buf,
        if (!p)
                return -ESRCH;
 
-       if (same_thread_group(current, p))
+       if (same_thread_group(current, p)) {
                set_task_comm(p, buffer);
+               proc_comm_connector(p);
+       }
        else
                count = -EINVAL;