selinux: increase the deprecation sleep for checkreqprot and runtime disable
Paul Moore
maintainerRFC PATCH 1/1 selinux: increase the deprecation sleep for checkreqprot and runtime disable
Further the checkreqprot and runtime disable deprecation efforts by increasing the sleep time from 5 to 15 seconds to help make this more noticeable for any users who are still using these knobs.
--- security/selinux/selinuxfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
security/selinux/selinuxfs.c +2 -2
@@ -294,7 +294,7 @@ static ssize_t sel_write_disable(struct file *file, const char __user *buf,*/ pr_err ("SELinux: Runtime disable is deprecated, use selinux=0 on the kernel cmdline.\n" );pr_err ("SELinux: https://github.com/SELinuxProject/selinux-kernel/wiki/DEPRECATE-runtime-disable\n" ); -ssleep (5 ); +ssleep (15 );if (count >=PAGE_SIZE )return -ENOMEM ;
@@ -763,7 +763,7 @@ static ssize_t sel_write_checkreqprot(struct file *file, const char __user *buf,checkreqprot_set (fsi->state, (new_value ?1 :0 ));if (new_value) -ssleep (5 ); +ssleep (15 ); length = count;selinux_ima_measure_state (fsi->state);
Paul Moore
maintainerQuoted 9 lines · Paul Moore
Further the checkreqprot and runtime disable deprecation efforts by increasing the sleep time from 5 to 15 seconds to help make this more noticeable for any users who are still using these knobs.
Signed-off-by Paul Moore <[email protected]>--- security/selinux/selinuxfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
As a FYI, assuming no objections, this would be merged into selinux/next *after* the upcoming merge window closes.
Signature · 1 line
paul-moore.com
Paul Moore
maintainerQuoted 6 lines · Paul Moore
Quoted 5 lines · Paul Moore
Further the checkreqprot and runtime disable deprecation efforts by increasing the sleep time from 5 to 15 seconds to help make this more noticeable for any users who are still using these knobs.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Paul Moore <[email protected]>--- security/selinux/selinuxfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)As a FYI, assuming no objections, this would be merged into selinux/next *after* the upcoming merge window closes.
I just merged this into selinux/next.
Signature · 1 line
paul-moore.com
Quoted 5 lines · Paul Moore
Further the checkreqprot and runtime disable deprecation efforts by increasing the sleep time from 5 to 15 seconds to help make this more noticeable for any users who are still using these knobs.
Signed-off-by Paul Moore <[email protected]>
To the extent it matters,
Quoted 27 lines
--- security/selinux/selinuxfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)security/selinux/selinuxfs.c +2
-2@@ -294,7 +294,7 @@ static ssize_t sel_write_disable(struct file *file, const char __user *buf,*/ pr_err ("SELinux: Runtime disable is deprecated, use selinux=0 on the kernel cmdline.\n" );pr_err ("SELinux: https://github.com/SELinuxProject/selinux-kernel/wiki/DEPRECATE-runtime-disable\n" ); -ssleep (5 ); +ssleep (15 );if (count >=PAGE_SIZE )return -ENOMEM ;@@ -763,7 +763,7 @@ static ssize_t sel_write_checkreqprot(struct file *file, const char __user *buf,checkreqprot_set (fsi->state, (new_value ?1 :0 ));if (new_value) -ssleep (5 ); +ssleep (15 ); length = count;selinux_ima_measure_state (fsi->state);
Paul Moore
maintainerQuoted 11 lines · Casey Schaufler
Quoted 5 lines · Paul Moore
Further the checkreqprot and runtime disable deprecation efforts by increasing the sleep time from 5 to 15 seconds to help make this more noticeable for any users who are still using these knobs.
Signed-off-by Paul Moore <[email protected]>To the extent it matters,
Acked-by Casey Schaufler <[email protected]>
Reviews *always* matter, even if sometimes the resulting conclusions are determined by the majority to be flawed[1].
[1] This is not the case here, but some folks love to weaponize quotes from the archives so I find it best to qualify absolute statements such as this one.
Signature · 1 line
paul-moore.com