Re: [Labeled-nfs] [PATCH 08/13] NFS: Introduce lifecycle managment for label attribute.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux