mainDazuko - Support: sr #106389, 2.3.5 dazuko problems with...

 
 

sr #106389: 2.3.5 dazuko problems with linux.org 2.6.25 kernel

Submitter:  Michael <rvf16>
Submitted:  Sun 08 Jun 2008 07:13:20 PM UTC
   
 
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 21 Jun 2008 11:02:00 AM UTC, comment #2: 

The proper way to use Dazuko with a 2.6.25 kernel is to use the patch. With the Dazuko patch you can only use SElinux OR Capability, but not both. This was mentioned on the mailing list:

http://lists.gnu.org/archive/html/dazuko-help/2008-04/msg00010.html

You seem to be using the avahi-daemon, which requires capabilties. If you don't use SElinux, then you can disable SElinux with the selinux=0 argument. (You've already mentioned that is works in that configuration.)

There is now another option available... using DazukoFS. This is available in the Development section of the Downloads page. DazukoFS is still under development, so it may not be an option for you if the possible consequences (data loss or corruption) are too high.

John Ogness <ogman>
Group administrator
Thu 19 Jun 2008 11:21:03 AM UTC, comment #1: 

Hello there.

Any development on this problem?
Does this happen only under my Fedora?

Thanks.

Michael <rvf16>
Sun 08 Jun 2008 07:13:20 PM UTC, original submission:  

Hello and thank you for keeping the dazuko project alive.

Unfortunately i have problems with both dazuko and patch-dazuko.
I have a Dell Inspiron E1505 laptop running fedora fc6.

1st way - Building dazuko-2.3.5 on a standard 2.6.25.5 linux.org kernel still produces same errors during make:

[root@xxx dazuko-2.3.5]# ./configure --enable-syscalls --mapfile=/boot/System.map-$(uname -r) --sct-readonly
checking host system type... Linux
checking for make utility... ok (make)
checking for C compiler... ok (cc)
kernel source in /lib/modules/2.6.25.5.xxx.fc6/source... yes
kernel build source in /lib/modules/2.6.25.5.xxx.fc6/build... 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.25)
checking whether __d_path() is exported... no (using local copy, dangerous)
checking for System.map file... ok (/boot/System.map-2.6.25.5.xxx.fc6)
locating sys_call_table... ok (0xc0348be0)
checking sys_call_table status... read-only (forced)
locating do_execve... ok (0xc017ec5d)
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() = yes (WARNING: dangerous for SMP kernels, see README.linux26)
path resolution = registered daemon context
module debug = no
library 1.x compatibility = yes

[root@xxx dazuko-2.3.5]# make
make -C /lib/modules/2.6.25.5.xxx.fc6/build SUBDIRS="/compilations/fc6/dazuko-2.3.5" modules
make[1]: Entering directory `/compilations/rpmbuild/fc6/linux-2.6.25.5'
  CC [M]  /compilations/fc6/dazuko-2.3.5/dazuko_linux.o
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_get_filename_dentry’:
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:659: error: ‘struct nameidata’ has no member named ‘dentry’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_get_full_filename’:
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:899: error: ‘struct nameidata’ has no member named ‘mnt’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c: In function ‘dazuko_fill_file_struct_cleanup’:
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:1004: error: implicit declaration of function ‘path_release’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c: In function ‘linux_dazuko_sys_execve’:
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:1849: error: ‘struct pt_regs’ has no member named ‘ebx’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:1887: error: ‘struct pt_regs’ has no member named ‘ebx’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:1891: error: ‘struct pt_regs’ has no member named ‘ecx’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:1891: error: ‘struct pt_regs’ has no member named ‘edx’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c: In function ‘xp_sys_hook’:
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2179: error: invalid operands to binary ==
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2187: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2257: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2261: error: incompatible types in assignment
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2287: warning: ‘change_page_attr’ is deprecated (declared at include/asm/cacheflush.h:28)
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2288: error: implicit declaration of function ‘global_flush_tlb’
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2328: warning: ‘change_page_attr’ is deprecated (declared at include/asm/cacheflush.h:28)
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c: In function ‘xp_sys_unhook’:
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2375: warning: ‘change_page_attr’ is deprecated (declared at include/asm/cacheflush.h:28)
/compilations/fc6/dazuko-2.3.5/dazuko_linux.c:2408: warning: ‘change_page_attr’ is deprecated (declared at include/asm/cacheflush.h:28)
make[2]: * [/compilations/fc6/dazuko-2.3.5/dazuko_linux.o] Error 1
make[1]: * [_module_/compilations/fc6/dazuko-2.3.5] Error 2
make[1]: Leaving directory `/compilations/fc6/rpmbuild/linux-2.6.25.5'
make: * [dummy_rule] Error 2

2nd way - patch-dazuko-linux-2.6.25.diff.gz is applied on linux.org 2.6.25.5 kernel without errors, kernel is build and installed without errors but HAL and avahid fail during system boot with kernel parameters selinux=1 dazuko=1 and here is the /var/log/messages relevant lines :

Jun  8 21:35:10 xxx mcstransd: mcstransd starting
Jun  8 21:35:10 xxx mcstransd: Error dropping capabilities, aborting: Operation not permitted
Jun  8 21:35:10 xxx: [    0.080065] SELinux:  Initializing.
Jun  8 21:35:10 xxx: [    0.080085] selinux_register_security:  Registering secondary module dazuko
Jun  8 21:35:10 xxx: [    0.080088] dazuko: registered with LSM as secondary module
Jun  8 21:35:10 xxx: [    0.080092] selinux_register_security:  There is already a secondary security module registered.
Jun  8 21:35:10 xxx: [    0.080193] Failure registering capabilities with primary security module.
Jun  8 21:35:40 xxx avahi-daemon[4837]: cap_set_proc() failed: Operation not permitted
Jun  8 21:35:55 xxx gnome-power-manager: (root) Critical error: This program cannot start until you start the dbus system service. It is <b>strongly recommended</b> you reboot your computer after starting this service.

If i boot with kernel parameters "selinux=0 dazuko=1" or "selinux=1 dazuko=0" there are no errors.

Looks like a selinux vs dazuko problem.

Any thoughts?
Thank you very much
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 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-06-21 ogman Assigned toNone ogman

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code