As long as you're including the file.te you mention with the compiled
policy then your approach seems correct. I would assume that if you had
a missing xyz_type definition in your policy (missing file.te entry) but
included the context= option then the mount would outright fail (dmesg
would probably show SELinux:
security_context_to_sid(u:object_r:xyz_type:s0) failed for...). The
context= mount option should work as the string just gets passed through
to the kernel and the kernel passes it to SELinux to interpret. It's
probably a long shot, but is it possible that your partition is being
mounted elsewhere first?
On 08/18/2014 10:53 PM, Biswajit Paul wrote:
Dear Experts,
I am trying to set the context for a vfat mounted partition. My
current context shows as "vfat" which is the default one.
I tried defining a new context while mounting using
context="u:object_r:xyz_type:s0" option in my fstab.<board> files and
I am defining xyz_type as below in file.te
type xyz_type, fs_type, contextmount_type;
I still see the old context. Any input on how to set the new context
for VFAT is highly appreciated.
Regards,
Biswajit
_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to
[email protected].
_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to
[email protected].