cap_set_file


Description:

[ Version ( since = "1.19.63" ) ]
public bool cap_set_file (string path, string cap) throws Error

set the Linux capabilities attached to a file

This function sets the Linux capabilities attached to path. The capabilities set cap should be passed in text form ( see cap_from_text(3)).

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

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error