Hi list,

i'm very new with Tomoyo Linux, but i like it :) The LiveCD is a good first 
look.
I'm using Gentoo-Hardened 2.6.27-r3 and i've failed to patch the Kernel.



1. Downloading ccs-patch-1.6.5-20081225.tar.gz to /usr/src/linux
2. tar xvf ccs-patch-1.6.5-20081225.tar.gz
3. patch -Np1 -i patches/ccs-patch-2.6.27.diff

Shows me:

2 out of 3 hunks FAILED -- saving rejects to file net/unix/af_unix.c.rej

localhost linux # cat net/unix/af_unix.c.rej
***************
*** 114,119 ****
  #include <linux/mount.h>
  #include <net/checksum.h>
  #include <linux/security.h>

  static struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1];
  static DEFINE_SPINLOCK(unix_table_lock);
--- 114,122 ----
  #include <linux/mount.h>
  #include <net/checksum.h>
  #include <linux/security.h>
+ /***** TOMOYO Linux start. *****/
+ #include <linux/tomoyo.h>
+ /***** TOMOYO Linux end. *****/

  static struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1];
  static DEFINE_SPINLOCK(unix_table_lock);
***************
*** 841,846 ****
                err = mnt_want_write(nd.path.mnt);
                if (err)
                        goto out_mknod_dput;
                err = vfs_mknod(nd.path.dentry->d_inode, dentry, mode, 0);
                mnt_drop_write(nd.path.mnt);
                if (err)
--- 849,861 ----
                err = mnt_want_write(nd.path.mnt);
                if (err)
                        goto out_mknod_dput;
+               /***** TOMOYO Linux start. *****/
+               err = pre_vfs_mknod(nd.path.dentry->d_inode, dentry, mode);
+               if (!err)
+                       err = ccs_check_1path_perm(TYPE_MKSOCK_ACL, dentry,
+                                                  nd.path.mnt);
+               if (!err)
+               /***** TOMOYO Linux end. *****/
                err = vfs_mknod(nd.path.dentry->d_inode, dentry, mode, 0);
                mnt_drop_write(nd.path.mnt);
                if (err)

Can you create a patch ?

Thanks in advance. Greets from Germany.

V. Korschok

_______________________________________________
tomoyo-users-en mailing list
[email protected]
http://lists.sourceforge.jp/mailman/listinfo/tomoyo-users-en

Reply via email to