setcon


Description:

[ Version ( deprecated = true , since = "1.0.67" ) ]
public bool setcon (string context) throws Error

Warning: setcon is deprecated.

set SELinux security context

Note:

In new code, use selinux_relabel instead

This sets the SELinux security context of the daemon to the string context.

See the documentation about SELINUX in guestfs(3).

This function depends on the feature "selinux". See also feature_available.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error