[apparmor] [PATCH 4/6] libapparmor: Improve documentation of aa_policy_cache_replace_all()

Steve Beattie steve at nxnw.org
Thu Mar 26 06:49:07 UTC 2015


On Wed, Mar 25, 2015 at 05:37:19PM -0500, Tyler Hicks wrote:
> Document that the kernel_interface parameter is optional.
> 
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>

Acked-by: Steve Beattie <steve at nxnw.org>

> ---
>  libraries/libapparmor/src/policy_cache.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libraries/libapparmor/src/policy_cache.c b/libraries/libapparmor/src/policy_cache.c
> index e05913e..44eb34d 100644
> --- a/libraries/libapparmor/src/policy_cache.c
> +++ b/libraries/libapparmor/src/policy_cache.c
> @@ -251,6 +251,8 @@ int aa_policy_cache_remove(const char *path)
>   * aa_policy_cache_replace_all - performs a kernel policy replacement of all cached policies
>   * @policy_cache: the policy_cache
>   * @kernel_interface: the kernel interface to use when doing the replacement
> + *                    (may be NULL if the currently running kernel features
> + *                    were used when calling aa_policy_cache_new())
>   *
>   * Returns: 0 on success, -1 on error with errno set and features pointing to
>   *          NULL

-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150325/69e1e2de/attachment.pgp>


More information about the AppArmor mailing list