<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=124.64.109.198</id>
	<title>CBLFS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=124.64.109.198"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/124.64.109.198"/>
	<updated>2026-05-21T06:14:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=TOMOYO&amp;diff=11476</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11476"/>
		<updated>2007-10-12T13:59:17Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: /* Initial Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
|-}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain whenever execution of a program is requested, each domain will  have the minimal permissions that are essential for processes in that domain to do their  roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
 $ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
 $ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
 $ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
 [*] Enable different security models&lt;br /&gt;
 &amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
 &amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
 [ ] NSA SELinux Support&lt;br /&gt;
 [*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
 $ make -s&lt;br /&gt;
 # make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
 $ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
 $ cd ccstools&lt;br /&gt;
 $ make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration for patch from http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
&lt;br /&gt;
Run init_policy.sh included in TOMOYO Linux tools to perform initial configuration for patch from http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/ccs/ directory.&lt;br /&gt;
&lt;br /&gt;
=== Tutorial ===&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
 # echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
 # echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
 TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable         &lt;br /&gt;
 TOMOYO Linux.&lt;br /&gt;
 TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11475</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11475"/>
		<updated>2007-10-12T13:57:41Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: /* Initial Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
|-}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain whenever execution of a program is requested, each domain will  have the minimal permissions that are essential for processes in that domain to do their  roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
 $ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
 $ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
 $ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
 [*] Enable different security models&lt;br /&gt;
 &amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
 &amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
 [ ] NSA SELinux Support&lt;br /&gt;
 [*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
 $ make -s&lt;br /&gt;
 # make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
 $ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
 $ cd ccstools&lt;br /&gt;
 $ make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration for patch from http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
&lt;br /&gt;
for kerel patch Run init_policy.sh included in TOMOYO Linux tools to perform initial configuration for patch from http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/ccs/ directory.&lt;br /&gt;
&lt;br /&gt;
=== Tutorial ===&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
 # echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
 # echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
 TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable         &lt;br /&gt;
 TOMOYO Linux.&lt;br /&gt;
 TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11474</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11474"/>
		<updated>2007-10-12T13:22:35Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
|-}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain whenever execution of a program is requested, each domain will  have the minimal permissions that are essential for processes in that domain to do their  roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
 $ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
 $ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
 $ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
 [*] Enable different security models&lt;br /&gt;
 &amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
 &amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
 [ ] NSA SELinux Support&lt;br /&gt;
 [*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
 $ make -s&lt;br /&gt;
 # make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
 $ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
 $ cd ccstools&lt;br /&gt;
 $ make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
&lt;br /&gt;
=== Tutorial ===&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
 # echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
 # echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
 TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable         &lt;br /&gt;
 TOMOYO Linux.&lt;br /&gt;
 TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11473</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11473"/>
		<updated>2007-10-12T13:18:52Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
|-}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain&lt;br /&gt;
 whenever execution of a program is requested, each domain will  have the minimal permissions that are essential for processes in that domain to do their  roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
 $ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
 $ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
 $ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
 [*] Enable different security models&lt;br /&gt;
 &amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
 &amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
 [ ] NSA SELinux Support&lt;br /&gt;
 [*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
 $ make -s&lt;br /&gt;
 # make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
 $ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
 $ cd ccstools&lt;br /&gt;
 $ make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
&lt;br /&gt;
=== Tutorial ===&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
 # echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
 # echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
 TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable         &lt;br /&gt;
 TOMOYO Linux.&lt;br /&gt;
 TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11472</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11472"/>
		<updated>2007-10-12T13:15:56Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain&lt;br /&gt;
 whenever execution of a program is requested, each domain will  have the minimal permissions that are essential for processes in that domain to do their  roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
 $ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
 $ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
 $ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
 [*] Enable different security models&lt;br /&gt;
 &amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
 &amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
 [ ] NSA SELinux Support&lt;br /&gt;
 [*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
 $ make -s&lt;br /&gt;
 # make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
 $ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
 $ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
 $ cd ccstools&lt;br /&gt;
 $ make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
&lt;br /&gt;
=== Tutorial ===&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
 # echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
 # echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
 TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable         &lt;br /&gt;
 TOMOYO Linux.&lt;br /&gt;
 TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
 # /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11471</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11471"/>
		<updated>2007-10-12T13:11:05Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: /* Non-Multilib or Multilib */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain&lt;br /&gt;
whenever execution of a program is requested, each domain will have the minimal permissions that are essential for processes in that domain to do their roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel ===&lt;br /&gt;
&lt;br /&gt;
http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
$ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
$ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
$ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
$ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
[*] Enable different security models&lt;br /&gt;
&amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
&amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
[ ] NSA SELinux Support&lt;br /&gt;
[*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
$ make -s&lt;br /&gt;
# make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
$ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
$ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
$ cd ccstools&lt;br /&gt;
$ make&lt;br /&gt;
# make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
&lt;br /&gt;
=== Tutorial ===&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
# echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
# echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable TOMOYO Linux.&lt;br /&gt;
TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11470</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11470"/>
		<updated>2007-10-12T13:09:11Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: /* Initial Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain&lt;br /&gt;
whenever execution of a program is requested, each domain will have the minimal permissions that are essential for processes in that domain to do their roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel === http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel === http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
$ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
$ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
$ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
$ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
[*] Enable different security models&lt;br /&gt;
&amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
&amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
[ ] NSA SELinux Support&lt;br /&gt;
[*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
$ make -s&lt;br /&gt;
# make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
$ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
$ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
$ cd ccstools&lt;br /&gt;
$ make&lt;br /&gt;
# make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
&lt;br /&gt;
=== Tutorial ===&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
# echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
# echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable TOMOYO Linux.&lt;br /&gt;
TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11469</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11469"/>
		<updated>2007-10-12T13:02:08Z</updated>

		<summary type="html">&lt;p&gt;124.64.109.198: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.22.9-v22.patch&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.22 series Kernel):&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27219/ccs-patch-1.5.0-20070920.tar.gz&lt;br /&gt;
|-&lt;br /&gt;
!Download Patch (for 2.6.23 series Kernel):&lt;br /&gt;
|http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|The fundamental concept of TOMOYO Linux is &amp;quot;tracking process invocation history&amp;quot;.  TOMOYO Linux splits domains using &amp;quot;process invocation history&amp;quot; and the process transits to a different domain whenever execution of a program (i.e. do_execve()) is requested. By transiting to a different domain&lt;br /&gt;
whenever execution of a program is requested, each domain will have the minimal permissions that are essential for processes in that domain to do their roles.|http://tomoyo.sourceforge.jp/en/2.1.x/|http://tomoyo.sourceforge.jp/en/lkml-4/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[bc]]: needed if you want to run &amp;quot;make check&amp;quot; for OpenSSL&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]]/[[tomoyo-tools]]&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib or Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel === http://tomoyo.sourceforge.jp/wiki-e/?TomoyoOnLFS&lt;br /&gt;
&lt;br /&gt;
Modify the ccs-patch-1.5.0-20070920 patch:&lt;br /&gt;
&lt;br /&gt;
 8&amp;lt;=========== change for version ============&amp;gt;8&lt;br /&gt;
 -EXTRAVERSION = .9-cfs-v22&lt;br /&gt;
 +EXTRAVERSION = .9-cfs-v22-ccs&lt;br /&gt;
 8&amp;lt;=========== chang for CFS v22 patch http://lkml.org/lkml/2007/9/26/97 ============&amp;gt;8&lt;br /&gt;
 @@ -64,5 +64,8 @@&lt;br /&gt;
 #include &amp;lt;asm/tlb.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux start. *****/&lt;br /&gt;
 +#include &amp;lt;linux/tomoyo.h&amp;gt;&lt;br /&gt;
 +/***** TOMOYO Linux end. *****/&lt;br /&gt;
 /*&lt;br /&gt;
 * Scheduler clock - returns current time in nanosec units.&lt;br /&gt;
 @@ -4060,6 +4063,9 @@ int can_nice(const struct task_struct *p&lt;br /&gt;
 8&amp;lt;=======================&amp;gt;8&lt;br /&gt;
&lt;br /&gt;
Patch the kernel source:&lt;br /&gt;
&lt;br /&gt;
 patch -p1 -i ../sched-cfs-v2.6.22.9-v22.patch &amp;amp;&amp;amp;&lt;br /&gt;
 patch -p1 -i ccs-patch-2.6.22.txt&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.&lt;br /&gt;
&lt;br /&gt;
=== 2.6.23 Kernel === http://tomoyo.sourceforge.jp/en/lkml-4/&lt;br /&gt;
&lt;br /&gt;
The latest TOMOYO Linux patch is available at http://svn.sourceforge.jp/svnroot/tomoyo/tags/lkml/4/patches/ . Download it and extract it at the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
$ wget -O tomoyo.tar.gz &#039;http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/tags/lkml/4/patches.tar.gz?root=tomoyo&amp;amp;view=tar&#039;&lt;br /&gt;
$ tar -zxvf tomoyo.tar.gz&lt;br /&gt;
$ /bin/sh -c &#039;for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&#039;&lt;br /&gt;
&lt;br /&gt;
Edit Makefile&#039;s EXTRAVERSION= line if you need.&lt;br /&gt;
&lt;br /&gt;
Next, create a kernel config with TOMOYO Linux enabled.&lt;br /&gt;
&lt;br /&gt;
$ make -s menuconfig&lt;br /&gt;
&lt;br /&gt;
Go to &amp;quot;Security options&amp;quot; screen and unselect &amp;quot;Default Linux Capabilities&amp;quot;, &amp;quot;Root Plug Support&amp;quot;, &amp;quot;NSA SELinux Support&amp;quot; and select &amp;quot;TOMOYO Linux support&amp;quot; as shown below.&lt;br /&gt;
&lt;br /&gt;
[*] Enable different security models&lt;br /&gt;
&amp;lt; &amp;gt;   Default Linux Capabilities&lt;br /&gt;
&amp;lt; &amp;gt;   Root Plug Support&lt;br /&gt;
[ ] NSA SELinux Support&lt;br /&gt;
[*] TOMOYO Linux support&lt;br /&gt;
&lt;br /&gt;
After creating a kernel config, compile the kernel.&lt;br /&gt;
&lt;br /&gt;
$ make -s&lt;br /&gt;
# make -s modules_install install&lt;br /&gt;
&lt;br /&gt;
Create initrd if you need. Edit /boot/grub/grub.conf or /boot/grub/menu.lst if you need.&lt;br /&gt;
&lt;br /&gt;
=== Compiling TOMOYO Linux tools ===&lt;br /&gt;
&lt;br /&gt;
You can download TOMOYO Linux tools at http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz . Download it and extract it and compile it. The tools are installed in /usr/lib/ccs .&lt;br /&gt;
&lt;br /&gt;
$ wget -O tomoyo-tools.tar.gz &#039;http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-1.5.0-20070920.tar.gz&#039;&lt;br /&gt;
$ tar -zxf tomoyo-tools.tar.gz&lt;br /&gt;
$ cd ccstools&lt;br /&gt;
$ make&lt;br /&gt;
# make install&lt;br /&gt;
&lt;br /&gt;
=== Initial Configuration ===&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh included in TOMOYO Linux tools to perform initial configuration.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/tomoyo_init_policy.sh&lt;br /&gt;
&lt;br /&gt;
You will get initial configuration files in /etc/tomoyo/ directory.&lt;br /&gt;
Tutorial&lt;br /&gt;
&lt;br /&gt;
Before starting tutorial, configure TOMOYO Linux to learn whole system behavior.&lt;br /&gt;
&lt;br /&gt;
# echo &#039;&amp;lt;kernel&amp;gt;&#039; &amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
# echo &#039;use_profile 1&#039; &amp;gt;&amp;gt; /etc/tomoyo/domain_policy.conf&lt;br /&gt;
&lt;br /&gt;
When you boot with TOMOYO Linux kernel, you will see the following message when /sbin/init is about to start.&lt;br /&gt;
&lt;br /&gt;
TOMOYO Linux: Enter &#039;disable&#039; within 10 seconds to disable TOMOYO Linux.&lt;br /&gt;
TOMOYO Linux&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you press &#039;Enter&#039; key or wait for 10 seconds, TOMOYO Linux gets enabled and policy is loaded. If you have trouble such as unable to login because of inappropriate TOMOYO Linux configuration, enter &amp;quot;disable&amp;quot; and press &#039;Enter&#039; key to disable TOMOYO Linux.&lt;br /&gt;
&lt;br /&gt;
Login to the system as root user, and run editpolicy included in TOMOYO Linux tools.&lt;br /&gt;
&lt;br /&gt;
# /usr/lib/ccs/editpolicy&lt;/div&gt;</summary>
		<author><name>124.64.109.198</name></author>
	</entry>
</feed>