aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 3861d85f8488..618d3531cf9f 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -692,6 +692,7 @@ static inline int may_follow_link(struct path *link, struct nameidata *nd)
692 692
693 path_put_conditional(link, nd); 693 path_put_conditional(link, nd);
694 path_put(&nd->path); 694 path_put(&nd->path);
695 audit_log_link_denied("follow_link", link);
695 return -EACCES; 696 return -EACCES;
696} 697}
697 698
@@ -760,6 +761,7 @@ static int may_linkat(struct path *link)
760 capable(CAP_FOWNER)) 761 capable(CAP_FOWNER))
761 return 0; 762 return 0;
762 763
764 audit_log_link_denied("linkat", link);
763 return -EPERM; 765 return -EPERM;
764} 766}
765 767