getcon


Description:

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

Warning: getcon is deprecated.

get SELinux security context

Note:

In new code, use selinux_relabel instead

This gets the SELinux security context of the daemon.

See the documentation about SELINUX in guestfs(3), and setcon

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

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error