aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yuan <weiyuan.wei@huawei.com>2016-02-06 02:39:47 -0500
committerPaul Moore <paul@paul-moore.com>2016-02-08 11:25:39 -0500
commitfd97646b05957348e01be3d9de5c3d979b25c819 (patch)
tree77cc76d467a3c001c40172f68faa5c26a2f624f7
parent935c9e7ff06abf12c45155f75ec2f712d3768095 (diff)
audit: Fix typo in comment
Signed-off-by: Weiyuan <weiyuan.wei@huawei.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--kernel/audit_watch.c2
-rw-r--r--kernel/auditfilter.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index 656c7e93ac0d..0348b12b5a4d 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -185,7 +185,7 @@ static struct audit_watch *audit_init_watch(char *path)
185 return watch; 185 return watch;
186} 186}
187 187
188/* Translate a watch string to kernel respresentation. */ 188/* Translate a watch string to kernel representation. */
189int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op) 189int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op)
190{ 190{
191 struct audit_watch *watch; 191 struct audit_watch *watch;
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index b8ff9e193753..94ca7b1e5e7e 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -158,7 +158,7 @@ char *audit_unpack_string(void **bufp, size_t *remain, size_t len)
158 return str; 158 return str;
159} 159}
160 160
161/* Translate an inode field to kernel respresentation. */ 161/* Translate an inode field to kernel representation. */
162static inline int audit_to_inode(struct audit_krule *krule, 162static inline int audit_to_inode(struct audit_krule *krule,
163 struct audit_field *f) 163 struct audit_field *f)
164{ 164{
@@ -415,7 +415,7 @@ static int audit_field_valid(struct audit_entry *entry, struct audit_field *f)
415 return 0; 415 return 0;
416} 416}
417 417
418/* Translate struct audit_rule_data to kernel's rule respresentation. */ 418/* Translate struct audit_rule_data to kernel's rule representation. */
419static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data, 419static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data,
420 size_t datasz) 420 size_t datasz)
421{ 421{
@@ -593,7 +593,7 @@ static inline size_t audit_pack_string(void **bufp, const char *str)
593 return len; 593 return len;
594} 594}
595 595
596/* Translate kernel rule respresentation to struct audit_rule_data. */ 596/* Translate kernel rule representation to struct audit_rule_data. */
597static struct audit_rule_data *audit_krule_to_data(struct audit_krule *krule) 597static struct audit_rule_data *audit_krule_to_data(struct audit_krule *krule)
598{ 598{
599 struct audit_rule_data *data; 599 struct audit_rule_data *data;