yaffs 加入selinux

博客讨论了如何在yaffs2文件系统中加入SELinux的支持,指出上游yaffs2已内置了对扩展属性的支持,并提供了相关邮件列表中的小改动补丁。文章还提到了需要启用内核的LSM和SELinux选项来实现强制信息流控制。
摘要由CSDN通过智能技术生成
www.enck.org/tools/yaffs_xattr.patch

拷贝到内核目录
patch -p1 > yaffs_xattr.patch








froyo : ext4 instead of yaffs2
19 posts by 7 authors in Android Linux Kernel Development
 
andria
Sign in to reply
More message actions
5/9/11
Hi,

I'm trying to moun /data with ext4 instead of yaffs2 on a froyo
emulator.

1- I enabled the support of ext3 and ext4 in the .config and built a
new kernel
2- I launched the emulator with the new zImage to make sure that there
was no error. No error
3- I replaced yaffs2 with ext4 in the init.rc inside froyo source and
built new system.img and ramdisk.img
mount yaffs2 mtd@userdata /data nosuid nodev --> mount ext4
mtd@userdata /data nosuid nodev
4- I launched the emulator and I got errors. Errors occur: services
always die and there is problem with the framework. Here is a sample
of the error message:

D/AudioHardwareInterface(  152): setMode(NORMAL)
I/CameraService(  152): CameraService started: pid=152
I/AudioFlinger(  152): AudioFlinger's thread 0xb3f0 ready to run
E/keystore(  158): chdir: /data/misc/keystore: No such file or
directory
D/AndroidRuntime(  157):
D/AndroidRuntime(  157): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime(  157): CheckJNI is ON
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at)core. jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/core.jar (/data/dalvik-cache/
system(at)framework(at)core. jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/core.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at)ext. jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/ext.jar (/data/dalvik-cache/
system(at)framework(at)ext. jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/ext.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at) framework.jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/framework.jar (/data/dalvik-cache/
system(at)framework(at) framework.jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/framework.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at) android.policy.jar(at)classes. dex': No such
file or directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/android.policy.jar (/data/dalvik-cache/
system(at)framework(at) android.policy.jar(at)classes. dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/android.policy.jar'
E/dalvikvm(  157): Can't open dex cache '/data/dalvik-cache/
system(at)framework(at) services.jar(at)classes.dex': No such file or
directory
I/dalvikvm(  157): Unable to open or create cache for /system/
framework/services.jar (/data/dalvik-cache/
system(at)framework(at) services.jar(at)classes.dex)
D/dalvikvm(  157): Unable to process classpath element '/system/
framework/services.jar'
E/dalvikvm(  157): ERROR: no valid entries found in bootclasspath '/
system/framework/core.jar:/ system/framework/ext.jar:/ system/framework/
framework.jar:/system/ framework/android.policy.jar:/ system/framework/
services.jar'
W/dalvikvm(  157): JNI_CreateJavaVM failed
E/AndroidRuntime(  157): JNI_CreateJavaVM failed
I/ServiceManager(   27): service 'media.audio_flinger' died
I/ServiceManager(   27): service 'media.player' died
I/ServiceManager(   27): service 'media.camera' died
I/ServiceManager(   27): service 'media.audio_policy' died
I/        (  159): ServiceManager: 0xacd0
D/AudioHardwareInterface(  159): setMode(NORMAL)
I/CameraService(  159): CameraService started: pid=159
I/AudioFlinger(  159): AudioFlinger's thread 0xb3f0 ready to run

Did I miss something to mount succesfully /data with ext4?
Arindam Roy
Sign in to reply
More message actions
5/10/11
Hello Andria,
I am assuming you built the driver as part of kernel aend did not make it a module.
Also, how are ensuring while building the system.img, and ramdisk.img,
proper ext4 filesystems are being built.
Can you share the command line, or make file changes?
Thanks,
Arindam

- show quoted text -
- show quoted text -

--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Arindam Roy
Sign in to reply
More message actions
5/10/11
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值