Commit e5faa839 authored by Christian Göttsche's avatar Christian Göttsche Committed by Paul Moore

selinux: add missing newlines in pr_err() statements

The kernel print statements do not append an implicit newline to format
strings.
Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
[PM: subject line tweak]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 08a12b39
...@@ -2930,7 +2930,7 @@ static int selinux_inode_init_security_anon(struct inode *inode, ...@@ -2930,7 +2930,7 @@ static int selinux_inode_init_security_anon(struct inode *inode,
struct inode_security_struct *context_isec = struct inode_security_struct *context_isec =
selinux_inode(context_inode); selinux_inode(context_inode);
if (context_isec->initialized != LABEL_INITIALIZED) { if (context_isec->initialized != LABEL_INITIALIZED) {
pr_err("SELinux: context_inode is not initialized"); pr_err("SELinux: context_inode is not initialized\n");
return -EACCES; return -EACCES;
} }
......
...@@ -1687,7 +1687,7 @@ static int user_bounds_sanity_check(void *key, void *datum, void *datap) ...@@ -1687,7 +1687,7 @@ static int user_bounds_sanity_check(void *key, void *datum, void *datap)
if (++depth == POLICYDB_BOUNDS_MAXDEPTH) { if (++depth == POLICYDB_BOUNDS_MAXDEPTH) {
pr_err("SELinux: user %s: " pr_err("SELinux: user %s: "
"too deep or looped boundary", "too deep or looped boundary\n",
(char *) key); (char *) key);
return -EINVAL; return -EINVAL;
} }
...@@ -1766,7 +1766,7 @@ static int type_bounds_sanity_check(void *key, void *datum, void *datap) ...@@ -1766,7 +1766,7 @@ static int type_bounds_sanity_check(void *key, void *datum, void *datap)
if (upper->attribute) { if (upper->attribute) {
pr_err("SELinux: type %s: " pr_err("SELinux: type %s: "
"bounded by attribute %s", "bounded by attribute %s\n",
(char *) key, (char *) key,
sym_name(p, SYM_TYPES, upper->value - 1)); sym_name(p, SYM_TYPES, upper->value - 1));
return -EINVAL; return -EINVAL;
...@@ -3675,7 +3675,7 @@ int policydb_write(struct policydb *p, void *fp) ...@@ -3675,7 +3675,7 @@ int policydb_write(struct policydb *p, void *fp)
info = policydb_lookup_compat(p->policyvers); info = policydb_lookup_compat(p->policyvers);
if (!info) { if (!info) {
pr_err("SELinux: compatibility lookup failed for policy " pr_err("SELinux: compatibility lookup failed for policy "
"version %d", p->policyvers); "version %d\n", p->policyvers);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment