02-03-2016, 07:44 AM
(02-03-2016, 06:56 AM)Hahaburger Wrote: Thank you for testing Here I have added SELinux patches to kernel and created new boot.img if you want to test more:
https://drive.google.com/file/d/0B5NrIPX...sp=sharing
So I tried this newer boot.img in addition to the earlier system.img on a clean android_20160112.img μSD card and here are the results.
Code:
[ 18.202055] Freeing unused kernel memory: 524K (ffffffc0009e5000 - ffffffc000a68000)
[ 18.212859] init: init started!
[ 18.226228] SELinux: 2048 avtab hash slots, 4929 rules.
[ 18.237488] SELinux: 2048 avtab hash slots, 4929 rules.
[ 18.243243] SELinux: 1 users, 2 roles, 531 types, 0 bools, 1 sens, 1024 cats
[ 18.251092] SELinux: 87 classes, 4929 rules
[ 18.259167] SELinux: Completing initialization.
[ 18.264211] SELinux: Setting up existing superblocks.
[ 18.269866] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[ 18.277670] SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
[ 18.285766] SELinux: initialized (dev bdev, type bdev), not configured for labeling
[ 18.294154] SELinux: initialized (dev proc, type proc), uses genfs_contexts
[ 18.301784] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.309698] SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
[ 18.318575] SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
[ 18.331643] SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
[ 18.339192] SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
[ 18.346706] SELinux: initialized (dev anon_inodefs, type anon_inodefs), not configured for labeling
[ 18.356606] SELinux: initialized (dev devpts, type devpts), uses transition SIDs
[ 18.364713] SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
[ 18.373344] SELinux: initialized (dev configfs, type configfs), not configured for labeling
[ 18.382477] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.390390] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[ 18.588759] type=1403 audit(1262304012.920:2): policy loaded auid=4294967295 ses=4294967295
[ 18.598612] init: (Initializing SELinux enforcing took 0.39s.)
[ 18.611226] init: init second stage started!
[ 18.668715] init: waitpid failed: No child processes
[ 18.674410] init: (Loading properties from /default.prop took 0.00s.)
[ 18.683517] init: (Parsing /init.environ.rc took 0.00s.)
[ 18.689637] init: (Parsing /init.usb.rc took 0.00s.)
[ 18.695739] init: (Parsing init.common.rc took 0.00s.)
[ 18.701574] init: (Parsing init.sun50iw1p1.usb.rc took 0.00s.)
[ 18.708040] init: (Parsing init.zygote64_32.rc took 0.00s.)
[ 18.714150] init: (Parsing /init.sun50iw1p1.rc took 0.02s.)
[ 18.720632] init: (Parsing /init.usb.configfs.rc took 0.00s.)
[ 18.726997] init: /init.zygote64_32.rc: 1: ignored duplicate definition of service 'zygote'
[ 18.736144] init: /init.zygote64_32.rc: 10: ignored duplicate definition of service 'zygote_secondary'
[ 18.746331] init: (Parsing /init.zygote64_32.rc took 0.02s.)
[ 18.752665] init: (Parsing /init.trace.rc took 0.00s.)
[ 18.758342] init: could not import file '/init.cm.rc' from '/init.rc'
[ 18.765400] init: (Parsing /init.rc took 0.08s.)
[ 18.770697] init: SELinux: Could not get canonical path /adb_keys restorecon: No such file or directory.
[ 18.781160] init: Starting service 'ueventd'...
[ 18.786505] init: Waiting for /dev/.coldboot_done...
[ 18.788741] ueventd: ueventd started!
[ 19.187628] ueventd: Coldboot took 0.40s.
[ 19.193881] init: Waiting for /dev/.coldboot_done took 0.41s.
[ 19.200255] init: /dev/hw_random not found
[ 19.206500] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 19.215226] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 19.225704] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 19.239152] init: write_file: Unable to open '/proc/cpu/alignment': No such file or directory
[ 19.248780] init: write_file: Unable to open '/proc/sys/kernel/sched_compat_yield': No such file or directory
[ 19.261623] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 19.269955] init: write_file: Unable to write to '/dev/cpuctl/cpu.shares': Invalid argument
[ 19.280937] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 19.294266] SELinux: initialized (dev pstore, type pstore), uses genfs_contexts
[ 19.302593] init: write_file: Unable to open '/proc/sys/abi/swp': No such file or directory
[ 19.312605] type=1400 audit(1262304013.670:3): avc: denied { create } for pid=1 comm="init" name="sdcard" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0
[ 19.331678] type=1400 audit(1262304013.680:4): avc: denied { create } for pid=1 comm="init" name="extsd" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0
[ 19.350401] type=1400 audit(1262304013.700:5): avc: denied { create } for pid=1 comm="init" name="usbhost" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0
[ 19.369512] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 19.377951] init: /dev/hw_random not found
[ 19.400420] type=1400 audit(1262304013.750:6): avc: denied { sys_module } for pid=1 comm="init" capability=16 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=0
[ 19.421677] init: Warning! Service exec 0 (/sbin/busybox) needs a SELinux domain defined; please fix!
[ 19.431873] init: Starting service 'exec 0 (/sbin/busybox)'...
[ 19.438994] type=1400 audit(1262304013.790:7): avc: denied { execute_no_trans } for pid=1377 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 19.461008] init: cannot execve('/sbin/busybox'): Permission denied
[ 19.468152] init: Service 'exec 0 (/sbin/busybox)' (pid 1377) exited with status 127
[ 38.502062] fs_mgr: __mount(source=/dev/block/by-name/system,target=/system,type=ext4)=-1
[ 38.511092] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/system at /system options: (null) error: No such file or directory
[ 58.187046] fs_mgr: __mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
[ 58.195889] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/cache at /cache options: nomblk_io_submit,barrier=1 error: No such file or directory
[ 77.863488] fs_mgr: __mount(source=/dev/block/by-name/alog,target=/logger,type=ext4)=-1
[ 77.872308] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/alog at /logger options: nomblk_io_submit,barrier=1 error: No such file or directory
[ 97.540000] fs_mgr: __mount(source=/dev/block/by-name/UDISK,target=/data,type=ext4)=-1
[ 97.548708] fs_mgr: fs_mgr_mount_all(): possibly an encryptable blkdev /dev/block/by-name/UDISK for mount /data type ext4 )
[ 97.561118] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 97.569099] init: fs_mgr_mount_all returned an error
[ 97.574853] init: fs_mgr_mount_all returned unexpected error 255
[ 97.581847] init: cannot find '/system/bin/app_process64', disabling 'zygote'
[ 97.589707] init: cannot find '/system/bin/app_process32', disabling 'zygote_secondary'
[ 97.598510] init: cannot find '/system/bin/sh', disabling 'console'
[ 97.608896] type=1400 audit(1262304093.230:8): avc: denied { write } for pid=1 comm="init" name="zram0" dev="tmpfs" ino=4291 scontext=u:r:init:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
[ 97.629643] fs_mgr: swapon failed for /dev/block/zram0
[ 97.635383] init: cannot find '/system/bin/installd', disabling 'installd'
[ 97.642985] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.650762] init: SELinux: Could not set context for /cache: Read-only file system
[ 97.661029] init: SELinux: Could not set context for /logger: Read-only file system
[ 97.669772] init: (Loading properties from /system/build.prop took 0.00s.)
[ 97.677375] init: (Loading properties from /vendor/build.prop took 0.00s.)
[ 97.684941] init: (Loading properties from /factory/factory.prop took 0.00s.)
[ 97.692959] init: /recovery not specified in fstab
[ 97.699326] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.706125] init: cannot find '/system/bin/vold', disabling 'vold'
[ 97.713402] init: Not bootcharting.
[ 97.744861] init: SELinux: Could not get canonical path /data/user/0 restorecon: No such file or directory.
[ 97.755604] init: cannot find '/system/bin/tzdatacheck', disabling 'exec 1 (/system/bin/tzdatacheck)'
[ 97.766452] init: cannot find '/system/bin/gatekeeperd', disabling 'gatekeeperd'
[ 97.774584] init: cannot find '/system/xbin/perfprofd', disabling 'perfprofd'
[ 97.782448] init: cannot find '/system/bin/sdcard', disabling 'sdcard'
[ 97.789909] init: Warning! Service bootclone needs a SELinux domain defined; please fix!
[ 97.798864] init: Starting service 'bootclone'...
[ 97.804756] type=1400 audit(1262304093.430:9): avc: denied { execute_no_trans } for pid=1380 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 97.804772] init: Warning! Service precopy needs a SELinux domain defined; please fix!
[ 97.804782] init: Starting service 'precopy'...
[ 97.805352] init: (Loading properties from /data/local.prop took 0.00s.)
[ 97.805461] type=1400 audit(1262304093.430:10): avc: denied { execute_no_trans } for pid=1381 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 97.805500] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.805514] init: cannot execve('/sbin/busybox'): Permission denied
[ 97.805556] init: cannot find '/system/bin/logd', disabling 'logd-reinit'
[ 97.806188] init: Service 'precopy' (pid 1381) exited with status 127
[ 97.811231] init: Starting service 'healthd'...
[ 97.811742] init: cannot find '/system/bin/lmkd', disabling 'lmkd'
[ 97.811793] init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
[ 97.811863] init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
[ 97.811941] init: cannot find '/system/bin/sayeye', disabling 'sayeye'
[ 97.813948] binder: 1382:1382 transaction failed 29189, size 0-0
[ 97.814697] init: write_file: Unable to open '/proc/bluetooth/sleep/lpm': No such file or directory
[ 97.816817] init: cannot find '/system/bin/sh', disabling 'console'
[ 97.816999] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 97.817056] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[ 97.817116] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[ 97.817174] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[ 97.817234] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 97.817290] init: Starting service 'adbd'...
[ 98.018201] init: cannot execve('/sbin/busybox'): Permission denied
[ 98.025408] init: Service 'bootclone' (pid 1380) exited with status 127
[ 98.798065] binder: 1382:1382 transaction failed 29189, size 0-0
[ 99.788726] binder: 1382:1382 transaction failed 29189, size 0-0
[ 100.779390] binder: 1382:1382 transaction failed 29189, size 0-0
[ 101.770018] binder: 1382:1382 transaction failed 29189, size 0-0
[ 102.760789] binder: 1382:1382 transaction failed 29189, size 0-0
[ 103.751433] binder: 1382:1382 transaction failed 29189, size 0-0
...
The HDMI output shows the A64 bootlogo (it's stuck) and the console output is more encouraging.
I think the main issue is with being unable to mount the system partition.
I am still happy to try any newer image.