m.roth at 5-cent.us
2015-Jun-03 17:23 UTC
[CentOS] Try II: selinux, xfs, and CentOS 6 and 5 issue [SOLVED]
I wrote:> I partitioned GPT, and formatted, as xfs, a large (3TB) drive on a CentOS > 6 system, which has selinux in permissive mode. I then moved the drive to a > CentOS 5 system. When we run a copy (it mirror-copies from another system), > we get a ton of errors. I discovered that the CentOS 5 system wasenforcing.> I changed it to permissive, I labelled the directories and files w/semanage,> did a restorecon, and even did a fixfiles, and *then* I tried/.autorelabel and> rebooted, and we still get a ton of errors: Jun 1 17:01:32 <server>kernel:> inode_doinit_with_dentry: > context_to_sid(unconfined_u:object_r:file_t:s0) returned 22 for dev=sdd1ino=2151541032 Dan's recommendation to add context="system_u:object_r:usr_t:s0" to the mount options in fastab does indeed seem to have solve the problem. Thanks muchly, Dan. mark
Maybe Matching Threads
- Try II: selinux, xfs, and CentOS 6 and 5 issue
- Try II: selinux, xfs, and CentOS 6 and 5 issue
- [PATCH v2 4/7] customize: Add module for doing SELinux relabel of filesystem.
- [PATCH 2/2] customize: Allow --selinux-relabel flag to work on cross-architecture builds (RHBZ#1212807).
- Trying to understand SELinux MSG