On Tue, 2012-08-07 at 10:41 -0400, Stephen Smalley wrote: > On Mon, 2012-08-06 at 16:17 -0700, Haiqing Jiang wrote: > > Hi, all > > > > > > Could we apply the following policy in android-4.1.1? > > > > > > dontaudit domain debugfs:file {write open} > > > > > > The reason is that if you want to debug using adb shell dmesg or > > cat /proc/kmsg, you have to open --> write trace_marker to debug frame > > buffers. > > > > > > Could you give some options? Thanks..... > > Bob put the following into his sepolicy.te file for the Nexus 7, but I > guess it or something like it belongs in core policy: > # ftrace support > bool ftrace true; > if (ftrace) { > allow domain debugfs:file {open write}; > } else { > dontaudit domain debugfs:file {open write}; > } > > I haven't yet set up a grouper project for SE Android. I have added the corresponding rules to domain.te in sepolicy, wrapped with a debugfs boolean. Enabled by default. -- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.