[Libguestfs] [PATCH] NEW API: add a new api restorecon

Wanlong Gao gaowanlong at cn.fujitsu.com
Wed Oct 24 09:28:16 UTC 2012


>> +}
>> diff --git a/generator/actions.ml b/generator/actions.ml
>> index 71aee37..12796a7 100644
>> --- a/generator/actions.ml
>> +++ b/generator/actions.ml
>> @@ -10241,6 +10241,31 @@ If the optional C<suffix> parameter is given, then the suffix
>>  
>>  See also: C<guestfs_mkdtemp>." };
>>  
>> +  { defaults with
>> +    name = "restorecon";
>> +    style = RErr, [Pathname "pathname"], [OString "excludedir"; OString "labelprefix"; OBool "recursion"; OBool "force"];
>> +    proc_nr = Some 374;
>> +    tests = [
>> +      InitScratchFS, Always, TestRun (
> 
> This test shouldn't be 'Always'.  It should be conditional on having
> selinux.

Do you mean "IfAvailable of HAVE_LIBSELINUX" here?

Thanks,
Wanlong Gao




More information about the Libguestfs mailing list