set_selinux


Description:

[ Version ( deprecated = true , since = "1.0.67" ) ]
public bool set_selinux (bool selinux) throws Error

Warning: set_selinux is deprecated.

set SELinux enabled or disabled at appliance boot

Note:

In new code, use selinux_relabel instead

This sets the selinux flag that is passed to the appliance at boot time. The default is "selinux=0" (disabled).

Note that if SELinux is enabled, it is always in Permissive mode ("enforcing=0").

For more information on the architecture of libguestfs, see guestfs(3).

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error