On 04/28/2015 11:04 AM, William Roberts wrote:
> 
> On Apr 28, 2015 7:44 AM, "Stephen Smalley" <s...@tycho.nsa.gov
> <mailto:s...@tycho.nsa.gov>> wrote:
>> I do not know.  As per the thread, it can happen any time
>> device_create_file is called after device_add and the caller does not
>> explicitly send a uevent.
>>
> 
> So kernel authors in sysfs need to explicitly craft and send uevent
> messages for file adds/dels? Why doesn't the sysfs api take care of this
> for them, any insight there?

No, I assume it is to avoid storms of such uevents and only generate
uevents when someone deems them truly necessary.  Since Linux
distributions have not applied fine-grained labeling to most of sysfs to
date (only selected cases, e.g. for libvirt labeling of nodes owned by
specific VMs so that they can be accessed by the VM's security context),
they wouldn't really see this issue.


_______________________________________________
Seandroid-list mailing list
Seandroid-list@tycho.nsa.gov
To unsubscribe, send email to seandroid-list-le...@tycho.nsa.gov.
To get help, send an email containing "help" to 
seandroid-list-requ...@tycho.nsa.gov.

Reply via email to