On Mon, 2012-06-18 at 11:25 +0800, casinee app wrote: > 2012/6/18 shawn <shawnland...@gmail.com>:
Make sure to CC all messages to tomoyo-dev-en@lists.sourceforge.jp instead of sending messages directly to me > > Hi, > > > > On Mon, 2012-06-18 at 10:06 +0800, casinee app wrote: > >> Thank you! My host system is Ubuntu8.04, i compiled the > >> tomoyo-tools-2.2.0-20120414 with the gcc, and copy the output to the > >> root filesystem as the document descripte( > >> http://tomoyo.sourceforge.jp/2.2/install.html.en ). > > > > please do not top post (wikipedia it) > sorry > > > > What version of tomoyo are you using with your kernel? There are a > > number of version with incompatible user-space tools and policies. > > > > I use 2.5 with mainline 3.4 kernel. > > > I use 2.2 with mainline 2.6 kernel. the 2.6 kernel spans 40 versions, over many years, you need to be more specific > > > If you really need the 2.2 tools, then, while there is no ubuntu > > packages, this debian binary package *might* work for you. > > http://packages.debian.org/squeeze/tomoyo-tools > > > > I download the tomoyo-tools-2.2.0-20120414.tar.gz from the site > > http://es.sourceforge.jp/projects/tomoyo/downloads/41908/tomoyo-tools-2.2.0-20120414.tar.gz/ > > > however i've used the install instructions just fine, before 2.5 tools > > were packaged in Debian for example > >> > >> But when i execute the command: > >> # /usr/lib/tomoyo/tomoyo_init_policy > >> > >> It gave the output as below: > >> /usr/sbin/tomoyo-editpolicy: line 1: syntax error: unexpected word > >> (expecting ")") > > > > no sure what the problem is here > >> > >> Shoud i use the arm-linux-gcc to compile the user-space tools? Can i > >> use the Debian packages to achieve my goal? and how? Thanks a lot. > > They need to be compiled armel > > > > the compiler should be called arm-linux-gnueabi-gcc > > > > are you trying to use an ancient OABI compiler? > I installed the arm-linux-gnueabi-gcc, and i change the file > Include.make like this: > CC := arm-linux-gnueabi-gcc > INSTALL := install > SBINDIR := /home/casinee/develop/rootfs/sbin > USRSBINDIR := /home/casinee/develop/rootfs/usr/sbin > USRLIBDIR := /home/casinee/develop/rootfs/usr/lib > MAN8 := /home/casinee/develop/rootfs/usr/share/man/man8 > CFLAGS := -Wall -O2 ${shell $(CC) -Wno-pointer-sign -S -o > /dev/null -x c - < /dev/null > /dev/null 2>&1 && echo > "-Wno-pointer-sign"} > > The directory /home/casinee/develop/rootfs is the root filesystem for > the embedded device. > The original Include.make is : > CC := gcc > INSTALL := install > SBINDIR := /sbin > USRSBINDIR := /usr/sbin > USRLIBDIR := /usr/lib > MAN8 := /usr/share/man/man8 > CFLAGS := -Wall -O2 ${shell $(CC) -Wno-pointer-sign -S -o > /dev/null -x c - < /dev/null > /dev/null 2>&1 && echo > "-Wno-pointer-sign"} You HAVE TO install the binaries to the system location, so that policy can be loaded on boot. > > But when i execute the commmand #make install , the output is : you need to install libncurses-dev oh i see below you say you have that file.-----you probably need to re-run ./configure > casinee@ubuntu:~/develop/tomoyo-tools$ make > arm-linux-gnueabi-gcc -Wall -O2 -Wno-pointer-sign -o tomoyotools > tomoyotools.src/*.c -lncurses -DCOLOR_ON > In file included from tomoyotools.src/checkpolicy.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/domainmatch.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/editpolicy.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/editpolicy_color.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/editpolicy_keyword.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/editpolicy_offline.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/editpolicy_optimizer.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/findtemp.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/ld-watch.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/loadpolicy.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/pathmatch.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/patternize.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/pstree.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/readline.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/setlevel.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/setprofile.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > In file included from tomoyotools.src/tomoyotools.c:11: > tomoyotools.src/tomoyotools.h:24: fatal error: curses.h: No such file > or directory > compilation terminated. > make: *** [tomoyotools] Error 1 > > i had checked the /usr/include , the file curses.h is here. > >> > >> 2012/6/18 Shawn <shawnland...@gmail.com>: > >> > > >> > On Sun, Jun 17, 2012 at 5:59 AM, casinee app <appcasi...@gmail.com> > >> > wrote: > >> >> > >> >> Hi, > >> >> i want to port the TOMOYO to a embedded device. The kernel i used is > >> >> 2.6.30. I have compiled the kernel to support the TOMOYO. > >> >> Can anyone guide me to do the next steps. Thanks. > >> > > >> > http://tomoyo.sourceforge.jp/documentation.html.en > >> > > >> > I've had success using emdebian with TOMOYO. Debian has all the > >> > user-space > >> > tools packaged, along with kernels that support tomoyo, making your life > >> > easier. > > > > -- > > -Shawn Landden > > > > _______________________________________________ > > tomoyo-dev-en mailing list > > tomoyo-dev-en@lists.sourceforge.jp > > http://lists.sourceforge.jp/mailman/listinfo/tomoyo-dev-en -- -Shawn Landden _______________________________________________ tomoyo-dev-en mailing list tomoyo-dev-en@lists.sourceforge.jp http://lists.sourceforge.jp/mailman/listinfo/tomoyo-dev-en