X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfs.pod;h=d8e4da3b3925d799fa4986a357f9ee7590cfac2b;hp=bbc594a3ad8da2f3c9fd2d01eb9cfede0156a3fa;hb=5da810b96072c0fd71d78713025a2e104295d0ff;hpb=a9b0a6d54fe5fa6564f657650d4608240c71ea3a diff --git a/guestfs.pod b/guestfs.pod index bbc594a..d8e4da3 100644 --- a/guestfs.pod +++ b/guestfs.pod @@ -367,6 +367,14 @@ guest itself: (Older versions of C require you to specify the name of the policy file). +=item 3. + +Optionally, set the security context for the API. The correct +security context to use can only be known by inspecting the +guest. As an example: + + guestfs_setcon (g, "unconfined_u:unconfined_r:unconfined_t:s0"); + =back This will work for running commands and editing existing files.