Im on kernel version 3.0.35 and I am trying to get a dynamic type transition to occur from ramfs and later a tmpfs mount.
I started with ramfs, but switched to tmpfs thinking that maybe ramfs lacked the support. in genfs_contexts I added: genfscon ramfs / u:object_r:ramdisk:s0 Now when I mount the tmpfs I pass context=u:object_r:ramdisk:s0 to get it in the right domain, but I have the same results with each file system. in file.te I added: type ramdisk, file_type, fs_type; type ramdisk_newfile, file_type; and in shell.te I added: type_transition shell ramdisk:file ramdisk_newfile; FYI running in permissive on eng build. adb shell context type is shell $ adb shell echo '`cat /proc/self/attr/current`' u:r:shell:s0 mount the ramdisk like so: adb shell 'mount -t ramfs -o size=20m ramfs /ramdisk' Verify context of /ramdisk $ adb shell ls -laZ / | grep ramdisk drwxr-xr-x root root u:object_r:ramdisk:s0 ramdisk touch file: $ adb shell 'touch /ramdisk/newfile' Check context: $ adb shell 'ls -laZ /ramdisk/newfile' -rw-rw-rw- root root u:object_r:ramdisk:s0 newfile What am I missing? _______________________________________________ Seandroid-list mailing list [email protected] To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].
