On Mon, 19 Nov 2007, Matthew N. Dodd wrote: > > > > You need to check the return of kmalloc(). > > If kmalloc() returns NULL then any label data returned by the GETATTR > operation will not be used. Labeling would be performed by the policy in the > 'd_instantiate' function. I suspect this would lead to inconsistent behavior & confuse folk. Perhaps try and return an error (which seems typical in much of the surrounding code) as a first option. -- James Morris <jmorris@xxxxxxxxx> -- 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.