Bug 1376552

Summary: SELinux warnings/errors when upgrading - "setfiles returned error code 1"
Product: [Fedora] Fedora Reporter: Jonathan Yu <jawnsy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-16 10:46:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Package upgrade terminal output (dnf upgrade) none

Description Jonathan Yu 2016-09-15 17:04:00 UTC
Created attachment 1201324 [details]
Package upgrade terminal output (dnf upgrade)

Description of problem:

When upgrading, I noted the following errors - Mrunal Patel assures me that these are probably fine, and that I can ignore them, though it'd be nice to suppress these messages if possible (they look kind of scary). I've attached the full logs as well.

/etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/lib/kubelet(/.*)?  (system_u:object_r:svirt_sandbox_file_t:s0 and system_u:object_r:docker_var_lib_t:s0).
/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /var/lib/docker/vfs(/.*)?.
/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /var/lib/docker-latest/vfs(/.*)?.
/etc/selinux/targeted/contexts/files/file_contexts: Invalid argument
libsemanage.semanage_install_final_tmp: setfiles returned error code 1. (No such file or directory).
/etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/lib/kubelet(/.*)?  (system_u:object_r:svirt_sandbox_file_t:s0 and system_u:object_r:docker_var_lib_t:s0).
/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /var/lib/docker/vfs(/.*)?.
/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /var/lib/docker-latest/vfs(/.*)?.
/etc/selinux/targeted/contexts/files/file_contexts: Invalid argument
libsemanage.semanage_install_final_tmp: setfiles returned error code 1. (No such file or directory).
/usr/sbin/semodule:  Failed!

Comment 1 Daniel Walsh 2016-09-16 10:46:03 UTC
Please update to the latest docker-selinux and selinux-policy packages.