Bugzilla – Attachment 1984 Details for
Bug 1851
ssh_selinux_setfscreatecon segfaults if SELinux support is compiled in but is disabled at run-time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
more error checks in ssh_selinux_setfscreatecon
selinux-setfscreatecon-crash.patch (text/plain), 518 bytes, created by
Colin Watson
on 2011-01-27 23:09:38 AEDT
(
hide
)
Description:
more error checks in ssh_selinux_setfscreatecon
Filename:
MIME Type:
Creator:
Colin Watson
Created:
2011-01-27 23:09:38 AEDT
Size:
518 bytes
patch
obsolete
>Index: b/openbsd-compat/port-linux.c >=================================================================== >--- a/openbsd-compat/port-linux.c >+++ b/openbsd-compat/port-linux.c >@@ -211,12 +211,15 @@ > { > security_context_t context; > >+ if (!ssh_selinux_enabled()) >+ return; >+ > if (path == NULL) { > setfscreatecon(NULL); > return; > } >- matchpathcon(path, 0700, &context); >- setfscreatecon(context); >+ if (matchpathcon(path, 0700, &context) == 0) >+ setfscreatecon(context); > } > > #endif /* WITH_SELINUX */
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 1851
: 1984 |
1991