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

Re: [Xen-devel] [PATCH 2/3] xen/flask: change bool_maxstr to PAGE_SIZE



On Tue, 2015-05-26 at 14:13 -0400, Daniel De Graaf wrote:
> When FLASK_{GET,SET}BOOL is called with a named boolean, the call to
> flask_security_resolve_bool is made prior to bool_maxstr being populated
> by flask_security_make_bools.  This results in the maximum string length
> being specified as zero, which is not useful.  While it would be
> possible to initialize bool_maxstr correctly prior to its use, it is
> simpler to use a fixed maximum of PAGE_SIZE as is done for the other
> calls to safe_copy_string_from_guest.
> 
> Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.