From d4ed5934514d0422c83c6dbe6f1c95411ce7092c Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 14 Jul 2017 10:56:10 +0100 Subject: [PATCH] rm write for seq file --- kernel_module/seq_file.c | 2 +- kernel_module/seq_file_single.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_module/seq_file.c b/kernel_module/seq_file.c index 4e79dc8..11420d9 100644 --- a/kernel_module/seq_file.c +++ b/kernel_module/seq_file.c @@ -121,7 +121,7 @@ static struct file_operations fops = { static int myinit(void) { debugfs_file = debugfs_create_file( - "lkmc_seq_file", S_IRUSR | S_IWUSR, NULL, NULL, &fops); + "lkmc_seq_file", S_IRUSR, NULL, NULL, &fops); if (debugfs_file) { return 0; } else { diff --git a/kernel_module/seq_file_single.c b/kernel_module/seq_file_single.c index d31c455..80ba920 100644 --- a/kernel_module/seq_file_single.c +++ b/kernel_module/seq_file_single.c @@ -43,7 +43,7 @@ static const struct file_operations fops = { static int myinit(void) { debugfs_file = debugfs_create_file( - "lkmc_seq_file_single", S_IRUSR | S_IWUSR, NULL, NULL, &fops); + "lkmc_seq_file_single", S_IRUSR, NULL, NULL, &fops); if (debugfs_file) { return 0; } else {