Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Redhat installing package needs more space on the /selinux filesystem

Posted on 2011-09-13
7
Medium Priority
?
1,942 Views
Last Modified: 2012-05-12
Hi,

I'm trying to install a patched (for GNS3) version of qemu-0.14.1 using checkinstall, and getting the following:

$ sudo yum --nogpgcheck localinstall /root/rpmbuild/RPMS/x86_64/qemu-0.14.1-1.x86_64.rpm
Loaded plugins: refresh-packagekit
Setting up Local Package Process
Examining /root/rpmbuild/RPMS/x86_64/qemu-0.14.1-1.x86_64.rpm: qemu-0.14.1-1.x86_64
Marking /root/rpmbuild/RPMS/x86_64/qemu-0.14.1-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package qemu.x86_64 0:0.14.1-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================================
Package                               Arch                                    Version                                     Repository                                              Size
========================================================================================================================================================================================
Installing:
qemu                                  x86_64                                  0.14.1-1                                    /qemu-0.14.1-1.x86_64                                   86 M

Transaction Summary
========================================================================================================================================================================================
Install       1 Package(s)

Total size: 86 M
Installed size: 86 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
 installing package qemu-0.14.1-1.x86_64 needs 4KB on the /selinux filesystem

Open in new window


my /etc/selinux/config is:
CODE

$ cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
# SELINUX=enforcing
SELINUX=permissive
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Open in new window



short of just disabling selinux (which I'd love to do, but company policy...), how can I resolve this?

Thanks!
0
Comment
Question by:mlnpscda
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:unSpawn
ID: 36531885
Transaction Check Error:
 installing package qemu-0.14.1-1.x86_64 needs 4KB on the /selinux filesystem
This might be an error in Yum error handling as selinuxfs ('du -mhs /selinux') is a virtual file system and just like /proc it doesn't have any space requirements as it doesn't take up any. One way to test if installing works OK could be to run 'sudo rpm --test --nosignature  --ignoresize --install /root/rpmbuild/RPMS/x86_64/qemu-0.14.1-1.x86_64.rpm' where "--ignoresize" might get you around bogus disk usage warnings. Do check if whatever real location you install to actually *has* enough space free and remove "--test" if you think it's going to run OK. If it doesn't then try again but add "-vv" and attach output as plain text. (And BTW please don't build packages as root user: unnecessary risk and not necessary anyway.)
0
 

Author Comment

by:mlnpscda
ID: 36532887
ok, the

sudo rpm --test --nosignature  --ignoresize --install /root/rpmbuild/RPMS/x86_64/qemu-0.14.1-1.x86_64.rpm

worked, giving:


$ sudo -s
[sudo] password :
# rpm --test --nosignature --ignoresize --install /root/rpmbuild/RPMS/x86_64/qemu-0.14.1-1.x86_64.rpm
# exit
exit

However, (not being a redhat guru) the one thing googling about yum/rpm stuff has hammered in has been to never-ever-ever-never work outside the yum system, otherwise little time bombs and booby traps get planted.
So am I just out of luck on this?

Regarding:


(And BTW please don't build packages as root user: unnecessary risk and not necessary anyway.)

that's absolutely true, except that checkinstall -R only works as root.  Trying to use it as a normal mortal user:



$ checkinstall -R

checkinstall 1.6.2, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]:

Preparing package documentation...OK

Please write a description for the package.
End your description with an empty line or EOF.
>> qemu-0.14.1 with patches for GNS3
>> 

**************************************
**** RPM package creation selected ***
**************************************

This package will be built according to these values:

1 -  Summary: [ qemu-0.14.1 with patches for GNS3 ]
2 -  Name:    [ qemu ]
3 -  Version: [ 0.14.1 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ Applications/System ]
7 -  Architecture: [ x86_64 ]
8 -  Source location: [ qemu-0.14.1 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ qemu ]

Enter a number to change any of them or press ENTER to continue:

Installing with make...Installing with install...

========================= Installation results ===========================
install -d -m0755 -p "/usr/local/etc/qemu"
install -m0644 -p /usr/src/qemu/qemu-0.14.1/sysconfigs/target/target-x86_64.conf "/usr/local/etc/qemu"
install: warning: /usr/local/etc/qemu/target-x86_64.conf: failed to change context to : No such file or directory
install -d -m0755 -p "/usr/local/bin"
install -m0755 -p  qemu-nbd qemu-img qemu-io  "/usr/local/bin"
install: warning: /usr/local/bin/qemu-nbd: failed to change context to : No such file or directory
install: warning: /usr/local/bin/qemu-img: failed to change context to : No such file or directory
install: warning: /usr/local/bin/qemu-io: failed to change context to : No such file or directory
install -d -m0755 -p "/usr/local/share/qemu"
set -e; for x in bios.bin vgabios.bin vgabios-cirrus.bin vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc gpxe-eepro100-80861209.rom pxe-e1000.bin pxe-ne2k_pci.bin pxe-pcnet.bin pxe-rtl8139.bin pxe-virtio.bin bamboo.dtb petalogix-s3adsp1800.dtb multiboot.bin linuxboot.bin s390-zipl.rom; do \
            install -m0644 -p /usr/src/qemu/qemu-0.14.1/pc-bios/$x "/usr/local/share/qemu"; \
      done
install: warning: /usr/local/share/qemu/bios.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/vgabios.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/vgabios-cirrus.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/vgabios-stdvga.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/vgabios-vmware.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/vgabios-qxl.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/ppc_rom.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/openbios-sparc32: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/openbios-sparc64: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/openbios-ppc: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/gpxe-eepro100-80861209.rom: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/pxe-e1000.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/pxe-ne2k_pci.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/pxe-pcnet.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/pxe-rtl8139.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/pxe-virtio.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/bamboo.dtb: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/petalogix-s3adsp1800.dtb: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/multiboot.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/linuxboot.bin: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/s390-zipl.rom: failed to change context to : No such file or directory
install -d -m0755 -p "/usr/local/share/qemu/keymaps"
set -e; for x in da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th common  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr; do \
            install -m0644 -p /usr/src/qemu/qemu-0.14.1/pc-bios/keymaps/$x "/usr/local/share/qemu/keymaps"; \
      done
install: warning: /usr/local/share/qemu/keymaps/da: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/en-gb: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/et: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/fr: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/fr-ch: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/is: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/lt: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/modifiers: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/no: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/pt-br: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/sv: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/ar: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/de: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/en-us: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/fi: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/fr-be: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/hr: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/it: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/lv: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/nl: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/pl: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/ru: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/th: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/common: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/de-ch: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/es: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/fo: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/fr-ca: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/hu: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/ja: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/mk: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/nl-be: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/pt: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/sl: failed to change context to : No such file or directory
install: warning: /usr/local/share/qemu/keymaps/tr: failed to change context to : No such file or directory
for d in i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user microblaze-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user ; do \
      make -C $d install || exit 1 ; \
        done
make[1]: Entering directory `/usr/src/qemu/qemu-0.14.1/i386-softmmu'
install -m 755 qemu "/usr/local/bin"
install: warning: /usr/local/bin/qemu: failed to change context to : No such file or directory
strip "/usr/local/bin/qemu"
strip:/usr/local/bin/qemu: could not create temporary file to hold stripped copy: No error
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/qemu/qemu-0.14.1/i386-softmmu'
make: *** [install] Error 1

****  Installation failed. Aborting package creation.

Cleaning up...rm: cannot remove `/var/tmp/tmp.fxwQYXVOEE/BACKUP/usr/lib/gcc': Permission denied
rm: cannot remove `/var/tmp/tmp.fxwQYXVOEE/BACKUP/no-backup': Permission denied
OK

Bye.

$


If there's a way to easily generate an install rpm as a non-root, I'd love to know it.  

0
 

Accepted Solution

by:
mlnpscda earned 0 total points
ID: 36532965
OK, finally got the google keyword-fu right and the stars all aligned properly.

In brief add the following to /etc/checkinstallrc (or wherever checkinstallrc is located)

# Comma delimited list of files/directories to be ignored
EXCLUDE="/selinux"

Thanks to all
0
Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

 
LVL 7

Assisted Solution

by:unSpawn
unSpawn earned 1000 total points
ID: 36533092
OK, so it was a checkinstall thing and not Yum...

If there's a way to easily generate an install rpm as a non-root, I'd love to know it.
See http://www.ibm.com/developerworks/linux/library/l-rpm1/index.html and http://www.ibm.com/developerworks/linux/library/l-rpm2/index.html or http://fedoraproject.org/wiki/How_to_create_an_RPM_package#Setting_up_your_system_and_account.
0
 

Author Comment

by:mlnpscda
ID: 36951403
to the moderator:

I answered my own question, but I don't think it's right to assign points to myself.  Unspawn did provide helpful advice about non-root compilation so should get half points.  How can this be done?

Thanks.
0
 

Author Closing Comment

by:mlnpscda
ID: 37098977
answered my own question after further research
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Fine Tune your automatic Updates for Ubuntu / Debian
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question