X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=39faffec705ef63ec0cfaeaa423c049ae7a77a70;hp=8d16945ae44dae477ccf9e7fcb1c5c338af58c48;hb=d082a76d679b019784bc0b131028ee74e381f4a2;hpb=c8419d45c8ca6d0592a5a47399988908fd550d3f diff --git a/src/generator.ml b/src/generator.ml index 8d16945..39faffe 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -454,6 +454,8 @@ image). This is equivalent to the qemu parameter C<-drive file=filename,cache=off,if=...>. +C is omitted in cases where it is not supported by +the underlying filesystem. Note that this call checks for the existence of C. This stops you from specifying other types of drive which are supported @@ -761,6 +763,31 @@ C<$major.$minor.$release$extra> I Don't use this call to test for availability of features. Distro backports makes this unreliable."); + ("set_selinux", (RErr, [Bool "selinux"]), -1, [FishAlias "selinux"], + [InitNone, Always, TestOutputTrue ( + [["set_selinux"; "true"]; + ["get_selinux"]])], + "set SELinux enabled or disabled at appliance boot", + "\ +This sets the selinux flag that is passed to the appliance +at boot time. The default is C (disabled). + +Note that if SELinux is enabled, it is always in +Permissive mode (C). + +For more information on the architecture of libguestfs, +see L."); + + ("get_selinux", (RBool "selinux", []), -1, [], + [], + "get SELinux enabled flag", + "\ +This returns the current setting of the selinux flag which +is passed to the appliance at boot time. See C. + +For more information on the architecture of libguestfs, +see L."); + ] (* daemon_functions are any functions which cause some action @@ -3264,17 +3291,17 @@ This command disables the libguestfs appliance swap on file."); ["swapoff_label"; "swapit"]; ["zero"; "/dev/sdb"]; ["blockdev_rereadpt"; "/dev/sdb"]])], - "enable swap on labelled swap partition", + "enable swap on labeled swap partition", "\ -This command enables swap to a labelled swap partition. +This command enables swap to a labeled swap partition. See C for other notes."); ("swapoff_label", (RErr, [String "label"]), 175, [], [], (* XXX tested by swapon_label *) - "disable swap on labelled swap partition", + "disable swap on labeled swap partition", "\ This command disables the libguestfs appliance swap on -labelled swap partition."); +labeled swap partition."); ("swapon_uuid", (RErr, [String "uuid"]), 176, [], [InitEmpty, Always, TestRun ( @@ -3402,6 +3429,24 @@ This closes the inotify handle which was previously opened by inotify_init. It removes all watches, throws away any pending events, and deallocates all resources."); + ("setcon", (RErr, [String "context"]), 185, [], + [], + "set SELinux security context", + "\ +This sets the SELinux security context of the daemon +to the string C. + +See the documentation about SELINUX in L."); + + ("getcon", (RString "context", []), 186, [], + [], + "get SELinux security context", + "\ +This gets the SELinux security context of the daemon. + +See the documentation about SELINUX in L, +and C"); + ] let all_functions = non_daemon_functions @ daemon_functions