[bootlin/training-materials updates] master: hello_param module: use more interesting module parameter permissions (7102b9af)
Michael Opdenacker
michael.opdenacker at bootlin.com
Tue Dec 3 11:42:54 CET 2019
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/7102b9aff652f29759d74df502cdbc40f8b4d434
>---------------------------------------------------------------
commit 7102b9aff652f29759d74df502cdbc40f8b4d434
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Tue Dec 3 11:42:54 2019 +0100
hello_param module: use more interesting module parameter permissions
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
7102b9aff652f29759d74df502cdbc40f8b4d434
code/hello-param/hello_param.c | 4 ++--
.../kernel-driver-development-modules.tex | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/code/hello-param/hello_param.c b/code/hello-param/hello_param.c
index 087bb525..fe8dd17b 100644
--- a/code/hello-param/hello_param.c
+++ b/code/hello-param/hello_param.c
@@ -6,11 +6,11 @@
MODULE_LICENSE("GPL");
static char *whom = "world";
-module_param(whom, charp, 0);
+module_param(whom, charp, 0644);
MODULE_PARM_DESC(whom, "Recipient of the hello message");
static int howmany = 1;
-module_param(howmany, int, 0);
+module_param(howmany, int, 0644);
MODULE_PARM_DESC(howmany, "Number of greetings");
static int __init hello_init(void)
diff --git a/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex b/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex
index fce3edb1..02623600 100644
--- a/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex
+++ b/slides/kernel-driver-development-modules/kernel-driver-development-modules.tex
@@ -287,11 +287,11 @@ config USB_SERIAL_NAVMAN
MODULE_LICENSE("GPL");
static char *whom = "world";
-module_param(whom, charp, 0);
+module_param(whom, charp, 0644);
MODULE_PARM_DESC(whom, "Recipient of the hello message");
static int howmany = 1;
-module_param(howmany, int, 0);
+module_param(howmany, int, 0644);
MODULE_PARM_DESC(howmany, "Number of greetings");
\end{minted}
\end{frame}
More information about the training-materials-updates
mailing list