Bugzilla – Attachment 1204 Details for
Bug 1255
Solaris contract support kills processes when receiving signals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Implement changes described in comment #5.
openssh-solaris-contract-1255.patch (text/plain), 1.59 KB, created by
Darren Tucker
on 2006-10-31 12:39:11 AEDT
(
hide
)
Description:
Implement changes described in comment #5.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2006-10-31 12:39:11 AEDT
Size:
1.59 KB
patch
obsolete
>Index: openbsd-compat/port-solaris.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/port-solaris.c,v >retrieving revision 1.2 >diff -u -r1.2 port-solaris.c >--- openbsd-compat/port-solaris.c 1 Sep 2006 05:38:41 -0000 1.2 >+++ openbsd-compat/port-solaris.c 31 Oct 2006 01:30:01 -0000 >@@ -86,18 +86,27 @@ > debug2("%s: setting up process contract template on fd %d", > __func__, tmpl_fd); > >- /* We have to set certain attributes before activating the template */ >- if (ct_pr_tmpl_set_fatal(tmpl_fd, >- CT_PR_EV_HWERR|CT_PR_EV_SIGNAL|CT_PR_EV_CORE) != 0) { >+ /* First we set the template parameters and event sets. */ >+ if (ct_pr_tmpl_set_param(tmpl_fd, CT_PR_PGRPONLY) != 0) { >+ error("%s: Error setting process contract parameter set " >+ "(pgrponly): %s", __func__, strerror(errno)); >+ goto fail; >+ } >+ if (ct_pr_tmpl_set_fatal(tmpl_fd, CT_PR_EV_HWERR) != 0) { > error("%s: Error setting process contract template " > "fatal events: %s", __func__, strerror(errno)); > goto fail; > } >- if (ct_tmpl_set_critical(tmpl_fd, CT_PR_EV_HWERR) != 0) { >+ if (ct_tmpl_set_critical(tmpl_fd, 0) != 0) { > error("%s: Error setting process contract template " > "critical events: %s", __func__, strerror(errno)); > goto fail; > } >+ if (ct_tmpl_set_informative(tmpl_fd, CT_PR_EV_HWERR) != 0) { >+ error("%s: Error setting process contract template " >+ "informative events: %s", __func__, strerror(errno)); >+ goto fail; >+ } > > /* Now make this the active template for this process. */ > if (ct_tmpl_activate(tmpl_fd) != 0) {
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 1255
: 1204