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
    254
    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.
    • jhalewoodundefined
      jhalewood
      last edited by

      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
      • jhalewoodundefined jhalewood referenced this topic
      • First post
        Last post
      Unless otherwise noted, all forum content is licensed under CC-BY-SA