Bug 246820 - SELinux error while installing
SELinux error while installing
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: allegro (Show other bugs)
7
All Linux
low Severity low
: ---
: ---
Assigned To: Jindrich Novy
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-05 04:16 EDT by Nadav Kavalerchik
Modified: 2013-07-02 19:21 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-07-06 06:03:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nadav Kavalerchik 2007-07-05 04:16:40 EDT
Description of problem:
while upgrading an earlier version with rpm -Uvh i get the following error
(which i think is related to SELinux)

rpm -Uvh --force allegro_4.2.1-2.fc7_i386.rpm
Preparing...                ########################################### [100%]
   1:allegro                ########################################### [100%]
chcon: can't apply partial context to unlabeled file
/usr/lib/allegro/4.2.1/alleg-vga.so


Version-Release number of selected component (if applicable):
4.2.1-2

How reproducible:
rpm -Uvh --force allegro_4.2.1-2.fc7_i386.rpm

Steps to Reproduce:
1.rpm -Uvh --force allegro_4.2.1-2.fc7_i386.rpm
2.
3.
  
Actual results:
Preparing...                ########################################### [100%]
   1:allegro                ########################################### [100%]
chcon: can't apply partial context to unlabeled file
/usr/lib/allegro/4.2.1/alleg-vga.so


Expected results:
Preparing...                ########################################### [100%]
   1:allegro                ########################################### [100%]


Additional info:
i was using apt-get to distribution upgrade from fc6 to fc7
(which went quite well :-)
Comment 1 Hans de Goede 2007-07-05 04:35:54 EDT
The unlabeled file error means that for some reason the original wasn't labeled
maybe because you're using apt-get (which is not supported), more likely because
you have selinux disabled. Notice that this error message is harmless in case
you've selinux disabled.

jnovy, I do think that since it is harmless we should hide it by adding 2>
/dev/null to the chcon command in the %post script, agreed?
Comment 2 Nadav Kavalerchik 2007-07-05 15:49:46 EDT
originally, i've installed it with yum. so i guess it should have been labeled.

btw. i thought that the running rpm underling yum or apt-get does the work no
matter what i use to update the system with.

i know it's now a big issue, but i thought you guys might want to smooth it out.
Comment 3 Hans de Goede 2007-07-05 16:17:20 EDT
(In reply to comment #2)
> originally, i've installed it with yum. so i guess it should have been labeled.
> 
> btw. i thought that the running rpm underling yum or apt-get does the work no
> matter what i use to update the system with.
> 

It does, which is why I wrote "maybe because you're using apt-get", with
emphasizes on the maybe.

> i know it's now a big issue, but i thought you guys might want to smooth it out.
> 

We do, thanks for reporting, but first we need to know why this happens, are you
running with selinux disabled?
Comment 4 Nadav Kavalerchik 2007-07-05 17:58:15 EDT
yes, selinux is disabled.

and btw.
i used apt-get because yum had many packedges that it couldn't upgrade so
i used apt-get to move from fc6 to fc7 (first, i tried upgrading from fc7 dvd,
but... anaconda crashed, which is a different bug :-(
Comment 5 Hans de Goede 2007-07-06 06:03:32 EDT
Thanks, that explains the error.

The next rawhide push should contain 4.2.1-3, which has the error output in this
scenario silenced (the error was already ignored).
Comment 6 Hans de Goede 2007-07-06 08:28:09 EDT
(In reply to comment #5)
> The next rawhide push should contain 4.2.1-3, which has the error output in this
> scenario silenced (the error was already ignored).
> 

Scrap that, allegro doesn't build on rawhide at the moment, see bug 247256


Note You need to log in before you can comment on or make changes to this bug.