Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342169 - sys-apps/tomoyo-tools-2.3.0-p20100820 bump request
Summary: sys-apps/tomoyo-tools-2.3.0-p20100820 bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: MATSUU Takuto (RETIRED)
URL: http://tomoyo.sourceforge.jp
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 11:34 UTC by Marc Schiffbauer
Modified: 2011-01-17 22:50 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tomoyo-tools-2.3.0_p20100820 update patch (tomoyo-tools-2.3.0.patch,1.56 KB, patch)
2011-01-12 13:03 UTC, Jonathan Barnard
Details | Diff
Fix compile flags of 2.3.0_p20100820 (tomoyo-tools-2.3.0_p20100820-fix-compile-flags.patch,4.20 KB, patch)
2011-01-17 18:00 UTC, Sebastian Pipping
Details | Diff
tomoyo-tools-2.3.0_p20100820 update patch (tomoyo-tools-2.2.0_p20090727-to-2.3.0_p20100820-ebuild.diff,2.01 KB, patch)
2011-01-17 18:03 UTC, Sebastian Pipping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2010-10-22 11:34:37 UTC
I installed linux 2.6.36 with tomoyo enabled.

The Kernel panics as it cannot use the 2.2.0 tomoyo-tools to load a policy.

tomoyo-tools-2.3.0 is a hard requirement in order to being able to boot a 2.6.36 tomoyo-enabled kernel.
Comment 1 Sebastian Pipping gentoo-dev 2010-11-02 11:38:09 UTC
Updating summary...

- sys-apps/tomoyo-tools: linux 2.6.36 with TOMOYO 2.3 will panic on boot with <= 2.3.0
+ sys-apps/tomoyo-tools-2.3.0-p20100820 bump request
Comment 2 Jonathan Barnard 2011-01-12 13:03:01 UTC
Created attachment 259619 [details, diff]
tomoyo-tools-2.3.0_p20100820 update patch

Compiling tomoyo-tools-2.3.0 with parallel building fails.
This ebuild is based on old one with a number of updates and parallel building disabled for one of the makefiles.

I would like to make this very clear: You can not use Linux 2.6.36 or newer with tomoyo enabled without tomoyo-tools-2.3.0.
Comment 3 Sebastian Pipping gentoo-dev 2011-01-17 18:00:33 UTC
Created attachment 260063 [details, diff]
Fix compile flags of 2.3.0_p20100820
Comment 4 Sebastian Pipping gentoo-dev 2011-01-17 18:03:21 UTC
Created attachment 260065 [details, diff]
tomoyo-tools-2.3.0_p20100820 update patch

PS: The patch posted before fixes LDFLAGS too, an outstanding issue.
Comment 5 Sebastian Pipping gentoo-dev 2011-01-17 18:07:43 UTC
I am running a 2.6.37 kernel with Tomoyo enabled right now.
It boots _without_ tomoyo-tools-2.3.0 installed.

What do I need to do to reproduce that kernel panic boot issue?
Comment 6 Sebastian Pipping gentoo-dev 2011-01-17 22:50:07 UTC
(In reply to comment #5)
> What do I need to do to reproduce that kernel panic boot issue?

This seems to be the answer:

1) $ zgrep TOMOYO /proc/config.gz 
CONFIG_SECURITY_TOMOYO=y
CONFIG_DEFAULT_SECURITY_TOMOYO=y

2) Have tomoyo-tools-2.2.0_p20090727 installed


I have bumped tomoyo tools now - booting again here.

This ebuild and patches applied finally will appear online here:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/tomoyo-tools/

+*tomoyo-tools-2.3.0_p20100820 (17 Jan 2011)
+
+  17 Jan 2011; Sebastian Pipping <sping@gentoo.org>
+  +tomoyo-tools-2.3.0_p20100820.ebuild,
+  +files/tomoyo-tools-2.3.0_p20100820-flags-parallel.patch,
+  +files/tomoyo-tools-2.3.0_p20100820-gentoo.patch:
+  Bump to 2.3.0_p20100820 (bug #342169)
+  - Move to EAPI 2
+  - Start respecting LDFLAGS
+  - Port patch from 2.2.0_p20090727
+  - Fix parallel make issue
+

While I do have applied care while bumping, please bare with me if I broke anything.  In that case please re-open this bug.