Summary: | security/sudo: Immediate segfault when hostname is not defined | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Guangyuan Yang <ygy> | ||||
Component: | Individual Port(s) | Assignee: | Renato Botelho <garga> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | andrew.pennebaker, brd, emaste, freebsd, freebsd, garga, pi, pprocacci, ygy | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(garga) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Guangyuan Yang
2017-09-22 08:10:02 UTC
Hi i am have same problem with sudo this my version OS and sudo FreeBSD 11.0-RELEASE-p12 FreeBSD 11.0-RELEASE-p12 #0: Wed Aug 9 10:03:39 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 bsd@ ~> sudo --version Sudo version 1.8.21p2 fish: 'sudo --version' terminated by signal SIGSEGV (Address boundary error) Created attachment 187317 [details]
Fix for empty hostname.
Fix for empty hostname.
This is a bug in sudo. I've submitted a bug report on your behalf: https://bugzilla.sudo.ws/show_bug.cgi?id=807 In the meantime, if you can't wait for whatever reason, place the attached patch in security/sudo/files and remake the port. After which it won't segfault any longer. root@:/usr/ports/security/sudo # hostname root@:/usr/ports/security/sudo # sudo echo test test Thanks @pprocacci for reporting this to upstream. Now that the author has confirmed the bug and made 2 commits to fix it, we just need to wait for the next release of security/sudo and update the port. https://bugzilla.sudo.ws/show_bug.cgi?id=807 *** Bug 222704 has been marked as a duplicate of this bug. *** *** Bug 222115 has been marked as a duplicate of this bug. *** Garga, can I commit this against security/sudo now to help out these users while we wait for upstream to release a new version? (In reply to Brad Davis from comment #7) Please, do it! Thank you! A commit references this bug: Author: brd Date: Mon Nov 13 16:58:14 UTC 2017 New revision: 454126 URL: https://svnweb.freebsd.org/changeset/ports/454126 Log: Pull in an upstream patch for security/sudo to not coredump if the hostname is not set. PR: 222510 Approved by: garga Changes: head/security/sudo/Makefile head/security/sudo/files/patch-bug222510 A commit references this bug: Author: brd Date: Mon Nov 13 20:46:23 UTC 2017 New revision: 454149 URL: https://svnweb.freebsd.org/changeset/ports/454149 Log: MFH: r454126 Pull in an upstream patch for security/sudo to not coredump if the hostname is not set. PR: 222510 Approved by: garga Approved by: portmgr (swills) Changes: _U branches/2017Q4/ branches/2017Q4/security/sudo/Makefile branches/2017Q4/security/sudo/files/patch-bug222510 New pkgs should be available in a couple days. (In reply to Brad Davis from comment #11) Thanks!! |