<?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.106.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.106.198"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/124.64.106.198"/>
	<updated>2026-05-21T17:42:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=TOMOYO&amp;diff=11494</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11494"/>
		<updated>2007-10-13T09:02:54Z</updated>

		<summary type="html">&lt;p&gt;124.64.106.198: /* Contents */&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 Source&lt;br /&gt;
|http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-{{CCSTools-Version}}.tar.gz&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 (TOMOYO 1.5 for 2.6.22 or 2.6.23 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 (TOMOYO 2.1 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/}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
&lt;br /&gt;
* [[OpenSSL]] needed for mailauth function of TOMOYO tools&lt;br /&gt;
&lt;br /&gt;
== Rebuild Kernel ==&lt;br /&gt;
&lt;br /&gt;
=== 2.6.22 Kernel ===&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;
Extract the TOMOYO patches to the kernel source directory.&lt;br /&gt;
&lt;br /&gt;
 for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel.  Ensure you enable the TOMOYO features.  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;
= CCS Tools =&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib ==&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
== Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 32Bit ===&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 make CC=&amp;quot;gcc ${BUILD32}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== N32 ===&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s@/usr/lib@/usr/lib32@g&#039; Makefile &amp;amp;&amp;amp;&lt;br /&gt;
 make CC=&amp;quot;gcc ${BUILDN32}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== 64Bit ===&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s@/usr/lib@/usr/lib64@g&#039; Makefile &amp;amp;&amp;amp;&lt;br /&gt;
 make CC=&amp;quot;gcc ${BUILD64}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
== Configuring ==&lt;br /&gt;
&lt;br /&gt;
Run tomoyo_init_policy.sh to perform initial configuration for tomoyo patch.&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 to perform initial configuration for ccs patch&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;
Configure TOMOYO Linux to learn 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;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align: left;&amp;quot;&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Installed Directories:&lt;br /&gt;
|/usr/lib/ccs&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Installed Programs:&lt;br /&gt;
|tomoyo_init_policy.sh, init_policy.sh, editpolicy,  editpolicy_offline, setlevel, setprofile, ccstree, savepolicy, makesyaoranconf, ccs-auditd, findtemp, sortpolicy, ld-watch, ccs-queryd, checkpolicy,  /sbin/{ccs,tomoyo}-init&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Installed Libraries:&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Short Descriptions ===&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align: left;&amp;quot;&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!editpolicy&lt;br /&gt;
|Edits the current policy in /proc/ccs/ directory&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!editpolicy_offline&lt;br /&gt;
|Edits the policy in /etc/ccs/ directory.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!setlevel&lt;br /&gt;
|Changes the current control level (i.e. writing to /proc/ccs/profile ) and displays the new control level.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!setprofile&lt;br /&gt;
|Assigns a profile to domains.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!ccstree&lt;br /&gt;
|Lists the domainnames of currently running processes belong to and the profile numbers the domains currently assigned to.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!savepolicy&lt;br /&gt;
|Saves the on-memory policy onto disk.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!makesyaoranconf&lt;br /&gt;
|Generates syaoran.conf, the configuration file for SYAORAN (the Tamper-Proof /dev filesystem). You can use SYAORAN filesystem if you want to run the system with read-only root fs or you want to prevent device files from tampering.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!ccs-auditd&lt;br /&gt;
|Reads from /proc/ccs/grant_log and /proc/ccs/reject_log and writes to the location given in the commandline parameters.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!sortpolicy&lt;br /&gt;
|Remove duplicated entry from logs written by &amp;quot;ccs-auditd&amp;quot;.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!findtemp&lt;br /&gt;
|Reads domain policy from standard input and checks the existence of pathnames, and dumps the nonexistent pathnames.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!ld-watch&lt;br /&gt;
|Appends shared libraries to exception policy automatically using &amp;quot;allow_read&amp;quot; directive when the location of shared libraries in /etc/ld.so.cache has changed.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!ccs-queryd&lt;br /&gt;
|Detects policy violation and displays the access request. You can tell the system whether the access request should be granted (or granted and policy should be appended to grant the access request) or rejected after you validate the access request.&lt;br /&gt;
&lt;br /&gt;
By running this program while updating packages, you can avoid errors due to insufficient permissions.&lt;br /&gt;
&lt;br /&gt;
Never grant access requests unconditionally. The cause of policy violation is not always updating packages, but may by malicious requests by attackers. If you grant access requests caused by malicious requests by attackers, the system gets intruded.&lt;br /&gt;
&lt;br /&gt;
To enable &amp;quot;delayed enforcing mode&amp;quot;, you need to either set &amp;quot;ALLOW_ENFORCE_GRACE=1&amp;quot; in /proc/ccs/profile using &amp;quot;setlevel&amp;quot; command or assign a profile whose ALLOW_ENFORCE_GRACE is set to 1 to domains using &amp;quot;setprofile&amp;quot; command.&lt;br /&gt;
&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!checkpolicy&lt;br /&gt;
|Reads policy files from standard input and checks syntaxes.&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!ccs-init&lt;br /&gt;
|Loads policy files from /etc/ccs/ directory.&lt;br /&gt;
&lt;br /&gt;
Put this program as /sbin/ccs-init , and this program will be invoked automatically when execution of /sbin/init is requested by initrd.&lt;br /&gt;
&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
|&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
|&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>124.64.106.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11484</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11484"/>
		<updated>2007-10-13T00:49:28Z</updated>

		<summary type="html">&lt;p&gt;124.64.106.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 (TOMOYO 1.5 for 2.6.22 or 2.6.23 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 (TOMOYO 2.1 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/&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?WhatIs|http://tomoyo.sourceforge.jp/wiki-e/?WhatIs}}&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]: needed for mailauth function of 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.106.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11483</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11483"/>
		<updated>2007-10-13T00:46:59Z</updated>

		<summary type="html">&lt;p&gt;124.64.106.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 (TOMOYO 1.5 for 2.6.22 or 2.6.23 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 (TOMOYO 2.1 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/&lt;br /&gt;
http://tomoyo.sourceforge.jp/wiki-e/?WhatIs|http://tomoyo.sourceforge.jp/wiki-e/?WhatIs}}&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]]: needed for mailauth function of 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.106.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11482</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11482"/>
		<updated>2007-10-13T00:44:47Z</updated>

		<summary type="html">&lt;p&gt;124.64.106.198: ccs-tools is not a required package,  it is part of TOMOYO itself.&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 (TOMOYO 1.5 for 2.6.22 or 2.6.23 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 (TOMOYO 2.1 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/wiki-e/?WhatIs|http://tomoyo.sourceforge.jp/wiki-e/?WhatIs}}&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]]: needed for mailauth function of 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.106.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11481</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11481"/>
		<updated>2007-10-13T00:00:45Z</updated>

		<summary type="html">&lt;p&gt;124.64.106.198: ccs-tools(or tomoyo-tools) is not anothor package, but a neccesary  part or TOMOYO&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 (TOMOYO 1.5 for 2.6.22 or 2.6.23 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 (TOMOYO 2.1 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.106.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11480</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11480"/>
		<updated>2007-10-12T23:46:27Z</updated>

		<summary type="html">&lt;p&gt;124.64.106.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 (TOMOYO 1.5 for 2.6.22 or 2.6.23 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 (TOMOYO 2.1 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;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]] or [[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;
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;
Apply the TOMOYO patches to the kernel source:&lt;br /&gt;
&lt;br /&gt;
 for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel. Ensure you enable the TOMOYO features.  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;/div&gt;</summary>
		<author><name>124.64.106.198</name></author>
	</entry>
	<entry>
		<id>?title=TOMOYO&amp;diff=11479</id>
		<title>TOMOYO</title>
		<link rel="alternate" type="text/html" href="?title=TOMOYO&amp;diff=11479"/>
		<updated>2007-10-12T23:45:14Z</updated>

		<summary type="html">&lt;p&gt;124.64.106.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 (TOMOYO 1.5 for 2.6.22 orb 2.6.23 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 (TOMOYO 2.1 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;
=== Required ===&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[ccs-tools]] or [[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;
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;
Apply the TOMOYO patches to the kernel source:&lt;br /&gt;
&lt;br /&gt;
 for i in `cat patches/series`; do patch -p1 &amp;lt; patches/$i; done&lt;br /&gt;
&lt;br /&gt;
Compile and install a new TOMOYO aware kernel. Ensure you enable the TOMOYO features.  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;/div&gt;</summary>
		<author><name>124.64.106.198</name></author>
	</entry>
</feed>