Re: Assertion `new_role != ((void *)0) && new_role->flavor == 1' when installing modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 11, 2012 at 01:13:49AM +0200, Laurent Bigonville wrote:
> Le Mon, 10 Sep 2012 08:39:46 -0400,
> Stephen Smalley <sds@xxxxxxxxxxxxx> a écrit :
> 
> > Does this patch fix it?
> 
> It's now unfortunately crashing with the following trace :(
> 
> #0  __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:32
> #1  0x00007f30554c20b1 in ustr_replace_cstr (s1=0x7fff6721a668, oc=0x7f3055ea4ef9 "s0", nc=0x0, lim=0) at ustr-replace.h:58
> #2  0x00007f3055e8d398 in replace_all (str=0x7f3057796860 "HOME_DIR/.+\tsystem_u:object_r:user_home_t", repl=0x7fff6721a6c0) at genhomedircon.c:513
> #3  0x00007f3055e8d644 in write_home_dir_context (s=0x7fff6721a7d0, out=0x7f305779d9a0, tpl=0x7f305779c260, user=0x7f3057081660 "user_u", seuser=0x7f3057081660 "user_u", home=0x7f3057791ef3 "/home/[^/]*", role_prefix=0x7f3057081640 "user", level=0x0) at genhomedircon.c:580
> #4  0x00007f3055e8e6d2 in write_context_file (s=0x7fff6721a7d0, out=0x7f305779d9a0) at genhomedircon.c:1012
> #5  0x00007f3055e8e977 in semanage_genhomedircon (sh=0x7f30570015b0, policydb=0x7f30576fcbd0, usepasswd=1, ignoredirs=0x0) at genhomedircon.c:1090
> #6  0x00007f3055e8993e in semanage_direct_commit (sh=0x7f30570015b0) at direct_api.c:994
> #7  0x00007f3055e8f7bc in semanage_commit (sh=0x7f30570015b0) at handle.c:435
> #8  0x00007f305674c921 in main (argc=21, argv=0x7fff6721aac8) at semodule.c:479
> 
> I get this with the userspace version of Debian sid (and libsepol
> patched) and the following command:
> 
> semodule -v -b base.pp -s refpolicy -n -i init.pp libraries.pp
> logging.pp selinuxutil.pp modutils.pp storage.pp userdomain.pp
> miscfiles.pp sysadm.pp authlogin.pp sysnetwork.pp application.pp
> locallogin.pp

You are building the policy without MLS/MCS, right?

Educated guess: It's the same here:

    http://marc.info/?l=selinux&m=133003003018371

Patch would be (helped on Ubuntu):

    http://marc.info/?l=selinux&m=132433039902439&w=2


Ole

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux