Bug 810413 - Segmentation fault during selinux policy update
Summary: Segmentation fault during selinux policy update
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-05 23:51 UTC by Tom
Modified: 2012-04-06 16:14 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-04-06 06:04:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tom 2012-04-05 23:51:28 UTC
Description of problem:
Segmentation fault during selinux policy update with yum.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.10.0-110.fc17.noarch

How reproducible:
Tried once

Steps to Reproduce:
1.Update selinux policy with selinux set to permissive.
2.
3.
  
Actual results:

  Updating   : selinux-policy-targeted-3.10.0-110.fc17.noarch               21/87 
/sbin/fixfiles: line 150:  3085 Done                    sed -r -e 's,:s0, ,g' $FC
      3086                       | sort -u
      3087 Exit 1                  | /usr/bin/diff -b ${PREFCTEMPFILE} -
      3088                       | grep '^[<>]'
      3089                       | cut -c3-
      3090                       | grep ^/
      3091                       | egrep -v '(^/home|^/root|^/tmp|^/dev)'
      3092                       | sed -r -e 's,[[:blank:]].*,,g' -e 's|\(([/[:alnum:]]+)\)\?|{\1,}|g' -e 's|([/[:alnum:]])\?|{\1,}|g' -e 's|\?.*|*|g' -e 's|\(.*|*|g' -e 's|\[.*|*|g' -e 's|\.\*.*|*|g' -e 's|\.\+.*|*|g'
      3093                       | sort -u
      3094                       | sort -d
      3095                       | while read pattern; do
    if ! echo "$pattern" | grep -q -f ${TEMPFILE} 2> /dev/null; then
        echo "$pattern"; case "$pattern" in 
            *"*")
                echo "$pattern" | sed -e 's,^,^,' -e 's,\*$,,g' >> ${TEMPFILE}
            ;;
        esac;
    fi;
done
      3096 Segmentation fault      (core dumped) | ${RESTORECON} -f - -R -p `exclude_dirs`
/var/tmp/rpm-tmp.Q4Muj4: line 23:  3214 Segmentation fault      (core dumped) /sbin/restorecon -R /root /var/log /var/run /etc/passwd* /etc/group* 2> /dev/null

Expected results:


Additional info:

I don't know if this is related, but I also got this bug at the same time:

  Updating   : selinux-policy-3.10.0-110.fc17.noarch                         5/87 
/usr/share/selinux/devel/include/apps/jockey.if: Syntax error on line 8899 jockey_cache_t [type=IDENTIFIER]

Comment 1 Miroslav Grepl 2012-04-06 06:04:23 UTC
This is fixed in the latest policycoreutils. Could you please install this package from koji and then try to reinstall the policy.

Comment 2 Tom 2012-04-06 16:14:32 UTC
That got it, thanks.


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