restoring SELinux context using STAR fails
- From: Klaas <klaas@xxxxxxxx>
- Date: Tue, 27 Jun 2006 19:37:08 +0200
Hello,
I am unable to use star to restore SELinux file
contexts on FC5 (from an offline booted generic
selinux-turned-off miniboot disk; much like rescue mode).
I use star with -acl, -H=exustar etc. etc. from the FAQ.
The problem is; most of the contexts *do* get restored
- except for the symbolic links. Most notably,
files in /lib get selinux context system_u:object_u:lib_t
but the symlinks (and there are a few in /lib since
well you know) get system_u:object_u:file_t
Now linux breaks. If I run a fixfiles ('relabel')
I can see the symlinks are meant to have lib_t too
(and things work again).
The command line I use for extraction is
star -x -p -acl -xattr -H=exustar -z -C=/lib -f root.tgz
When I restore the very same archive on a running Linux
(selinux=permissive), restoring (to /tmp/lib) *does* give
me all the right contexts (that is; also for the symlinks).
So well this does look a lot like
http://www.redhat.com/archives/rhl-list/2006-April/msg06611.html
but that one is about not getting *any* context restored;
I am only asking for the symbolic link contexts...
Regards,
Klaas
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Prev by Date: RE: How to Check if my kernel is "Update 2" update
- Next by Date: RE: How to Check if my kernel is "Update 2" update
- Previous by thread: How to Check if my kernel is "Update 2" update
- Next by thread: FC5 GRUB setup
- Index(es):
Relevant Pages
|
|