From m.mahmoudi at gawab.com Tue Apr 5 09:58:04 2011 From: m.mahmoudi at gawab.com (Mohammad Mahmoudi) Date: Tue, 05 Apr 2011 07:58:04 GMT Subject: [rsbac] log file; Re: RSBAC vs. Btrfs (shutdown problem): log file Message-ID: <20110405075804.10975.qmail@info3.gawab.com> Dear Martinez Here is my logs when I shutdown my system Unmounting file systems: ------------[ cut here ]------------ kernel BUG at fs/dcache.c:670! invalid opcode: 0000 [#1] SMP last sysfs file: /sys/devices/pci0000:00/0000:00:03.0/uevent Modules linked in: ipv6 dm_multipath virtio_balloon 8139too 8139cp mii virtio_pci [last unloaded: scsi_wait_scan] Pid: 1395, comm: umount Not tainted (2.6.32.21-Saman_R3.i686.PAE #1) EIP: 0060:[] EFLAGS: 00010246 CPU: 0 EIP is at shrink_dcache_for_umount_subtree+0x15b/0x1fd EAX: 0000004c EBX: de3b0dd0 ECX: c0b59338 EDX: 00000000 ESI: 00000001 EDI: c097894c EBP: dd48be6c ESP: dd48be40 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 Process umount (pid: 1395, ti=dd48a000 task=dc98b300 task.ti=dd48a000) Stack: c09722c2 de3b0dd0 00000002 de3b0e2c 00000001 c097894c ddd93364 de3b0e2c <0> ddd93200 c0841ebc c0a5cf64 dd48be78 c05313fa ddd93200 dd48be88 c051f088 <0> de025600 00000003 dd48be98 c051f13c ddd93200 c055b69a dd48beac c051f469 Call Trace: [] ? shrink_dcache_for_umount+0x32/0x3c [] ? generic_shutdown_super+0x1a/0xac [] ? kill_block_super+0x22/0x36 [] ? vfs_quota_off+0x0/0x17 [] ? deactivate_super+0x53/0x66 [] ? mntput_no_expire+0x8e/0xba [] ? release_mounts+0x6f/0x7a [] ? do_umount+0x3f8/0x45a [] ? putname+0x2a/0x33 [] ? putname+0x2a/0x33 [] ? putname+0x2a/0x33 [] ? security_capable+0x22/0x27 [] ? security_capable+0x22/0x27 [] ? security_capable+0x22/0x27 [] ? sys_umount+0x7b/0x9d [] ? syscall_call+0x7/0xb Code: 38 8b 43 28 89 45 f0 8b 4b 10 31 c0 85 c9 74 03 8b 41 20 81 c2 64 01 00 00 52 57 56 ff 75 f0 50 53 68 c2 22 97 c0 e8 ef 77 2f 00 <0f> 0b 83 c4 1c eb fe 8b 73 1c 39 f3 75 04 31 f6 eb 03 3e ff 0e EIP: [] shrink_dcache_for_umount_subtree+0x15b/0x1fd SS:ESP 0068:dd48be40 ---[ end trace d1fe4c5183f49fe7 ]--- /etc/init.d/functions: line 520: 1395 Segmentation fault "$@" [FAILED] 0000000208|do_umount() [sys_umount()]: umount failed -> calling rsbac_mount for Device 00:18 umount2: Device or resource busy umount: /proc/bus/usb: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) 0000000209|do_umount() [sys_umount()]: umount failed -> calling rsbac_mount for Device 00:15 umount2: Device or resource busy umount: /dev/shm: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) 0000000210|do_umount() [sys_umount()]: umount failed -> calling rsbac_mount for Device 00:15 umount2: Device or resource busy 0000000211|do_umount() [sys_umount()]: umount failed -> calling rsbac_mount for Device 00:11 umount2: Device or resource busy umount: /dev/pts: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) 0000000212|do_umount() [sys_umount()]: umount failed -> calling rsbac_mount for Device 00:11 umount2: Device or resource busy mount: /boot not mounted already, or bad option Please stand by while rebooting the system... type=1128 audit(1301452824.770:15): user pid=1287 uid=0 auid=4294967295 ses=4294967295 msg='init: exe="/sbin/reboot" hostname=? addr=? terminal=console res=success' > Javier Juan Martinez Cabezón gmail.com> writes: > Check your logs and send us the last lines when you shutdown your system > 2011/3/13 Mohammad Mahmoudi > Thanks a lot for your reply. > > In my rsbac config., secure delete disabled. CAP module not enabled. > Only. AUTH,RC, and MAC modules have enabled. System boots in softmode, > thus policy is not enforce. > > Javier Juan Martínez Cabezón gmail.com> writes: > > > > > Please try to give some more information to permit us to help you > properly. > > > > I suppose that you can boot perfectly, but only you have troubles > rebooting > > and shutting down the system. > > > > Some questions that could be of interest are: Is secure delete \ > > activated? > Is > > trying your init using it on this btrfs system? > > > > Secure delete IS NOT supported in btrfs, so don't get it enabled. > > > > Which modules did you enable? > > > > Another question that you shall check with your logs, has Init enough > > privileges to shutdown/rebooting the system > > > > Is CAP_SYS_BOOT and CAP_SYS_ADMIN granted? > > > > 2011/3/8 Mohammad Mahmoudi gawab.com> > > > > > > > > I have installed RSBAC precompiled Linux kernel 2.6.32 on my system. > Root > > > file system is Btrfs. But, system can not reboot or shutdown. Why? ----------------------------------------------------------------------------------------------------------------------- Send big files for free. Simple steps. No registration. Visit now http://www.nawelny.com