aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
authorThorsten Blum <thorsten.blum@linux.dev>2026-04-22 14:31:06 +0200
committerPaul Moore <paul@paul-moore.com>2026-04-27 18:24:08 -0400
commit4e3881b0a30041ab89200b57c49d295824da1be4 (patch)
tree5b797c5d7449b2670e519209fcfd5f640b9f035e /security
parent254f49634ee16a731174d2ae34bc50bd5f45e731 (diff)
downloadath-4e3881b0a30041ab89200b57c49d295824da1be4.tar.gz
selinux: use QSTR() instead of QSTR_INIT() in init_sel_fs
Drop the length argument and use the simpler QSTR(). Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/selinuxfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
index 83aa765a09f98..8c107af5140e5 100644
--- a/security/selinux/selinuxfs.c
+++ b/security/selinux/selinuxfs.c
@@ -2107,8 +2107,7 @@ struct path selinux_null __ro_after_init;
int __init init_sel_fs(void)
{
- struct qstr null_name = QSTR_INIT(NULL_FILE_NAME,
- sizeof(NULL_FILE_NAME)-1);
+ struct qstr null_name = QSTR(NULL_FILE_NAME);
int err;
if (!selinux_enabled_boot)