The patch titled Subject: sethostname/setdomainname: notify userspace when there is a change in uts_kern_table has been added to the -mm tree. Its filename is sethostname-setdomainname-notify-userspace-when-there-is-a-change-in-uts_kern_table.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Sasikantha babu <sasikanth.v19@xxxxxxxxx> Subject: sethostname/setdomainname: notify userspace when there is a change in uts_kern_table sethostname() and setdomainname() notify userspace on failure (without modifying uts_kern_table). Change things so that we only notify userspace on success, when uts_kern_table was actually modified. Signed-off-by: Sasikantha babu <sasikanth.v19@xxxxxxxxx> Cc: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: WANG Cong <amwang@xxxxxxxxxx> Reviewed-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN kernel/sys.c~sethostname-setdomainname-notify-userspace-when-there-is-a-change-in-uts_kern_table kernel/sys.c --- a/kernel/sys.c~sethostname-setdomainname-notify-userspace-when-there-is-a-change-in-uts_kern_table +++ a/kernel/sys.c @@ -1295,8 +1295,8 @@ SYSCALL_DEFINE2(sethostname, char __user memcpy(u->nodename, tmp, len); memset(u->nodename + len, 0, sizeof(u->nodename) - len); errno = 0; + uts_proc_notify(UTS_PROC_HOSTNAME); } - uts_proc_notify(UTS_PROC_HOSTNAME); up_write(&uts_sem); return errno; } @@ -1346,8 +1346,8 @@ SYSCALL_DEFINE2(setdomainname, char __us memcpy(u->domainname, tmp, len); memset(u->domainname + len, 0, sizeof(u->domainname) - len); errno = 0; + uts_proc_notify(UTS_PROC_DOMAINNAME); } - uts_proc_notify(UTS_PROC_DOMAINNAME); up_write(&uts_sem); return errno; } _ Subject: Subject: sethostname/setdomainname: notify userspace when there is a change in uts_kern_table Patches currently in -mm which might be from sasikanth.v19@xxxxxxxxx are sethostname-setdomainname-notify-userspace-when-there-is-a-change-in-uts_kern_table.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html