FedoraForum.org - Fedora Support Forums and Community
Results 1 to 14 of 14
  1. #1
    leigh123linux Guest

    F20 selinux issue breaks updates

    If you have selinux enabled in enforcing mode (default) all future updates will fail unless you run.

    https://fedoraproject.org/wiki/Commo...during_updates

    Code:
    setenforce 0
    yum clean expire-cache
    yum update selinux-policy\*
    setenforce 1
    link to the selinux issue

    https://bugzilla.redhat.com/show_bug.cgi?id=1054350
    Last edited by leigh123linux; 21st January 2014 at 11:33 AM.

  2. #2
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,555
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    Hmmm. Is that why yum -y update yum failed this morning?

  3. #3
    leigh123linux Guest

    Re: F20 selinux issue breaks updates

    Quote Originally Posted by glennzo
    Hmmm. Is that why yum -y update yum failed this morning?
    It has a scriptlet that is run on update so it's likely it failed due to the selinux bug


    Code:
    $ rpm -q --scripts yum
    postinstall scriptlet (using /bin/sh):
    
    if [ $1 -eq 1 ] ; then 
            # Initial installation 
            /usr/bin/systemctl preset yum-makecache.timer >/dev/null 2>&1 || : 
    fi
    preuninstall scriptlet (using /bin/sh):
    
    if [ $1 -eq 0 ] ; then 
            # Package removal, not upgrade 
            /usr/bin/systemctl --no-reload disable yum-makecache.timer > /dev/null 2>&1 || : 
            /usr/bin/systemctl stop yum-makecache.timer > /dev/null 2>&1 || : 
    fi
    postuninstall scriptlet (using /bin/sh):
    
    /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : 
    if [ $1 -ge 1 ] ; then 
            # Package upgrade, not uninstall 
            /usr/bin/systemctl try-restart yum-makecache.timer >/dev/null 2>&1 || : 
    fi

  4. #4
    bob's Avatar
    bob is offline Administrator -- On Leave
    Join Date
    Jul 2004
    Location
    Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
    Age
    81
    Posts
    25,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    Added as a Forum-Wide Announcement. Also, copied and stuck thread on Using Fedora and copied to News.
    Linux & Beer - That TOTALLY Computes!
    Registered Linux User #362651


    Don't use any of my solutions on working computers or near small children.

  5. #5
    Join Date
    Jan 2013
    Location
    Belgïe
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    I did:

    Code:
    setenforce 0
    yum clean expire-cache
    yum update selinux-policy 
    setenforce 1
    with no result. Then I did:

    Code:
    # setenforce 0
    # yum clean expire-cache
    # yum update selinux-policy
    # yum update
    # setenforce 1
    Problem solved.

    Unexperienst users users maybe do not know this.

  6. #6
    Join Date
    Oct 2007
    Location
    Freedonia
    Age
    77
    Posts
    3,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    I just did a complete system update on my laptop, running F20 and Xfce. I used yumex and the update completed without incident. Checking, selinux-policy-targeted was updated, and I didn't need to enable updates-testing. It appears that this issue has cleared itself up.
    Registered Linux user #470359 and permanently recovered BOFH.

    Any advice in this post is worth exactly what you paid for it.

  7. #7
    mschwendt Guest

    Re: F20 selinux issue breaks updates

    The revised fix should add '\*' for the yum update call, so it really always explicitly asks for an update of all installed selinux-policy* packages:

    Code:
      setenforce 0
      yum clean expire-cache
      yum update selinux-policy\*
      setenforce 1

    That also fixes the problem for users, who've tried to apply the selinux-policy update in enforcing mode as pointed out by Kobuck. Full reproducer with comments here: http://forums.fedoraforum.org/showpo...2&postcount=17

    @ sidebrnz : If one has installed the bad -116.fc20 selinux-policy packages, one cannot avoid entering SELinux permissive mode prior to updating the newer selinux-policy packages. What has changed meanwhile, however, is that the -117.fc20 fixed packages have appeared in the normal updates repo, so enabling updates-testing is not necessary anymore. Updates-testing contains an even newer selinux-policy update already.

  8. #8
    Join Date
    Oct 2007
    Location
    Freedonia
    Age
    77
    Posts
    3,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    Yes, I understand that. I was pointing out that AFAICT the update had received enough good karma that it wasn't in testing any more.
    Registered Linux user #470359 and permanently recovered BOFH.

    Any advice in this post is worth exactly what you paid for it.

  9. #9
    Join Date
    Jan 2014
    Location
    Spain
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    I have one more issue with the last batch of updates. After updating all the package list the alternative symlinks was messed up. When I tried to launch Azureus it complained about missing /usr/lib/jvm/jre/bin/java was not found. First I thought Azureus had a bug in its script but then I tried launching Eclipse with the same result.
    So I made a new symlink in:

    /usr/lib/jvm/jre -> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.4.1.fc20.x86_64/jre/

    Now both, azureus and eclipse are launching ok.

  10. #10
    mschwendt Guest

    Re: F20 selinux issue breaks updates

    That could be one thing where reinstalling the packages (with "yum reinstall …") might have helped. Depending on what updates have been installed after the bad selinux policy package, they may need manual cleanup or a reinstall because of what they do in the scriptlet sections.

  11. #11
    Join Date
    Jan 2014
    Location
    Spain
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    Quote Originally Posted by mschwendt
    That could be one thing where reinstalling the packages (with "yum reinstall …") might have helped. Depending on what updates have been installed after the bad selinux policy package, they may need manual cleanup or a reinstall because of what they do in the scriptlet sections.
    Well, in that case probably it will be fixed on the next update. I think

  12. #12
    Join Date
    Jun 2004
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    Thank @leigh123linux for this thread.
    I was about to give up on two different Fedora 20 installation that almost went FUBAR.
    (Took me hours afterwards to fix the broken dependencies / duplicates / etc)

    How on earth such a bug managed to slip through the cracks is beyond me...

    I would consider making this thread sticky. (EDIT: Its already sticky...)

    - Gilboa
    Last edited by gilboa; 9th February 2014 at 08:00 PM.
    oVirt-1: Intel S2600C0, 2xE5-2667V2, 128GB, HDD: SSD: 4x500GB, 8x2TB-HDD, GTX 3070, CentOS 8.
    oVirt-2: Intel S2400GP2, 2xE5-2448L, 120GB, HDD: SSD: 4x500GB, 10x2TB-HDD, GTX550, CentOS 8.
    oVirt-3 Gigabyte B85M-HD3, E3-1245V3, 32GB, SSD: 2 x 500GB, HDD: 5x1TB, GTX980, CentOS 8.
    Fedora VM: 16-vcores , 32GB, pass-through GTX 3070, 2xDell U2411 + Dell UP3216Q 4K.
    Windows VM: 8-vcores, 16GB, pass-through GTX 980.

  13. #13
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: F20 selinux issue breaks updates

    I am dong a clean install of Fedora 20, will I need to run this script to update a new install or has this been fixed.

    Thanks in advance.

  14. #14
    mschwendt Guest

    Re: F20 selinux issue breaks updates

    The bad package is no longer available, so you won't run into the issue with a new install.

Similar Threads

  1. F20 selinux issue breaks updates
    By leigh123linux in forum Using Fedora
    Replies: 11
    Last Post: 28th January 2014, 04:37 AM
  2. F20 selinux issue breaks updates
    By leigh123linux in forum Fedora Focus
    Replies: 21
    Last Post: 24th January 2014, 02:35 AM
  3. Replies: 2
    Last Post: 20th January 2014, 09:52 PM
  4. network-scripts "BOOTPROTO=none" breaks F19 -> F20
    By wsanders in forum Using Fedora
    Replies: 1
    Last Post: 22nd December 2013, 06:59 PM
  5. How to receive updates in F20
    By dswhite85 in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 19th December 2013, 07:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •