{"action":"created","issue":{"url":"https://api.github.com/repos/globaleaks/Tor2web/issues/261","labels_url":"https://api.github.com/repos/globaleaks/Tor2web/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/globaleaks/Tor2web/issues/261/comments","events_url":"https://api.github.com/repos/globaleaks/Tor2web/issues/261/events","html_url":"https://github.com/globaleaks/Tor2web/issues/261","id":115862807,"number":261,"title":"AppArmor gives DENIED error on Ubuntu 14.04","user":{"login":"fpietrosanti","id":770363,"avatar_url":"https://avatars.githubusercontent.com/u/770363?v=3","gravatar_id":"","url":"https://api.github.com/users/fpietrosanti","html_url":"https://github.com/fpietrosanti","followers_url":"https://api.github.com/users/fpietrosanti/followers","following_url":"https://api.github.com/users/fpietrosanti/following{/other_user}","gists_url":"https://api.github.com/users/fpietrosanti/gists{/gist_id}","starred_url":"https://api.github.com/users/fpietrosanti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpietrosanti/subscriptions","organizations_url":"https://api.github.com/users/fpietrosanti/orgs","repos_url":"https://api.github.com/users/fpietrosanti/repos","events_url":"https://api.github.com/users/fpietrosanti/events{/privacy}","received_events_url":"https://api.github.com/users/fpietrosanti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/globaleaks/Tor2web/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T11:55:45Z","updated_at":"2016-01-25T19:13:56Z","closed_at":null,"body":"root@XXXXXX:/home/tor2web/certs# /etc/init.d/tor2web start\r\n * Enabling Tor2web Apparmor Sandboxing...                                                                                                                                                                                     * Starting Tor2web tor2web...                                                                                                                                                                                                 * Starting tor daemon...                                                                                                                                                                                              [ OK ] \r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/tor2web/t2w.py\", line 31, in <module>\r\n    from zope.interface import implements\r\nImportError: No module named interface\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/tor2web/t2w.py\", line 31, in <module>\r\n    from zope.interface import implements\r\nImportError: No module named interface\r\n\r\n[705907.117463] type=1400 audit(1447069889.677:40): apparmor=\"DENIED\" operation=\"exec\" profile=\"usr.bin.tor2web\" name=\"/bin/uname\" pid=17464 comm=\"sh\" requested_mask=\"x\" denied_mask=\"x\" fsuid=0 ouid=0\r\n\r\n\r\nBy disabling apparmor, starting tor2web, stopping it, enabling apparmor again, everything works.\r\n\r\nThis problem happen at first installation only.\r\n\r\n[706693.770297] type=1400 audit(1447070676.330:215): apparmor=\"DENIED\" operation=\"exec\" profile=\"usr.bin.tor2web\" name=\"/bin/uname\" pid=19205 comm=\"sh\" requested_mask=\"x\" denied_mask=\"x\" fsuid=0 ouid=0\r\n[706677.975865] type=1400 audit(1447070660.534:97): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/__init__.pyc\" pid=19147 comm=\"python\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n[706677.975972] type=1400 audit(1447070660.534:98): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/utils/__init__.pyc\" pid=19147 comm=\"python\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n[706677.978506] type=1400 audit(1447070660.538:99): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/utils/config.pyc\" pid=19147 comm=\"python\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n[706677.981538] type=1400 audit(1447070660.542:100): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/utils/storage.pyc\" pid=19147 comm=\"python\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n[706677.983433] type=1400 audit(1447070660.542:101): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/utils/daemon.pyc\" pid=19147 comm=\"python\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n[706693.755913] audit_printk_skb: 330 callbacks suppressed\r\n[706693.755920] type=1400 audit(1447070676.314:212): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/__init__.pyc\" pid=19203 comm=\"tor2web\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n[706693.756041] type=1400 audit(1447070676.314:213): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/utils/__init__.pyc\" pid=19203 comm=\"tor2web\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n[706693.757745] type=1400 audit(1447070676.318:214): apparmor=\"DENIED\" operation=\"mknod\" profile=\"usr.bin.tor2web\" name=\"/usr/lib/python2.7/dist-packages/tor2web/utils/daemon.pyc\" pid=19203 comm=\"tor2web\" requested_mask=\"c\" denied_mask=\"c\" fsuid=0 ouid=0\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28091014-apparmor-gives-denied-error-on-ubuntu-14-04?utm_campaign=plugin&utm_content=tracker%2F318575&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F318575&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/globaleaks/Tor2web/issues/comments/174625598","html_url":"https://github.com/globaleaks/Tor2web/issues/261#issuecomment-174625598","issue_url":"https://api.github.com/repos/globaleaks/Tor2web/issues/261","id":174625598,"user":{"login":"evilaliv3","id":217034,"avatar_url":"https://avatars.githubusercontent.com/u/217034?v=3","gravatar_id":"","url":"https://api.github.com/users/evilaliv3","html_url":"https://github.com/evilaliv3","followers_url":"https://api.github.com/users/evilaliv3/followers","following_url":"https://api.github.com/users/evilaliv3/following{/other_user}","gists_url":"https://api.github.com/users/evilaliv3/gists{/gist_id}","starred_url":"https://api.github.com/users/evilaliv3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilaliv3/subscriptions","organizations_url":"https://api.github.com/users/evilaliv3/orgs","repos_url":"https://api.github.com/users/evilaliv3/repos","events_url":"https://api.github.com/users/evilaliv3/events{/privacy}","received_events_url":"https://api.github.com/users/evilaliv3/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T19:13:56Z","updated_at":"2016-01-25T19:13:56Z","body":"@DrWhax this is one of the issues you were encountering but this error does not cause any malfunctions. i will ty anyhow to inverstigate it's reason."}}