Bug 4241 - [atom-pc] sudo segfaults
Summary: [atom-pc] sudo segfaults
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4 M6
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-04-10 19:13 UTC by Darren Hart
Modified: 2013-04-12 09:22 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2013-04-10 19:13:31 UTC
Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-11.10"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "atom-pc"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130410"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta-yocto        
meta-yocto-bsp    
meta              = "master:c31721e6372a52f8dfc516173e18f62266ac461f"
meta-kernel-dev   = "master:9df95d49188bacbe180bfac67edfaa682d542ed3"


Attempting to poweroff from a sato image on atompc as the xuser results in a segfault:

$ sudo /sbin/poweroff
...
Password:
Segmentation fault
$
Comment 1 Richard Purdie 2013-04-11 11:10:35 UTC
I'm nervous about the cause of this, we need to investigte...
Comment 2 Ross Burton 2013-04-11 13:42:47 UTC
Confirmed.  Odd.  Also, "sudo ls" segfaults.

Appears to be caused by xuser having a locked account in /etc/shadow:

xuser:!:15806:0:99999:7:::

su'ing to root and setting a password lets xuser attempt to sudo ls (which then fails as xuser isn't in /etc/sudoers)
Comment 3 Richard Purdie 2013-04-11 13:52:03 UTC
Is this related to the crypt issue we had recently?
Comment 4 Ross Burton 2013-04-11 14:37:35 UTC
Yes.  Fixed locally.
Comment 5 Ross Burton 2013-04-11 15:01:51 UTC
Patch sent to oe-core.
Comment 7 Alexandru Palalau 2013-04-12 09:22:59 UTC
Verified on master branch.
Commit ID:2d94f1bde7c63b56b33bef34573211ecbeffaf44