mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
selinux: Cleanup printk logging in selinuxfs
Replace printk with pr_* to avoid checkpatch warnings. Signed-off-by: Peter Enderborg <peter.enderborg@sony.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
b54c85c15a
commit
f8b69a5f00
@ -620,7 +620,7 @@ static ssize_t sel_write_context(struct file *file, char *buf, size_t size)
|
|||||||
|
|
||||||
length = -ERANGE;
|
length = -ERANGE;
|
||||||
if (len > SIMPLE_TRANSACTION_LIMIT) {
|
if (len > SIMPLE_TRANSACTION_LIMIT) {
|
||||||
printk(KERN_ERR "SELinux: %s: context size (%u) exceeds "
|
pr_err("SELinux: %s: context size (%u) exceeds "
|
||||||
"payload max\n", __func__, len);
|
"payload max\n", __func__, len);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -956,7 +956,7 @@ static ssize_t sel_write_create(struct file *file, char *buf, size_t size)
|
|||||||
|
|
||||||
length = -ERANGE;
|
length = -ERANGE;
|
||||||
if (len > SIMPLE_TRANSACTION_LIMIT) {
|
if (len > SIMPLE_TRANSACTION_LIMIT) {
|
||||||
printk(KERN_ERR "SELinux: %s: context size (%u) exceeds "
|
pr_err("SELinux: %s: context size (%u) exceeds "
|
||||||
"payload max\n", __func__, len);
|
"payload max\n", __func__, len);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -1147,7 +1147,7 @@ static ssize_t sel_write_member(struct file *file, char *buf, size_t size)
|
|||||||
|
|
||||||
length = -ERANGE;
|
length = -ERANGE;
|
||||||
if (len > SIMPLE_TRANSACTION_LIMIT) {
|
if (len > SIMPLE_TRANSACTION_LIMIT) {
|
||||||
printk(KERN_ERR "SELinux: %s: context size (%u) exceeds "
|
pr_err("SELinux: %s: context size (%u) exceeds "
|
||||||
"payload max\n", __func__, len);
|
"payload max\n", __func__, len);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -1996,7 +1996,7 @@ static int sel_fill_super(struct super_block *sb, void *data, int silent)
|
|||||||
goto err;
|
goto err;
|
||||||
return 0;
|
return 0;
|
||||||
err:
|
err:
|
||||||
printk(KERN_ERR "SELinux: %s: failed while creating inodes\n",
|
pr_err("SELinux: %s: failed while creating inodes\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
||||||
selinux_fs_info_free(sb);
|
selinux_fs_info_free(sb);
|
||||||
@ -2046,7 +2046,7 @@ static int __init init_sel_fs(void)
|
|||||||
|
|
||||||
selinux_null.mnt = selinuxfs_mount = kern_mount(&sel_fs_type);
|
selinux_null.mnt = selinuxfs_mount = kern_mount(&sel_fs_type);
|
||||||
if (IS_ERR(selinuxfs_mount)) {
|
if (IS_ERR(selinuxfs_mount)) {
|
||||||
printk(KERN_ERR "selinuxfs: could not mount!\n");
|
pr_err("selinuxfs: could not mount!\n");
|
||||||
err = PTR_ERR(selinuxfs_mount);
|
err = PTR_ERR(selinuxfs_mount);
|
||||||
selinuxfs_mount = NULL;
|
selinuxfs_mount = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user