Hello. Thank you for your interest in TOMOYO. Szymon Gruszczynski wrote: > hi, > thats my first post here :> > i've downloaded a kernel from kernel.org - 2.6.26, i've downloaded the > css-patch-165-20081111, and when i try to apply patch, i get those > errors (well... they occur after succesfully patching) > > root at samantha:/usr/src/linux-2.6.26# patch -p1 > </usr/src/linux-2.6.26/ccs-patch-2.6.26.diff It seems to me that you extracted the tarball in wrong directory by error. The css-patch-1.6.5-20081111.tar.gz contains the following files. # md5sum ccs-patch-1.6.5-20081111.tar.gz bb0dd502eb08a93c9567e26acdb449b3 ccs-patch-1.6.5-20081111.tar.gz # tar -zvtf css-patch-1.6.5-20081111.tar.gz -rw-r--r-- root/root 17987 2008-11-11 09:00:00 COPYING.ccs -rw-r--r-- root/root 63001 2008-11-11 09:00:00 README.ccs -rw-r--r-- root/root 152 2008-11-11 09:00:00 config.ccs drwxr-xr-x root/root 0 2008-11-11 09:00:00 fs/ drwxr-xr-x root/root 0 2008-11-11 09:00:00 fs/proc/ -rw-r--r-- root/root 6551 2008-11-11 09:00:00 fs/proc/ccs_proc.c -rw-r--r-- root/root 25111 2008-11-11 09:00:00 fs/tomoyo_network.c -rw-r--r-- root/root 8033 2008-11-11 09:00:00 fs/tomoyo_env.c -rw-r--r-- root/root 1254 2008-11-11 09:00:00 fs/Config.ccs.in -rw-r--r-- root/root 17083 2008-11-11 09:00:00 fs/realpath.c -rw-r--r-- root/root 4314 2008-11-11 09:00:00 fs/sakura_maymount.c -rw-r--r-- root/root 10194 2008-11-11 09:00:00 fs/syaoran_2.6.c -rw-r--r-- root/root 4944 2008-11-11 09:00:00 fs/sakura_chroot.c -rw-r--r-- root/root 445 2008-11-11 09:00:00 fs/Makefile-2.4.ccs -rw-r--r-- root/root 403 2008-11-11 09:00:00 fs/Makefile-2.6.ccs -rw-r--r-- root/root 3915 2008-11-11 09:00:00 fs/Kconfig.ccs -rw-r--r-- root/root 5953 2008-11-11 09:00:00 fs/sakura_pivot.c -rw-r--r-- root/root 17444 2008-11-11 09:00:00 fs/sakura_mount.c -rw-r--r-- root/root 10104 2008-11-11 09:00:00 fs/tomoyo_audit.c -rw-r--r-- root/root 10607 2008-11-11 09:00:00 fs/syaoran.c -rw-r--r-- root/root 46755 2008-11-11 09:00:00 fs/tomoyo_domain.c -rw-r--r-- root/root 3961 2008-11-11 09:00:00 fs/sakura_bind.c -rw-r--r-- root/root 86368 2008-11-11 09:00:00 fs/ccs_common.c -rw-r--r-- root/root 6942 2008-11-11 09:00:00 fs/tomoyo_capability.c -rw-r--r-- root/root 6433 2008-11-11 09:00:00 fs/tomoyo_signal.c -rw-r--r-- root/root 43392 2008-11-11 09:00:00 fs/tomoyo_file.c -rw-r--r-- root/root 32725 2008-11-11 09:00:00 fs/tomoyo_cond.c -rw-r--r-- root/root 5733 2008-11-11 09:00:00 fs/tomoyo_exec.c -rw-r--r-- root/root 4149 2008-11-11 09:00:00 fs/sakura_umount.c drwxr-xr-x root/root 0 2008-11-11 09:00:00 include/ drwxr-xr-x root/root 0 2008-11-11 09:00:00 include/linux/ -rw-r--r-- root/root 11231 2008-11-11 09:00:00 include/linux/tomoyo_socket.h -rw-r--r-- root/root 955 2008-11-11 09:00:00 include/linux/ccs_proc.h -rw-r--r-- root/root 30637 2008-11-11 09:00:00 include/linux/syaoran.h -rw-r--r-- root/root 32792 2008-11-11 09:00:00 include/linux/ccs_common.h -rw-r--r-- root/root 1849 2008-11-11 09:00:00 include/linux/realpath.h -rw-r--r-- root/root 11026 2008-11-11 09:00:00 include/linux/tomoyo_vfs.h -rw-r--r-- root/root 3211 2008-11-11 09:00:00 include/linux/sakura.h -rw-r--r-- root/root 10452 2008-11-11 09:00:00 include/linux/tomoyo.h drwxr-xr-x root/root 0 2008-11-11 09:00:00 patches/ -rw-r--r-- root/root 58412 2008-11-11 09:00:00 patches/ccs-patch-2.4.27-debian-sarge.diff -rw-r--r-- root/root 48397 2008-11-11 09:00:00 patches/ccs-patch-2.6.24-gentoo-r7.diff -rw-r--r-- root/root 50897 2008-11-11 09:00:00 patches/ccs-patch-2.6.18-natures-linux-1.6.diff -rw-r--r-- root/root 62443 2008-11-11 09:00:00 patches/ccs-patch-2.6.12-fedora-core-3.diff -rw-r--r-- root/root 50239 2008-11-11 09:00:00 patches/ccs-patch-2.6.20-fedora-core-5.diff -rw-r--r-- root/root 61146 2008-11-11 09:00:00 patches/ccs-patch-2.6.9-centos-4.7.diff -rw-r--r-- root/root 51319 2008-11-11 09:00:00 patches/ccs-patch-2.6.17-fedora-core-4.diff -rw-r--r-- root/root 49005 2008-11-11 09:00:00 patches/ccs-patch-2.6.23-turbolinux-11.diff -rw-r--r-- root/root 60425 2008-11-11 09:00:00 patches/ccs-patch-2.6.9-asianux-2.diff -rw-r--r-- root/root 49746 2008-11-11 09:00:00 patches/ccs-patch-2.6.22-suse-10.3.diff -rw-r--r-- root/root 50759 2008-11-11 09:00:00 patches/ccs-patch-2.6.16-suse-10.1.diff -rw-r--r-- root/root 58091 2008-11-11 09:00:00 patches/ccs-patch-2.4.31.diff -rw-r--r-- root/root 61174 2008-11-11 09:00:00 patches/ccs-patch-2.6.11.diff -rw-r--r-- root/root 48822 2008-11-11 09:00:00 patches/ccs-patch-2.6.21.diff -rw-r--r-- root/root 57800 2008-11-11 09:00:00 patches/ccs-patch-2.4.33.diff -rw-r--r-- root/root 63523 2008-11-11 09:00:00 patches/ccs-patch-2.6.13.diff -rw-r--r-- root/root 51106 2008-11-11 09:00:00 patches/ccs-patch-2.6.16-vine-linux-4.2.diff -rw-r--r-- root/root 49167 2008-11-11 09:00:00 patches/ccs-patch-2.6.23.diff -rw-r--r-- root/root 50145 2008-11-11 09:00:00 patches/ccs-patch-2.6.15.diff -rw-r--r-- root/root 57801 2008-11-11 09:00:00 patches/ccs-patch-2.4.35.diff -rw-r--r-- root/root 49658 2008-11-11 09:00:00 patches/ccs-patch-2.6.22-ubuntu-7.10.diff -rw-r--r-- root/root 44720 2008-11-11 09:00:00 patches/ccs-patch-2.6.25.diff -rw-r--r-- root/root 50652 2008-11-11 09:00:00 patches/ccs-patch-2.6.17.diff -rw-r--r-- root/root 58604 2008-11-11 09:00:00 patches/ccs-patch-2.4.20-redhat-linux-9.diff -rw-r--r-- root/root 58005 2008-11-11 09:00:00 patches/ccs-patch-2.4.37.diff -rw-r--r-- root/root 49754 2008-11-11 09:00:00 patches/ccs-patch-2.6.20-ubuntu-7.04.diff -rw-r--r-- root/root 43316 2008-11-11 09:00:00 patches/ccs-patch-2.6.27.diff -rw-r--r-- root/root 49906 2008-11-11 09:00:00 patches/ccs-patch-2.6.19.diff -rw-r--r-- root/root 50806 2008-11-11 09:00:00 patches/ccs-patch-2.6.18-debian-etch.diff -rw-r--r-- root/root 64679 2008-11-11 09:00:00 patches/ccs-patch-2.4.31-armadillo-9.diff -rw-r--r-- root/root 43867 2008-11-11 09:00:00 patches/ccs-patch-2.6.26-fedora-8.diff -rw-r--r-- root/root 48302 2008-11-11 09:00:00 patches/ccs-patch-2.6.24-ubuntu-8.04.diff -rw-r--r-- root/root 48069 2008-11-11 09:00:00 patches/ccs-patch-2.6.18-asianux-3.diff -rw-r--r-- root/root 49728 2008-11-11 09:00:00 patches/ccs-patch-2.6.23-gentoo-r9.diff -rw-r--r-- root/root 46615 2008-11-11 09:00:00 patches/ccs-patch-2.6.22-fedora-core-6.diff -rw-r--r-- root/root 58091 2008-11-11 09:00:00 patches/ccs-patch-2.4.30.diff -rw-r--r-- root/root 45329 2008-11-11 09:00:00 patches/ccs-patch-2.6.25-suse-11.0.diff -rw-r--r-- root/root 49534 2008-11-11 09:00:00 patches/ccs-patch-2.6.20.diff -rw-r--r-- root/root 57772 2008-11-11 09:00:00 patches/ccs-patch-2.4.32.diff -rw-r--r-- root/root 61433 2008-11-11 09:00:00 patches/ccs-patch-2.6.12.diff -rw-r--r-- root/root 51204 2008-11-11 09:00:00 patches/ccs-patch-2.6.18-suse-10.2.diff -rw-r--r-- root/root 47840 2008-11-11 09:00:00 patches/ccs-patch-2.6.18-centos-5.2.diff -rw-r--r-- root/root 49301 2008-11-11 09:00:00 patches/ccs-patch-2.6.22.diff -rw-r--r-- root/root 63723 2008-11-11 09:00:00 patches/ccs-patch-2.6.14.diff -rw-r--r-- root/root 57800 2008-11-11 09:00:00 patches/ccs-patch-2.4.34.diff -rw-r--r-- root/root 47779 2008-11-11 09:00:00 patches/ccs-patch-2.6.24.diff -rw-r--r-- root/root 50123 2008-11-11 09:00:00 patches/ccs-patch-2.6.16.diff -rw-r--r-- root/root 57803 2008-11-11 09:00:00 patches/ccs-patch-2.4.36.diff -rw-r--r-- root/root 46494 2008-11-11 09:00:00 patches/ccs-patch-2.6.23-fedora-7.diff -rw-r--r-- root/root 58957 2008-11-11 09:00:00 patches/ccs-patch-2.6.8-debian-sarge.diff -rw-r--r-- root/root 43368 2008-11-11 09:00:00 patches/ccs-patch-2.6.26.diff -rw-r--r-- root/root 50754 2008-11-11 09:00:00 patches/ccs-patch-2.6.18.diff -rw-r--r-- root/root 51266 2008-11-11 09:00:00 patches/ccs-patch-2.6.17-ubuntu-6.10.diff -rw-r--r-- root/root 41228 2008-11-11 09:00:00 patches/ccs-patch-2.6.28.diff -rw-r--r-- root/root 61802 2008-11-11 09:00:00 patches/ccs-patch-2.6.12-armadillo-9.diff -rw-r--r-- root/root 43336 2008-11-11 09:00:00 patches/ccs-patch-2.6.26-debian-lenny.diff -rw-r--r-- root/root 43868 2008-11-11 09:00:00 patches/ccs-patch-2.6.26-fedora-9.diff -rw-r--r-- root/root 50470 2008-11-11 09:00:00 patches/ccs-patch-2.6.15-ubuntu-6.06.diff -rw-r--r-- root/root 43707 2008-11-11 09:00:00 patches/ccs-patch-2.6.27-ubuntu-8.10.diff -rw-r--r-- root/root 58302 2008-11-11 09:00:00 patches/ccs-patch-2.6.8-turbolinux-10.diff drwxr-xr-x root/root 0 2008-11-11 09:00:00 specs/ -rwxr-xr-x root/root 2055 2008-11-11 09:00:00 specs/build-debian_sarge-2.6.8.sh -rwxr-xr-x root/root 3518 2008-11-11 09:00:00 specs/build-suse10.2-2.6.18.sh -rwxr-xr-x root/root 1615 2008-11-11 09:00:00 specs/build-debian_lenny.sh -rwxr-xr-x root/root 2490 2008-11-11 09:00:00 specs/build-c4-2.6.9.sh -rwxr-xr-x root/root 1615 2008-11-11 09:00:00 specs/build-debian_etch.sh -rwxr-xr-x root/root 2406 2008-11-11 09:00:00 specs/build-ax3-2.6.18.sh -rwxr-xr-x root/root 2933 2008-11-11 09:00:00 specs/build-ubuntu_6.10.sh -rwxr-xr-x root/root 2359 2008-11-11 09:00:00 specs/build-vl4.2-2.6.16.sh -rwxr-xr-x root/root 4833 2008-11-11 09:00:00 specs/build-ubuntu_7.10.sh -rwxr-xr-x root/root 2782 2008-11-11 09:00:00 specs/build-ubuntu_8.10.sh -rwxr-xr-x root/root 3135 2008-11-11 09:00:00 specs/build-ubuntu_7.04.sh -rwxr-xr-x root/root 3204 2008-11-11 09:00:00 specs/build-ubuntu_6.06.sh -rwxr-xr-x root/root 2065 2008-11-11 09:00:00 specs/build-debian_sarge-2.4.27.sh -rwxr-xr-x root/root 4814 2008-11-11 09:00:00 specs/build-ubuntu_8.04.sh -rwxr-xr-x root/root 3716 2008-11-11 09:00:00 specs/build-suse10.3-2.6.22.sh -rwxr-xr-x root/root 2561 2008-11-11 09:00:00 specs/build-rhl9-2.4.20.sh -rwxr-xr-x root/root 2605 2008-11-11 09:00:00 specs/build-fc3-2.6.12.sh -rwxr-xr-x root/root 2591 2008-11-11 09:00:00 specs/build-fc5-2.6.20.sh -rwxr-xr-x root/root 2411 2008-11-11 09:00:00 specs/build-c5-2.6.18.sh -rwxr-xr-x root/root 2681 2008-11-11 09:00:00 specs/build-f7-2.6.23.sh -rwxr-xr-x root/root 2973 2008-11-11 09:00:00 specs/build-fc6-2.6.22.sh -rwxr-xr-x root/root 2517 2008-11-11 09:00:00 specs/build-ax2-2.6.9.sh -rwxr-xr-x root/root 2584 2008-11-11 09:00:00 specs/build-fc4-2.6.17.sh -rwxr-xr-x root/root 2863 2008-11-11 09:00:00 specs/build-f8-2.6.26.sh -rwxr-xr-x root/root 4134 2008-11-11 09:00:00 specs/build-suse10.1-2.6.16.sh -rwxr-xr-x root/root 2863 2008-11-11 09:00:00 specs/build-f9-2.6.26.sh -rwxr-xr-x root/root 3432 2008-11-11 09:00:00 specs/build-suse11.0-2.6.25.sh Thus, if you extract css-patch-1.6.5-20081111.tar.gz at kernel source's root (in your case, /usr/src/linux-2.6.26/ ), you will get files shown below. /usr/src/linux-2.6.26/fs/Makefile-2.6.ccs /usr/src/linux-2.6.26/fs/Kconfig.ccs /usr/src/linux-2.6.26/patches/ccs-patch-2.6.26.diff /usr/src/linux-2.6.26/patches/ccs-patch-2.6.26-debian-lenny.diff You can use ccs-patch-2.6.26.diff for vanilla 2.6.26.7 kernel and ccs-patch-2.6.26-debian-lenny.diff for debian lenny's kernel. Regards.