• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Apparmor prevents plugins with python scripts running

Scheduled Pinned Locked Moved
Plugins for DWC and DSF
1
1
238
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    jhalewood
    last edited by 23 Dec 2021, 01:34

    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

    1. 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"

    2. 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

    1 Reply Last reply Reply Quote 1
    • undefined jhalewood referenced this topic 23 Dec 2021, 01:35
    1 out of 1
    • First post
      1/1
      Last post
    Unless otherwise noted, all forum content is licensed under CC-BY-SA