apparmor-ofono: open a root-owned file
ofono runs as root, so having the "malicious" LD_PRELOAD module read /home/user/.bash_history requires it to exercise CAP_DAC_OVERRIDE, leading to an AppArmor denial that doesn't match what we expect. Try to read /etc/shadow instead, and update the expected denials accordingly. With that change, there's no real need for the "malicious" code to use GLib, so use stdio instead. Apertis: https://phabricator.apertis.org/T1848 Signed-off-by:Frédéric Dalleau <frederic.dalleau@collabora.co.uk> Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D4388
Please register or sign in to comment