linux-audit.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH] audit: remove unused !CONFIG_AUDITSYSCALL __audit_inode* stubs
@ 2020-06-30 22:17 Richard Guy Briggs
  2020-07-01 17:39 ` Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Guy Briggs @ 2020-06-30 22:17 UTC (permalink / raw)
  To: Linux-Audit Mailing List; +Cc: Richard Guy Briggs, eparis, viro

Added 14 years ago in commit 73241ccca0f7 ("[PATCH] Collect more inode
information during syscall processing.") but never used however
needlessly churned no less than 10 times since.  Remove the unused
__audit_inode* stubs in the !CONFIG_AUDITSYSCALL case.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
---
 include/linux/audit.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/linux/audit.h b/include/linux/audit.h
index 604ede630580..03c4035a532b 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -579,14 +579,6 @@ static inline struct filename *audit_reusename(const __user char *name)
 }
 static inline void audit_getname(struct filename *name)
 { }
-static inline void __audit_inode(struct filename *name,
-					const struct dentry *dentry,
-					unsigned int flags)
-{ }
-static inline void __audit_inode_child(struct inode *parent,
-					const struct dentry *dentry,
-					const unsigned char type)
-{ }
 static inline void audit_inode(struct filename *name,
 				const struct dentry *dentry,
 				unsigned int aflags)
-- 
1.8.3.1

--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] audit: remove unused !CONFIG_AUDITSYSCALL __audit_inode* stubs
  2020-06-30 22:17 [PATCH] audit: remove unused !CONFIG_AUDITSYSCALL __audit_inode* stubs Richard Guy Briggs
@ 2020-07-01 17:39 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2020-07-01 17:39 UTC (permalink / raw)
  To: Richard Guy Briggs; +Cc: Eric Paris, Linux-Audit Mailing List, viro

On Tue, Jun 30, 2020 at 6:17 PM Richard Guy Briggs <rgb@redhat.com> wrote:
>
> Added 14 years ago in commit 73241ccca0f7 ("[PATCH] Collect more inode
> information during syscall processing.") but never used however
> needlessly churned no less than 10 times since.  Remove the unused
> __audit_inode* stubs in the !CONFIG_AUDITSYSCALL case.
>
> Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
> ---
>  include/linux/audit.h | 8 --------
>  1 file changed, 8 deletions(-)

Merged into audit/next.

-- 
paul moore
www.paul-moore.com

--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-01 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30 22:17 [PATCH] audit: remove unused !CONFIG_AUDITSYSCALL __audit_inode* stubs Richard Guy Briggs
2020-07-01 17:39 ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).