mainDazuko - Support: sr #106532, Patch for 2.6.27

 
 

sr #106532: Patch for 2.6.27

Submitter:  Michael <rvf16>
Submitted:  Sun 26 Oct 2008 08:45:41 AM UTC
   
 
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 17 Mar 2009 09:12:29 PM UTC, comment #5: 

For the 2.6.27 kernel you should be using Dazuko together with RedirFS. A very quick HOWTO was posted on the devel mailing list:

http://lists.gnu.org/archive/html/dazuko-devel/2009-02/msg00026.html

John Ogness <ogman>
Group administrator
Wed 07 Jan 2009 09:16:35 AM UTC, comment #4: 

Any idea when we will get a response here?

# ./configure --enable-syscalls --sct-readonly --mapfile=/usr/src/linux/System.map
checking host system type... Linux
checking for make utility... ok (make)
checking for C compiler... ok (cc)
kernel source in /lib/modules/2.6.27.9-159.fc10.i686.PAE/source... no
kernel build source in /lib/modules/2.6.27.9-159.fc10.i686.PAE/build... no
kernel build source in /usr/src/linux... yes
kernel source in /usr/src/linux... yes
acquiring Linux kernel code configuration... ok
checking if Linux is RSBAC patched... no
checking if devfs is enabled... no
discovered host system... Linux (2.6.27)
checking whether __d_path() is exported... yes
checking for System.map file... ok (/usr/src/linux/System.map)
locating sys_call_table... ok (0xc06ae9c8)
checking sys_call_table status... read-only (forced)
locating do_execve... ok (0xc0495fff)
identifying device API... ok
inspecting class type... ok (class)
inspecting suspend function... ok (suspend2)
inspecting task_struct structure... ok (using parent)
configure: creating Makefile
configure: creating library/Makefile
configure: creating example_c/Makefile

./configure successful

=======================
 Configuration summary
=======================

module events = ON_OPEN ON_CLOSE ON_EXEC
devfs support = no
rsbac support = no
hooking via syscalls = yes
local __d_path() = no
path resolution = registered daemon context
module debug = no
library 1.x compatibility = yes

# make
make -C /usr/src/linux SUBDIRS="/root/building/dazuko-2.3.5" modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.9-159.fc10.i686'
  CC [M]  /root/building/dazuko-2.3.5/dazuko_linux.o
/root/building/dazuko-2.3.5/dazuko_linux.c:90: error: conflicting types for ‘__d_path’
include/linux/dcache.h:304: error: previous declaration of ‘__d_path’ was here
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_get_files_struct’:
/root/building/dazuko-2.3.5/dazuko_linux.c:573: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_put_files_struct’:
/root/building/dazuko-2.3.5/dazuko_linux.c:585: error: implicit declaration of function ‘put_files_struct’
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_get_filename_dentry’:
/root/building/dazuko-2.3.5/dazuko_linux.c:659: error: ‘struct nameidata’ has no member named ‘dentry’
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_fcheck_files’:
/root/building/dazuko-2.3.5/dazuko_linux.c:710: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c:721: error: implicit declaration of function ‘files_fdtable’
/root/building/dazuko-2.3.5/dazuko_linux.c:721: warning: initialization makes pointer from integer without a cast
/root/building/dazuko-2.3.5/dazuko_linux.c:723: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c:725: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c:726: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c:726: warning: type defaults to ‘int’ in declaration of ‘_________p1’
/root/building/dazuko-2.3.5/dazuko_linux.c:726: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c:726: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c:726: warning: type defaults to ‘int’ in declaration of ‘type name’
/root/building/dazuko-2.3.5/dazuko_linux.c:726: warning: assignment makes pointer from integer without a cast
/root/building/dazuko-2.3.5/dazuko_linux.c:740: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_get_fd_dentry’:
/root/building/dazuko-2.3.5/dazuko_linux.c:763: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c:799: error: dereferencing pointer to incomplete type
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_get_full_filename’:
/root/building/dazuko-2.3.5/dazuko_linux.c:899: error: ‘struct nameidata’ has no member named ‘mnt’
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_fill_file_struct_cleanup’:
/root/building/dazuko-2.3.5/dazuko_linux.c:1004: error: implicit declaration of function ‘path_release’
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘linux_dazuko_sys_execve’:
/root/building/dazuko-2.3.5/dazuko_linux.c:1849: error: ‘struct pt_regs’ has no member named ‘ebx’
/root/building/dazuko-2.3.5/dazuko_linux.c:1887: error: ‘struct pt_regs’ has no member named ‘ebx’
/root/building/dazuko-2.3.5/dazuko_linux.c:1891: error: ‘struct pt_regs’ has no member named ‘ecx’
/root/building/dazuko-2.3.5/dazuko_linux.c:1891: error: ‘struct pt_regs’ has no member named ‘edx’
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘xp_sys_hook’:
/root/building/dazuko-2.3.5/dazuko_linux.c:2179: error: invalid operands to binary == (have ‘struct path’ and ‘void *’)
/root/building/dazuko-2.3.5/dazuko_linux.c:2187: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/root/building/dazuko-2.3.5/dazuko_linux.c:2217: error: implicit declaration of function ‘class_device_create’
/root/building/dazuko-2.3.5/dazuko_linux.c:2257: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/root/building/dazuko-2.3.5/dazuko_linux.c:2261: error: incompatible types in assignment
/root/building/dazuko-2.3.5/dazuko_linux.c:2287: error: implicit declaration of function ‘change_page_attr’
/root/building/dazuko-2.3.5/dazuko_linux.c:2288: error: implicit declaration of function ‘global_flush_tlb’
/root/building/dazuko-2.3.5/dazuko_linux.c: In function ‘xp_sys_unhook’:
/root/building/dazuko-2.3.5/dazuko_linux.c:2427: error: implicit declaration of function ‘class_device_destroy’
make[2]: * [/root/building/dazuko-2.3.5/dazuko_linux.o] Error 1
make[1]: * [_module_/root/building/dazuko-2.3.5] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.9-159.fc10.i686'
make: * [dummy_rule] Error 2

David <unixuserwannabe>
Tue 25 Nov 2008 01:03:16 PM UTC, comment #3: 

Hello again.

I have tried you recommendation with no success.

Under personally compiled Linux.org 2.6.27.7 kernel, i compiled redirfs-0.3 successfully and then attempted to compile
dazuko-2.3.6-pre2. Configuration works in both following cases but make fails.

1) Configuration via "./configure --enable-syscalls --mapfile=/boot/System.map-$(uname -r) --sct-readonly" :

make -C /lib/modules/2.6.27.7/build SUBDIRS="/dazuko" modules
make[1]: Entering directory `/usr/src/kernels/linux-2.6.27.7'
  CC [M]  /dazuko/dazuko_core.o
  CC [M]  /dazuko/dazuko_transport.o
  CC [M]  /dazuko/dazuko_linux.o
/dazuko/dazuko_linux.c:90: error: conflicting types for ‘__d_path’
include/linux/dcache.h:304: error: previous declaration of ‘__d_path’ was here
/dazuko/dazuko_linux.c: in function ‘dazuko_get_files_struct’:
/dazuko/dazuko_linux.c:569: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c: in function ‘dazuko_put_files_struct’:
/dazuko/dazuko_linux.c:581: error: implicit declaration of function ‘put_files_struct’
/dazuko/dazuko_linux.c: in function ‘dazuko_get_filename_dentry’:
/dazuko/dazuko_linux.c:655: error: ‘struct nameidata’ has no member named ‘dentry’
/dazuko/dazuko_linux.c: in function ‘dazuko_fcheck_files’:
/dazuko/dazuko_linux.c:706: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c:717: error: implicit declaration of function ‘files_fdtable’
/dazuko/dazuko_linux.c:717: warning: initialization makes pointer from integer without a cast
/dazuko/dazuko_linux.c:719: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c:721: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c:722: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c:722: warning: type defaults to ‘int’ in declaration of ‘_________p1’
/dazuko/dazuko_linux.c:722: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c:722: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c:722: warning: type defaults to ‘int’ in declaration of ‘type name’
/dazuko/dazuko_linux.c:722: warning: assignment makes pointer from integer without a cast
/dazuko/dazuko_linux.c:736: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c: in function ‘dazuko_get_fd_dentry’:
/dazuko/dazuko_linux.c:759: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c:795: error: dereferencing pointer to incomplete type
/dazuko/dazuko_linux.c: in function ‘dazuko_get_full_filename’:
/dazuko/dazuko_linux.c:895: error: ‘struct nameidata’ has no member named ‘mnt’
/dazuko/dazuko_linux.c: in function ‘dazuko_fill_file_struct_cleanup’:
/dazuko/dazuko_linux.c:1000: error: implicit declaration of function ‘path_release’
/dazuko/dazuko_linux.c: in function ‘linux_dazuko_sys_execve’:
/dazuko/dazuko_linux.c:1845: error: ‘struct pt_regs’ has no member named ‘ebx’
/dazuko/dazuko_linux.c:1883: error: ‘struct pt_regs’ has no member named ‘ebx’
/dazuko/dazuko_linux.c:1887: error: ‘struct pt_regs’ has no member named ‘ecx’
/dazuko/dazuko_linux.c:1887: error: ‘struct pt_regs’ has no member named ‘edx’
/dazuko/dazuko_linux.c: in function ‘xp_sys_hook’:
/dazuko/dazuko_linux.c:2175: error: invalid operands to binary ==
/dazuko/dazuko_linux.c:2183: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/dazuko/dazuko_linux.c:2215: error: implicit declaration of function ‘class_device_create’
/dazuko/dazuko_linux.c:2256: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/dazuko/dazuko_linux.c:2260: error: incompatible types in assignment
/dazuko/dazuko_linux.c:2286: error: implicit declaration of function ‘change_page_attr’
/dazuko/dazuko_linux.c:2287: error: implicit declaration of function ‘global_flush_tlb’
/dazuko/dazuko_linux.c: in function ‘xp_sys_unhook’:
/dazuko/dazuko_linux.c:2429: error: implicit declaration of function ‘class_device_destroy’
make[2]: * [/dazuko/dazuko_linux.o] Error 1
make[1]: * [_module_/dazuko] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.7'
make: * [dummy_rule] Error 2

2) Configuration via simple "./configure" :

make -C /lib/modules/2.6.27.7/build SUBDIRS="dazuko" modules
make[1]: Entering directory `/usr/src/2.6.27.7'
  CC [M]  dazuko/dazuko_core.o
In file included from dazuko/dazuko_platform.h:4,
                 from dazuko/dazuko_core.c:36:
dazuko/dazuko_linux26.h:27:27: error: asm/semaphore.h: no such file or directory
In file included from dazuko/dazuko_platform.h:4,
                 from dazuko/dazuko_core.c:36:
dazuko/dazuko_linux26.h:50: error: field ‘mutex’ has incomplete type
make[2]: * [dazuko/dazuko_core.o] Error 1
make[1]: * [_module_dazuko] Error 2
make[1]: Leaving directory `/usr/src/2.6.27.7'
make: * [dummy_rule] Error 2

I also tried a patch i found on the iternet with no luck.

Any ideas?
Thank you.
Regards.

Michael <rvf16>
Sun 09 Nov 2008 01:34:03 PM UTC, comment #2: 

I started creating a new patch for 2.6.27 but then discovered that quite a bit has changed in LSM for this version. I do not have time to implement it. (Especially since Dazuko 2.x will shift to use RedirFS and Dazuko 3 will be DazukoFS.)

I recommend using Dazuko with RedirFS for Linux 2.6.27.

John Ogness <ogman>
Group administrator
Sun 09 Nov 2008 10:00:59 AM UTC, comment #1: 

Hallo again.
Please inform us weather there will be patches of the stable dazuko for linux.org kernels as the latest 2.6.27 is half way through its life expectansy and we still don't have a patch to utilize antivirus scanners.

Thank you.

Michael <rvf16>
Sun 26 Oct 2008 08:45:41 AM UTC, original submission:  

Hallo there.

Are you planing on providing a dazuko patch for the 2.6.27 kernel or should we expect only dazukofs support from now on?

Thank you.
Regards.

Michael <rvf16>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by unixuserwannabe (Posted a comment)
  • -email is unavailable- added by ogman (Posted a comment)
  • -email is unavailable- added by rvf16 (Submitted the item)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-19 ogman Assigned toogman None
    2008-11-09 ogman Assigned toNone ogman

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code