Description of problem: a have a hook that executes fine when run manually but when expected to be invoked by NetworkManager, eg. at patchcable dis/conn has no effect also I see, when I unplug and re-plug my lan cable this: Jul 23 15:00:00 ceb233 kernel: dell_wmi: Received unknown WMI event (0x0) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
NetworkManager[860]: <warn> (48) failed to call dispatcher scripts: (dbus-glib-error-quark:9) An SELinux policy prevents this sender from sending this message to this recipient, 0 matched rules; type="method_call", sender=":1.12" (uid=0 pid=860 comm="/usr/sbin/NetworkManager --no-daemon ") interface="org.freedesktop.nm_dispatcher" member="Action" error name="(unset)" requested_reply="0" destination="org.freedesktop.nm_dispatcher" (uid=0 pid=15292 comm="/usr/libexec/nm-dispatcher ") but fcontext of the hook file is the same as system's hook files ?
$ rpm -q NetworkManager $ rpm -q selinux-policy Maybe, you should relabel the SELinux system. Does it work when you disable SELinux with $ sudo setenforce 0 You can list recent AVCs with sudo ausearch -m avc -ts recent http://wiki.centos.org/HowTos/SELinux http://www.crypt.gen.nz/selinux/faq.html
selinux-policy-targeted-3.13.1-64.fc22.noarch selinux-policy-3.13.1-64.fc22.noarch is it's selinux, but as I said fcontext of the hook file is systems' default my hook will work with selinux disabled
when I went from f20 to rawhide something must have broke, restorecon /usr/libexec/nm-dispatcher fixes my problem regards