Apparmor prevents plugins with python scripts running
-
Hello,
2 issues, both of which may be addressed with 3.4 beta's, I'm unsure
Both issues related to installed and running a plugin with a python script; specifically filament load weighing (https://forum.duet3d.com/topic/25419/another-weighing-filament-holder)
This is in relation to duet3 w/ SBC-
apparmor prevents python scripts from running
apparmor is installed, and runs properly, but I have to set it to complain mode (sudo aa-complain /etc/apparmor.d/*) for it to run the python script (on plugins page, goes from 'partially
started' to 'started')
The only thing that appears in syslog is "Dec 23 08:34:34 duet3 kernel: [ 417.399578] audit: type=1400 audit(1640219674.657:13): apparmor="DENIED" operation="exec"
profile="/opt/dsf/plugins/FilamentLoadCell/**" name="/usr/bin/python3.7" pid=1537 comm="filament_load_c" requested_mask="x" denied_mask="x" fsuid=996 ouid=0" -
restarting the pi also prevents the plugin loading properly, it restarts as 'partially started'. Stopping the plugin and clicking start again fixes this. There is no error in syslog. (same as this
https://forum.duet3d.com/topic/25834/dwc-dsf-plugins-remain-partially-started-after-restart)
Cheers,
J -
-