[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



>> +}
>> 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]