Add support for (mox_)do_sign in debugfs
Since kernel 5.9, there was added support for ECDSA signature in turris-mox-rwtm, which can be found in kernel repository [1]. Previously, all these files before it was upstreamed were stored in /sys/firmware/turris-mox-rwtm, but right now, do_sign or if you prefer mox_do_sign can be enabled only by kernel option debugfs [2]. By looking at the source code of turris-mox-rwtm [3], we can see that there is folder turris-mox-rwtm in /sys/kernel/debug, where we can find the missing file. Fixes: sysfs API error: Could not find MOX sign file [1] https://github.com/torvalds/linux/commit/50524d787de34300ca9189e63afe13e26d782bea [2] https://cateee.net/lkddb/web-lkddb/DEBUG_FS.html [3] https://elixir.bootlin.com/linux/latest/source/drivers/firmware/turris-mox-rwtm.c#L438
Please register or sign in to comment