diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-08-12 16:56:09 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-08-13 10:51:44 +0100 |
commit | 67a679afb17747b5ec392e56cf6121b085b38a3a (patch) | |
tree | f1df14f5e357459d0c95bb6deeb202222233211a /src | |
parent | 27566d8323e4a8af59f5649aeeaef97ebd55cbd0 (diff) | |
download | libguestfs-67a679afb17747b5ec392e56cf6121b085b38a3a.tar.gz libguestfs-67a679afb17747b5ec392e56cf6121b085b38a3a.tar.xz libguestfs-67a679afb17747b5ec392e56cf6121b085b38a3a.zip |
Add 'setcon', 'getcon' commands to set and get the SELinux context.
Diffstat (limited to 'src')
-rw-r--r-- | src/MAX_PROC_NR | 2 | ||||
-rwxr-xr-x | src/generator.ml | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/MAX_PROC_NR b/src/MAX_PROC_NR index dc37bbdb..bc3d5444 100644 --- a/src/MAX_PROC_NR +++ b/src/MAX_PROC_NR @@ -1 +1 @@ -184 +186 diff --git a/src/generator.ml b/src/generator.ml index b9544ff9..3a772029 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3427,6 +3427,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<context>. + +See the documentation about SELINUX in L<guestfs(3)>."); + + ("getcon", (RString "context", []), 186, [], + [], + "get SELinux security context", + "\ +This gets the SELinux security context of the daemon. + +See the documentation about SELINUX in L<guestfs(3)>, +and C<guestfs_setcon>"); + ] let all_functions = non_daemon_functions @ daemon_functions |