dump/restore (or "star") and SELinux problems
by Kayvan A. Sylvan
Hi folks,
I am trying again. I haven't gotten an answer that works yet and hoping that
people who know more about SELinux and Fedora can see this and suggest
a solution (or at least a way to investigate).
My goal: To be able to reszie a partition (or rearrange filesystems) without
losing any data or meta-data.
parted is useless, since it won't handle the xattr filesystem data.
I used dump to create a filesystem backup, then used the FC5 Install DVD
to go into rescue mode and restore the dump. That seem to work okay for
the file data. However, for each and every file, I get the message:
restore: lsetxattr ./filename_being_restored failed: Invalid argument
Using "ls -Z", I see that all the files end up being unlabeled (or they
are in the unlabeled_t context).
These files were all set up in Fedora FC4, using the targeted policy.
When I am booting up using the FC5 Install DVD ("linux rescue"), the SELinux
startup shows:
security: 3 users, 6 roles, 1161 types, 135 bools, 1 sens, 256 cats
security: 55 classes, 38679 rules
SELinux: Completing initialization.
SELinux: Setting up existing superblocks.
SELinux: initialized (dev loop0, type squashfs), not configured for labeling
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev ramfs, type ramfs), uses genfs_contexts
SELinux: initialized (dev ramfs, type ramfs), uses genfs_contexts
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses genfs_contexts
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev eventpollfs, type eventpollfs), uses genfs_contexts
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev futexfs, type futexfs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev cpuset, type cpuset), not configured for labeling
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
I have also tried using "star" with the following args:
star -v -c -xdev -sparse -acl -link-dirs level=0 -wtardumps \
f=root.star -C / .
And then, when booted into the rescue mode, did the following to extract:
star -xpU -restore f=root.star
This produced the same result. The files end up being unlabeled.
I am wondering if I have to have the same SELinux policy loaded while
in the rescue mode in order to avoid the "lsetxattr: invalid argument"
error? How would I go about doing that?
Thanks for any help!
---Kayvan
--
Kayvan A. Sylvan | Proud husband of | Father to my kids:
Sylvan Associates, Inc. | Laura Isabella Sylvan, | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | my beautiful Queen. | Robin Gregory (2/28/92)
16 years, 12 months
Installing JAVA
by Michael Wright
? Need help on how i can install java
The other problem i have with the terminal it wont let me download the new cpanel.. you can find them here at http://www.cpanel.com
17 years, 1 month
What is the proper way to restart udev?
by Steven W. Orr
I found /sbin/udevstart but there is no udevstop. Can I kill -1 the
running udevd, or do I kill -9 the udevd followed by a udevstart, or do I
have to reboot?
TIA
--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
17 years, 2 months
BUG: spinlock wrong CPU on CPU#1, fgBT878/1849 (Not tainted)
by Alan McIvor
Hi,
I'm trying to upgrade a device driver from FC2 to FC5 and am running
into the problem shown below. This is on a hyperthreading P4 3GHz
running kernel 2.6.15-1.2054_FC5smp. It also happens using kernel
2.6.16-1.2096_FC5smp. There are 16 devices in the machine. For each
there is a fgBT878 process, running at the max SCHED_FIFO
priority. If I reduce the number of devices to 1 or 2, the problem
doesn't appear to happen (i.e., with 16 devices the panic happens
pretty much straight away, with 1 or 2 devices I have run for an
hour). I have no problems with a non-SMP kernel.
What sort of errors should I be looking for in my driver code?
Thanks
Alan McIvor
Reveal Limited
[root@d915 ~]# ok
ok
BUG: spinlock wrong CPU on CPU#1, fgBT878/1849 (Not tainted)
lock: d01b7ef0, .magic: dead4ead, .owner: fgBT878/1849, .owner_cpu: 0
[<c01d6501>] spin_bug+0x87/0xe9 [<c01d65ba>] _raw_spin_unlock+0x57/0x6c
[<c02f2232>] _spin_unlock_irqrestore+0x8/0xc [<d01b0ab0>] bttv_do_ioctl+0x3d7/0x74e [bt878_c]
[<c011d6a9>] activate_task+0x9d/0xaa [<c011da09>] try_to_wake_up+0x353/0x35d
[<d01aa34d>] video_usercopy+0x119/0x18d [videodev] [<c011c78f>] __wake_up_common+0x2f/0x53
[<c02f2156>] __down+0xce/0x107 [<c0136bb7>] hrtimer_cancel+0xa/0x10
[<c02f1b37>] schedule_hrtimer+0x33/0x6e [<c011da13>] default_wake_function+0x0/0xc
[<d01b06d6>] bttv_ioctl+0xe/0x11 [bt878_c] [<d01b06d9>] bttv_do_ioctl+0x0/0x74e [bt878_c]
[<c01717c3>] do_ioctl+0x47/0x5d [<c0171a23>] vfs_ioctl+0x24a/0x25c
[<c0171a7d>] sys_ioctl+0x48/0x5f [<c0103d25>] sysenter_past_esp+0x56/0x79
Kernel panic - not syncing: bad locking
[<c01234b6>] panic+0x3e/0x174 [<c01d6524>] spin_bug+0xaa/0xe9
[<c01d65ba>] _raw_spin_unlock+0x57/0x6c [<c02f2232>] _spin_unlock_irqrestore+0x8/0xc
[<d01b0ab0>] bttv_do_ioctl+0x3d7/0x74e [bt878_c] [<c011d6a9>] activate_task+0x9d/0xaa
[<c011da09>] try_to_wake_up+0x353/0x35d [<d01aa34d>] video_usercopy+0x119/0x18d [videodev]
[<c011c78f>] __wake_up_common+0x2f/0x53 [<c02f2156>] __down+0xce/0x107
[<c0136bb7>] hrtimer_cancel+0xa/0x10 [<c02f1b37>] schedule_hrtimer+0x33/0x6e
[<c011da13>] default_wake_function+0x0/0xc [<d01b06d6>] bttv_ioctl+0xe/0x11 [bt878_c]
[<d01b06d9>] bttv_do_ioctl+0x0/0x74e [bt878_c] [<c01717c3>] do_ioctl+0x47/0x5d
[<c0171a23>] vfs_ioctl+0x24a/0x25c [<c0171a7d>] sys_ioctl+0x48/0x5f
[<c0103d25>] sysenter_past_esp+0x56/0x79
<0>BUG: spinlock lockup on CPU#0, swapper/0, d01b7ef0 (Not tainted)
[<c01d6727>] _raw_spin_lock+0xb9/0xd7
[<d01b0263>] bttv_irq+0x36d/0x42e [bt878_c] [<c01456fe>] handle_IRQ_event+0x23/0x4c
[<c01457b4>] __do_IRQ+0x8d/0xdd [<c0105e8e>] do_IRQ+0x60/0x7b
=======================
[<c010474e>] common_interrupt+0x1a/0x20 [<c0102f2e>] mwait_idle+0x1f/0x33
[<c0102ef6>] cpu_idle+0x8f/0xa8 [<c03c8715>] start_kernel+0x2fe/0x304
17 years, 2 months
Mozilla - Flash Player..
by Ted Gervais
Hi everyone. I am knew to the list and have Fedora Core 5 newly
installed.
Most things are ok but I can't get the plugin for Macromedia Flash
Player installed. I have tried all the methods available to me and
while Fedora tells me that the Flash Player is installed, I don't see it
when I click on Help>About Plugins.
I have tried making sure the Flash Player files are in
~/.mozilla/plugins, and /usr/lib/mozilla, and any other place I think it
might be looking for it. No luck.
I have also tried to install it manually rather than using the automated
process. And still no luck. But in every case, Fedora tells me that
the Flash Player is installed.
Now, how do I tell Mozilla that it is installed.??
--
Ted Gervais
Coldbrook, Nova Scotia
Canada b4r1a7
17 years, 3 months
FC6 and acroread - not working
by Florin Andrei
I got acroread-7.0.5-2.2.fc5.rf.nosrc.rpm from here:
http://dries.ulyssis.org/rpm/packages/acroread/info.html
I extracted the spec file. I downloaded the latest acroread tar.gz from
Adobe, then adjusted the spec for the new version. Then rebuilt the
acroread binary package.
But when I launch acroread, I get a bunch of messages like this:
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
Any clue?
--
Florin Andrei
http://florin.myip.org/
17 years, 3 months
Re: bacula server
by RYAN M. vAN GINNEKEN
Thanks again mostly u/we got it to work so far. However it is asking for a pile of dependancies. I know give a guy an inch and he will try to take a mile or km here in Canada. Is there a way to install without any gui stuff or mabey i am wrong mabey there is no gui stuff. Some of the dependancies for those dependancies are X11 related.
I do not have any X11 stuff on this box it has no xwindows/gnome system and is minimum install Command prompt only. So before i go ahead and make a big mess of my faily clean fedora box do i really need all these or is there a way to turn some of them off.
Thanks again and sorry about top post i think my clock was messed up not sure how it happend but should be fixed now.
----- Original Message -----
From: Paul Howarth <paul(a)city-fan.org>
To: For users of Fedora Core releases <fedora-list(a)redhat.com>
Sent: Tuesday, March 14, 2006 1:10:02 AM GMT-0700
Subject: Re: bacula server
On Mon, 2006-03-13 at 17:11 -0700, RYAN M. vAN GINNEKEN wrote:
> First off thanks to all for your tremendous help without it i would have probably given up on bacula by now. Lets just say it is a probably a good thing the fedora box is remote so i cannot physically get to it. Got C++ installed managed to get the extras working and seem to have the rpmbuildtree in my home directory. Looks like i am on to a whole new set of problems now, but this is great i think this means progress right?
>
> rpmbuild]$ ls
> bacula-1.38.5-4.src.rpm BUILD RPMS SOURCES SPECS SRPMS
> [rmvg@shoemasters rpmbuild]$ rpmbuild --rebuild --define 'fc3 1' --define 'build_mysql 1' --define 'build_mysql4 1' bacula-1.38.5-4.src.rpm
> Installing bacula-1.38.5-4.src.rpm
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> warning: user sbarn does not exist - using root
> error: You must specify a platform. Please examine the spec file.
> error: line 67: Unknown tag: exit 1
We got the defines wrong. Try this:
$ rpmbuild --rebuild \
--define 'build_fc3 1' \
--define 'build_mysql4 1' \
bacula-1.38.5-4.src.rpm
> ps. I am unaware of top posting not sure what u mean, none of the other lists i am on seem to notice anything. Is this message top posted too?
Yes, it is. See here for an explanation:
http://en.wikipedia.org/wiki/Top-posting
Cheers, Paul.
--
fedora-list mailing list
fedora-list(a)redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
Computer King/CaNMail
http://www.computerking.ca http://www.canmail.org
Sales, Service, and Hosting
Email, Data, and Web Packages
Ask about web design specials
Affiliates
http://www.computerking.ca/pages/links/affiliates/affiliates.htm
Maybe Computer Science should be in the College of Theology. -- R. S. Barton
17 years, 3 months
what is linux-gate.so
by Gavin Li
Hi,
When I do ldd a.out, it depends linux-gate.so.1, what is it? I can't find it
in my whole system.
17 years, 4 months
xmaple and Fc5 (maple 10)
by Joachim Backes
Hi,
having the problem that xmaple (maple-10) does not run on FC5: it exits immediately.
maple-10 itself runs als CLI perfectly, but not as X application.
Did somebody make similar experiences, or did somebody solve this problem?
Any anwer is appreciated.
Regards
--
Joachim Backes <joachim.backes(a)rhrk.uni-kl.de>
University of Kaiserslautern,Computer Center [RHRK],
Systems and Operations, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html
17 years, 4 months
Caching updates locally
by Joe Tseng
I want to be able to cache yum updates locally so when I build machines via
kickstart I can have them update more quickly from a local server. I can't
seem to recall how to do this using wget, and googling hasn't turned
anything up yet. Does anyone know of some page that describes how to do
this? Thx.
- Joe
17 years, 4 months