How to make /sys/ and /proc/ of host system, writeable from lxd container?

I have an application that use :

sysctl kernel.sched_rt_runtime_us=-1

the error output is :

sysctl: setting key "kernel.sched_rt_runtime_us": Read-only file system

This command edit the file : /proc/sys/kernel/sched_rt_runtime_us, but the file is read-only file system,
cpufreq-set modify host file : /sys/devices/system/cpu/cpu/cpufreq/*, but read-only too

How to make /proc/ and /sys/ writetable in my lxd container?

Those are system global files, so having those be writable would be a pretty terrible idea as that will not only affect that container but your entire system.


I use this on local project, so my application don’t work

I want to make it writable, because I want to use two different version of applications from two different system and my two containers need to access this filesystem