projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c79f46a
)
apparmor: Replace two seq_printf() calls by seq_puts() in aa_label_seq_xprint()
author
Markus Elfring
<elfring@users.sourceforge.net>
Tue, 2 Jul 2019 18:27:32 +0000
(20:27 +0200)
committer
John Johansen
<john.johansen@canonical.com>
Sat, 18 Jan 2020 23:35:23 +0000
(15:35 -0800)
Two strings which did not contain a data format specification should be put
into a sequence. Thus use the corresponding function “seq_puts”.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c
patch
|
blob
|
history
diff --git
a/security/apparmor/label.c
b/security/apparmor/label.c
index
4706932
..
bb34094
100644
(file)
--- a/
security/apparmor/label.c
+++ b/
security/apparmor/label.c
@@
-1749,13
+1749,13
@@
void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns,
AA_DEBUG("label print error");
return;
}
- seq_p
rintf(f, "%s"
, str);
+ seq_p
uts(f
, str);
kfree(str);
} else if (display_mode(ns, label, flags))
seq_printf(f, "%s (%s)", label->hname,
label_modename(ns, label, flags));
else
- seq_p
rintf(f, "%s"
, label->hname);
+ seq_p
uts(f
, label->hname);
}
void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,