Hi, ALL

I am trying the android-n-preview with kernel4.4, and found the tracefs is
automatically mounted there by kernel, mount options like this:
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)

And I found avc warnings on the console like this:
[    6.840279] init: SELinux: Could not set context for
/sys/kernel/debug/tracing/set_event_pid:  Operation not supported on
transport endpoint

I think it's caused by the following lines in file_contexts file:
/sys/kernel/debug/tracing(/.*)?          u:object_r:debugfs_tracing:s0
/sys/kernel/debug/tracing/trace_marker   u:object_r:debugfs_trace_marker:s0


And seems the tracefs does not support the seclabel mount option,

So what's the better way to support tracefs in Android?
Seems updating sepolicy rules is an easier way, but what if the kernel
still does not support tracefs yet?
Or do some changes in kernel side on tracefs?

And tracefs would be supported in the user mode as well I guess.

-- 
Best Regards,
Yongqin Liu
---------------------------------------------------------------
#mailing list
[email protected] <[email protected]>
http://lists.linaro.org/mailman/listinfo/linaro-android
_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to 
[email protected].

Reply via email to