jeroen / RAppArmor

R interfaces to Linux and AppArmor security methods
cran.r-project.org/package=RAppArmor
54 stars 15 forks source link

SUSE 11 support #9

Closed xuezhe1984 closed 11 years ago

xuezhe1984 commented 11 years ago

gcc -std=gnu99 -I/usr/local/lib64/R/include -DNDEBUG -I/usr/local/include -f pic -g -O2 -c kill_wrapper.c -o kill_wrapper.o gcc -std=gnu99 -I/usr/local/lib64/R/include -DNDEBUG -I/usr/local/include -f pic -g -O2 -c ncores.c -o ncores.o gcc -std=gnu99 -I/usr/local/lib64/R/include -DNDEBUG -I/usr/local/include -f pic -g -O2 -c rlimits.c -o rlimits.o rlimits.c: In function ârlimit_rttimeâ: rlimits.c:114: error: âRLIMIT_RTTIMEâ undeclared (first use in this function) rlimits.c:114: error: (Each undeclared identifier is reported only once rlimits.c:114: error: for each function it appears in.) rlimits.c: In function ârlimit_wrapperâ: rlimits.c:165: warning: implicit declaration of function âprlimitâ make: *\ [rlimits.o] Error 1 ERROR: compilation failed for package âRAppArmorâ

The downloaded source packages are in â/tmp/RtmpHN4Jh7/downloaded_packagesâ Updating HTML index of packages in '.Library' Making packages.html ... done Warning message: In install.packages("RAppArmor") : installation of package âRAppArmorâ had non-zero exit status

xuezhe1984 commented 11 years ago

and I have check the /usr/local/lib64/R/include,and all the source in R and RAppArmor ,there is no place define the RLIMIT_RTTIME.

I use the command grep -r "RLIMIT_RTTIME" * to search it.

xuezhe1984 commented 11 years ago

and for I want to ignore the RLIMIT_RTTIME issue ,I commet out the function rlimit_rttime()in rlimits.c.

it has the install problem like below: hadoop1821:/home/tester/Desktop # R CMD INSTALL RAppArmor

xuezhe1984 commented 11 years ago
xuezhe1984 commented 11 years ago

ld -d RAppArmor.so ld: warning: cannot find entry symbol _start; not setting start address RAppArmor.so: undefined reference to aa_getcon' RAppArmor.so: undefined reference toaa_find_mountpoint' RAppArmor.so: undefined reference to prlimit' RAppArmor.so: undefined reference toaa_is_enabled'

jeroen commented 11 years ago

It looks like you use a linux kernel that is too old, and does not support some of the rlimit/apparmor functionality. The RAppArmor package requires a relatively recent Linux version. Things will work out of the box on OpenSuse 12, but on OpenSuse 11 is a bit old and some essential functionality is missing from the kernel. Can you print the output of:

uname -a

The easiest way to get things to work would be to upgrade to OpenSuse 12. If you really need Suse 11, we can try to create a special version of AppArmor. However, that would require quite some work. From my first impression, the following Linux functions are unavailable in suse 11:

Do you have a opportunity to test on Suse 12?

hceylan97 commented 10 years ago

what is ever solved for suse version 11?

jeroen commented 10 years ago

The kernel is too old. It works on opensuse 12. Suse enterprise 12 will be released later this year.