<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/security/tomoyo/common.h, branch linux-2.6.37.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-09-27T00:53:18Z</updated>
<entry>
<title>TOMOYO: Don't abuse sys_getpid(), sys_getppid()</title>
<updated>2010-09-27T00:53:18Z</updated>
<author>
<name>Ben Hutchings</name>
</author>
<published>2010-09-26T04:55:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8da96e87d349e9035345293093ecc74792fb96a'/>
<id>urn:sha1:c8da96e87d349e9035345293093ecc74792fb96a</id>
<content type='text'>
System call entry functions sys_*() are never to be called from
general kernel code.  The fact that they aren't declared in header
files should have been a clue.  These functions also don't exist on
Alpha since it has sys_getxpid() instead.

Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Acked-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Use pathname specified by policy rather than execve()</title>
<updated>2010-08-02T05:38:38Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-07-29T05:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=484ca79c653121d3c79fffb86e1deea724f2e20b'/>
<id>urn:sha1:484ca79c653121d3c79fffb86e1deea724f2e20b</id>
<content type='text'>
Commit c9e69318 "TOMOYO: Allow wildcard for execute permission." changed execute
permission and domainname to accept wildcards. But tomoyo_find_next_domain()
was using pathname passed to execve() rather than pathname specified by the
execute permission. As a result, processes were not able to transit to domains
which contain wildcards in their domainnames.

This patch passes pathname specified by the execute permission back to
tomoyo_find_next_domain() so that processes can transit to domains which
contain wildcards in their domainnames.

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Add missing poll() hook.</title>
<updated>2010-08-02T05:34:55Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-25T03:22:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0849e3ba53c3ef603dffa9758a73e07ed186a937'/>
<id>urn:sha1:0849e3ba53c3ef603dffa9758a73e07ed186a937</id>
<content type='text'>
Commit 1dae08c "TOMOYO: Add interactive enforcing mode." forgot to register
poll() hook. As a result, /usr/sbin/tomoyo-queryd was doing busy loop.

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Rename symbols.</title>
<updated>2010-08-02T05:34:54Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-25T02:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2bf69077acefee5247bb661faac2552d29ba7ba'/>
<id>urn:sha1:e2bf69077acefee5247bb661faac2552d29ba7ba</id>
<content type='text'>
Use shorter name in order to make it easier to fit 80 columns limit.

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Copy directly to userspace buffer.</title>
<updated>2010-08-02T05:34:45Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-24T05:57:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f23571e866309a2048030ef6a5f0725cf139d4c9'/>
<id>urn:sha1:f23571e866309a2048030ef6a5f0725cf139d4c9</id>
<content type='text'>
When userspace program reads policy from /sys/kernel/security/tomoyo/
interface, TOMOYO uses line buffered mode. A line has at least one word.

Commit 006dacc "TOMOYO: Support longer pathname." changed a word's max length
from 4000 bytes to max kmalloc()able bytes. By that commit, a line's max length
changed from 8192 bytes to more than max kmalloc()able bytes.

Max number of words in a line remains finite. This patch changes the way of
buffering so that all words in a line are firstly directly copied to userspace
buffer as much as possible and are secondly queued for next read request.
Words queued are guaranteed to be valid until /sys/kernel/security/tomoyo/
interface is close()d.

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Allow reading only execute permission.</title>
<updated>2010-08-02T05:34:44Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-24T03:00:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=063821c8160568b3390044390c8328e36c5696ad'/>
<id>urn:sha1:063821c8160568b3390044390c8328e36c5696ad</id>
<content type='text'>
Policy editor needs to know allow_execute entries in order to build domain
transition tree. Reading all entries is slow. Thus, allow reading only
allow_execute entries.

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Change list iterator.</title>
<updated>2010-08-02T05:34:44Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-24T02:28:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=475e6fa3d340e75a454ea09191a29e52e2ee6e71'/>
<id>urn:sha1:475e6fa3d340e75a454ea09191a29e52e2ee6e71</id>
<content type='text'>
Change list_for_each_cookie to

(1) start from current position rather than next position
(2) remove temporary cursor
(3) check that srcu_read_lock() is held

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Use common code for domain transition control.</title>
<updated>2010-08-02T05:34:43Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-21T02:14:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5448ec4f5062ef75ce74f8d7784d4cea9c46ad00'/>
<id>urn:sha1:5448ec4f5062ef75ce74f8d7784d4cea9c46ad00</id>
<content type='text'>
Use common code for "initialize_domain"/"no_initialize_domain"/"keep_domain"/
"no_keep_domain" keywords.

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Remove alias keyword.</title>
<updated>2010-08-02T05:34:42Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-21T00:58:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0617c7ff34dc9b1d641640c3953274bb2dbe21a6'/>
<id>urn:sha1:0617c7ff34dc9b1d641640c3953274bb2dbe21a6</id>
<content type='text'>
Some programs behave differently depending on argv[0] passed to execve().
TOMOYO has "alias" keyword in order to allow administrators to define different
domains if requested pathname passed to execve() is a symlink. But "alias"
keyword is incomplete because this keyword assumes that requested pathname and
argv[0] are identical. Thus, remove "alias" keyword (by this patch) and add
syntax for checking argv[0] (by future patches).

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>TOMOYO: Merge path_group and number_group.</title>
<updated>2010-08-02T05:34:42Z</updated>
<author>
<name>Tetsuo Handa</name>
</author>
<published>2010-06-17T07:55:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7c2ea22e3c5463627ca98924cd65cb9e480dc29c'/>
<id>urn:sha1:7c2ea22e3c5463627ca98924cd65cb9e480dc29c</id>
<content type='text'>
Use common code for "path_group" and "number_group".

Signed-off-by: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
</feed>
