apertus-open-source-cinema / axiom-firmware

AXIOM firmware (linux image, gateware and software tools)
GNU General Public License v3.0
171 stars 54 forks source link

make snap usable by operator? #120

Open se6astian-pi opened 4 years ago

se6astian-pi commented 4 years ago
with /dev/mem you have access to basically everything, so allowing that for non-root would basically make every user root probably make the cmv_snap3 suid? Sebastian tried the suid approach and it works
anuejn commented 4 years ago

seems reasonable :)

anuejn commented 4 years ago

some scripts need that too but scripts cant be setuided so we probably need a more generalized approach

se6astian-pi commented 4 years ago

I tried the suid approach and the execution worked but the resulting images where just appearing to be random data. I also tried the static binary of cmv_snap3 from the old firmware on the new firmware and that worked in the end.

se6astian-pi commented 4 years ago

Its well possible I made a mistake somewhere along the way so please test.