{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10930","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10930/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10930/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10930/events","html_url":"https://github.com/ansible/ansible/issues/10930","id":73639258,"number":10930,"title":"SELinux + overlayfs + copy module failed with \"invalid selinux context\"","user":{"login":"TristanCacqueray","id":154392,"avatar_url":"https://avatars.githubusercontent.com/u/154392?v=3","gravatar_id":"","url":"https://api.github.com/users/TristanCacqueray","html_url":"https://github.com/TristanCacqueray","followers_url":"https://api.github.com/users/TristanCacqueray/followers","following_url":"https://api.github.com/users/TristanCacqueray/following{/other_user}","gists_url":"https://api.github.com/users/TristanCacqueray/gists{/gist_id}","starred_url":"https://api.github.com/users/TristanCacqueray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TristanCacqueray/subscriptions","organizations_url":"https://api.github.com/users/TristanCacqueray/orgs","repos_url":"https://api.github.com/users/TristanCacqueray/repos","events_url":"https://api.github.com/users/TristanCacqueray/events{/privacy}","received_events_url":"https://api.github.com/users/TristanCacqueray/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T14:27:52Z","updated_at":"2015-05-12T02:58:49Z","closed_at":"2015-05-12T02:58:49Z","body":"Hi there,\r\n\r\nit seems very related to #7009, but this time with an overlayfs mountpoint.\r\nThe support for SELinux context within overlayfs seems on the way, but this issue might happen again with others fs anyway.\r\n\r\nCould we have a parameter in the copy module to manually prevent the setting of these context ?\r\n\r\n\r\nSteps to reproduce (using updated fedora 21):\r\n$ sudo mkdir -p /var/lib/overlayfs/{upper,lower,work,mountpoint}\r\n$ sudo mount -o workdir=/var/lib/overlayfs/work,upperdir=/var/lib/overlayfs/upper,lowerdir=/var/lib/overlayfs/lower/ -t overlay overlayfs /var/lib/overlayfs/mountpoint/\r\n$ sudo ansible localhost -m copy -a \"src=/etc/fstab dest=/var/lib/overlayfs/mountpoint/fstab\"\r\nlocalhost | FAILED >> {\r\n[...]\r\n\"msg\": \"invalid selinux context\",\r\n[...]\r\n}"}}