Welcome to the most active Linux Forum on the web.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


Closed Thread
  Search this Thread
Old 08-09-2005, 12:39 AM   #1
LQ Newbie
Registered: Jun 2003
Posts: 16

Rep: Reputation: 0
SELinux: How can I clear the context when I copy a file?

When I built a new RHEL3 ramdisk on a RHEL4 server, I found the security context are filled by system automatically, like:
[root@xblade08 2]# ls -Z
lrwxrwxrwx root root rootbject_r:tmp_t bin -> sbin
drwxr-xr-x root root rootbject_r:tmp_t dev
drwxr-xr-x root root rootbject_r:tmp_t etc
lrwxrwxrwx root root rootbject_r:tmp_t linuxrc -> /sbin/init
drwx------ root root rootbject_r:tmp_t lost+found
drwxr-xr-x root root rootbject_r:tmp_t modules
drwxr-xr-x root root rootbject_r:tmp_t proc
drwxr-xr-x root root rootbject_r:tmp_t sbin
drwxr-xr-x root root rootbject_r:tmp_t tmp
drwxr-xr-x root root rootbject_r:tmp_t var

Those security contexts do not exist for source files, and make system installation failed. Here is the source files info:
[root@xblade08 1]# ls -Z
lrwxrwxrwx root root bin -> sbin
drwxr-xr-x root root dev
drwxr-xr-x root root etc
lrwxrwxrwx root root linuxrc -> /sbin/init
drwx------ root root lost+found
drwxr-xr-x root root modules
drwxr-xr-x root root proc
drwxr-xr-x root root sbin
drwxr-xr-x root root tmp
drwxr-xr-x root root var

Does anyone know how I can copy files without such security contexts?
Thank you a lot.
Old 08-09-2005, 06:23 PM   #2
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Please don't double post.
Old 08-09-2005, 09:39 PM   #3
LQ Newbie
Registered: Jun 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Can anyone remove this post? Thank you.
Old 08-10-2005, 12:23 AM   #4
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
We only delete posts in extreme circumstances, so in the future please only post your question once in the most appropriate forum. Thanks.

//Thread Closed

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chcon: can't apply partial context to unlabeled file... DevNRG Linux - General 7 10-12-2005 05:01 PM
SELinux: How can I clear the context when I copy a file? walkinmud Linux - Security 1 08-09-2005 01:37 AM
invalid context in SELinux lothario Linux - Security 1 06-17-2005 05:03 PM
KDE 3.2 - How to get the Move to & Copy to Context Menus? muzicman82 Linux - Software 0 02-16-2004 05:32 AM
create file from context menu RHL 9.0 mizuki Linux - Newbie 1 05-25-2003 07:47 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration