[apparmor] [PATCH] apparmor: Remove is_deleted()
Seth Arnold
seth.arnold at canonical.com
Thu Sep 7 19:54:42 UTC 2017
On Thu, Sep 07, 2017 at 02:33:58PM -0500, Goldwyn Rodrigues wrote:
> From: Goldwyn Rodrigues <rgoldwyn at suse.com>
>
> is_deleted() function is no longer in use and can be safely removed.
>
> Signed-off-by: Goldwyn Rodrigues <rgoldwyn at suse.com>
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Thanks
> ---
> diff --git a/security/apparmor/file.c b/security/apparmor/file.c
> index 3382518b87fa..242cd5c09761 100644
> --- a/security/apparmor/file.c
> +++ b/security/apparmor/file.c
> @@ -152,19 +152,6 @@ int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms,
> return aa_audit(type, profile, &sa, file_audit_cb);
> }
>
> -/**
> - * is_deleted - test if a file has been completely unlinked
> - * @dentry: dentry of file to test for deletion (NOT NULL)
> - *
> - * Returns: %1 if deleted else %0
> - */
> -static inline bool is_deleted(struct dentry *dentry)
> -{
> - if (d_unlinked(dentry) && d_backing_inode(dentry)->i_nlink == 0)
> - return 1;
> - return 0;
> -}
> -
> static int path_name(const char *op, struct aa_label *label,
> const struct path *path, int flags, char *buffer,
> const char **name, struct path_cond *cond, u32 request)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170907/dc666d8c/attachment.sig>
More information about the AppArmor
mailing list