]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/zcore: Use octal permission
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 19 May 2026 06:20:43 +0000 (08:20 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 26 May 2026 06:15:40 +0000 (08:15 +0200)
Replace symbolic permissions with octal permissions, which are preferred.

Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/char/zcore.c

index a131f171208c363d9da74a8ef197a671812bf6c2..1ab7400a3c10f1df6f2e3594a3c4c87c00454414 100644 (file)
@@ -351,8 +351,8 @@ static int __init zcore_init(void)
                goto fail;
 
        zcore_dir = debugfs_create_dir("zcore" , NULL);
-       debugfs_create_file("reipl", S_IRUSR, zcore_dir, NULL, &zcore_reipl_fops);
-       debugfs_create_file("hsa", S_IRUSR|S_IWUSR, zcore_dir, NULL, &zcore_hsa_fops);
+       debugfs_create_file("reipl", 0400, zcore_dir, NULL, &zcore_reipl_fops);
+       debugfs_create_file("hsa", 0600, zcore_dir, NULL, &zcore_hsa_fops);
 
        register_reboot_notifier(&zcore_reboot_notifier);
        atomic_notifier_chain_register(&panic_notifier_list, &zcore_on_panic_notifier);