FreeBSD Bugzilla – Attachment 44520 Details for
Bug 68905
[patch] core dumps are assigned wrong ownership
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
kern-sig.diff
kern-sig.diff (text/x-diff), 844 bytes, created by
Antoine Brodin
on 2008-02-16 13:44:19 UTC
(
hide
)
Description:
kern-sig.diff
Filename:
MIME Type:
Creator:
Antoine Brodin
Created:
2008-02-16 13:44:19 UTC
Size:
844 bytes
patch
obsolete
>Index: kern_sig.c >=================================================================== >RCS file: /home/ncvs/src/sys/kern/kern_sig.c,v >retrieving revision 1.355 >diff -u -p -r1.355 kern_sig.c >--- kern_sig.c 13 Jan 2008 14:44:09 -0000 1.355 >+++ kern_sig.c 14 Jan 2008 13:32:06 -0000 >@@ -3110,9 +3110,14 @@ restart: > NDFREE(&nd, NDF_ONLY_PNBUF); > vp = nd.ni_vp; > >- /* Don't dump to non-regular files or files with links. */ >+ /* >+ * Don't dump to non-regular files, files with links or files >+ * owned by someone else. >+ */ > if (vp->v_type != VREG || >- VOP_GETATTR(vp, &vattr, cred, td) || vattr.va_nlink != 1) { >+ VOP_GETATTR(vp, &vattr, cred, td) || vattr.va_nlink != 1 || >+ vattr.va_mode & (S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) || >+ vattr.va_uid != cred->cr_uid) { > VOP_UNLOCK(vp, 0); > error = EFAULT; > goto close;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 68905
: 44520