Bug 152247
Summary: | Could not relabel /dev/pts/x | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Bowns <adam> |
Component: | selinux-policy-targeted | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-03-28 18:59:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Adam Bowns
2005-03-26 19:12:16 UTC
First off why are you fixfiles relabeling all the time? This is denying you the right to relabel the terminal you are currently on. So this is expected and probably what you want. When you exit the su the terminal will get set back to the default. Dan I'm probably going about it the wrong way, but the reason I've been doing a fixfiles relabel is if I've copied something say from root's directory to my home directory and set the permissions and ownership the same way I would do on a non SELinux system, you still need to change each files SELinux attributes in order to read them, the only reason I've been using fixfiles relabel for this is its quicker than going through each file individually... probably a misuse of the program, but it seems to do the job :-) This is probably not a bug then. Regards, Adam You probably want to use restorecon for this. restorecon -R -v /home/USERNAME Would recursively walk the homedirectory and fix the context. restorecon -v /home/USERNAME/file_name Fixes it for a single file. cp should pick up the security context of the destination directory if it is not going across mount points. chcon also alows you to set the security context for an individual file. It has similar command to chmod. chcon -t user_home_t /home/USERNAME/file_name would change the type componant to user_home_t. fixfiles relabel will run through the entire file system and read every single file. Dan |