Re: [PATCH ipsec-next v2] xfrm: add /proc/sys/core/net/xfrm_redact_secret
From: Nicolas Dichtel <hidden>
Date: 2020-08-20 15:15:05
From: Nicolas Dichtel <hidden>
Date: 2020-08-20 15:15:05
Le 20/08/2020 à 14:04, Antony Antony a écrit : [snip]
@@ -38,6 +48,15 @@ static struct ctl_table xfrm_table[] = { .mode = 0644, .proc_handler = proc_dointvec }, + { + .procname = "xfrm_redact_secret", + .maxlen = sizeof(u32), + .mode = 0644, + /* only handle a transition from "0" to "1" */ + .proc_handler = proc_dointvec_minmax, + .extra1 = SYSCTL_ONE, + .extra2 = SYSCTL_ONE,
nit for the v3: the '=' of the last two lines is aligned with spaces while the first lines use tabs.