From: Stefan Berger Subject: [PATCH 1/4] [docs] Documentation for XSPolicy.can_run command Date: Mon, 31 Mar 2008 10:55:31 -0400 Message-ID: <1206975332.4215.18.camel@gsal-3.watson.ibm.com> Reply-To: stefanb@us.ibm.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-k+uyEBEZ6zgL57CbQn5A" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-k+uyEBEZ6zgL57CbQn5A Content-Type: text/plain Content-Transfer-Encoding: 7bit This part of the patch adds documentation to the xen-api docment regarding the XSPolicy.can_run function. Signed-off-by: Stefan Berger --=-k+uyEBEZ6zgL57CbQn5A Content-Disposition: attachment; filename=xen_api_can_run_check_docs.diff Content-Type: text/x-patch; name=xen_api_can_run_check_docs.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/docs/xen-api/xenapi-datamodel.tex =================================================================== --- root.orig/xen-unstable.hg/docs/xen-api/xenapi-datamodel.tex +++ root/xen-unstable.hg/docs/xen-api/xenapi-datamodel.tex @@ -14938,6 +14938,41 @@ Currently active instantiation flags. \vspace{0.3cm} \vspace{0.3cm} \vspace{0.3cm} +\subsubsection{RPC name:~can\_run} + +{\bf Overview:} +Check whether a VM with the given security label could run on the system. + + \noindent {\bf Signature:} +\begin{verbatim} int can_run (session_id s, string security_label)\end{verbatim} + + +\noindent{\bf Arguments:} + + +\vspace{0.3cm} +\begin{tabular}{|c|c|p{7cm}|} + \hline +{\bf type} & {\bf name} & {\bf description} \\ \hline +{\tt string } & security_label & reference to the object \\ \hline + +\end{tabular} + +\vspace{0.3cm} + + \noindent {\bf Return Type:} +{\tt +int +} + + +Error code indicating whether a VM with the given security label could run. +If zero, it can run. + +\vspace{0.3cm} + +\noindent{\bf Possible Error Codes:} {\tt SECURITY\_ERROR} + \subsubsection{RPC name:~get\_all} {\bf Overview:} Index: root/xen-unstable.hg/docs/xen-api/revision-history.tex =================================================================== --- root.orig/xen-unstable.hg/docs/xen-api/revision-history.tex +++ root/xen-unstable.hg/docs/xen-api/revision-history.tex @@ -23,12 +23,19 @@ \end{flushleft} \end{minipage}\\ \hline - 1.0.2 & 11th Feb. 08 & S. Berger & + 1.0.3 & 11th Feb. 08 & S. Berger & \begin{minipage}[t]{7cm} \begin{flushleft} Added table of contents and hyperlink cross reference. \end{flushleft} \end{minipage}\\ \hline + 1.0.4 & 23rd March 08 & S. Berger & + \begin{minipage}[t]{7cm} + \begin{flushleft} + Added XSPolicy.can\_run + \end{flushleft} + \end{minipage}\\ + \hline \end{tabular} -\end{center} \ No newline at end of file +\end{center} Index: root/xen-unstable.hg/docs/xen-api/xenapi-coversheet.tex =================================================================== --- root.orig/xen-unstable.hg/docs/xen-api/xenapi-coversheet.tex +++ root/xen-unstable.hg/docs/xen-api/xenapi-coversheet.tex @@ -22,7 +22,7 @@ \newcommand{\releasestatement}{Stable Release} %% Document revision -\newcommand{\revstring}{API Revision 1.0.2} +\newcommand{\revstring}{API Revision 1.0.4} %% Document authors \newcommand{\docauthors}{ --=-k+uyEBEZ6zgL57CbQn5A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-k+uyEBEZ6zgL57CbQn5A--