Skip to content

Commit 1eac007

Browse files
jlellipaulmckrcu
authored andcommitted
rcu: Make rcu update module parameters world-readable
rcu update module parameters currently don't appear in sysfs and this is a serviceability issue as it might be needed to access their default values at runtime. Fix this issue by changing rcu update module parameters permissions to world-readable. Suggested-by: Paul E. McKenney <[email protected]> Signed-off-by: Juri Lelli <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent ebb6d30 commit 1eac007

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/rcu/update.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
#define MODULE_PARAM_PREFIX "rcupdate."
5555

5656
#ifndef CONFIG_TINY_RCU
57-
module_param(rcu_expedited, int, 0);
58-
module_param(rcu_normal, int, 0);
57+
module_param(rcu_expedited, int, 0444);
58+
module_param(rcu_normal, int, 0444);
5959
static int rcu_normal_after_boot = IS_ENABLED(CONFIG_PREEMPT_RT);
6060
#if !defined(CONFIG_PREEMPT_RT) || defined(CONFIG_NO_HZ_FULL)
61-
module_param(rcu_normal_after_boot, int, 0);
61+
module_param(rcu_normal_after_boot, int, 0444);
6262
#endif
6363
#endif /* #ifndef CONFIG_TINY_RCU */
6464

0 commit comments

Comments
 (0)