Bug 810413 - Segmentation fault during selinux policy update
Segmentation fault during selinux policy update
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Miroslav Grepl
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2012-04-05 19:51 EDT by Tom
Modified: 2012-04-06 12:14 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-06 02:04:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tom 2012-04-05 19:51:28 EDT
Description of problem:
Segmentation fault during selinux policy update with yum.

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

How reproducible:
Tried once

Steps to Reproduce:
1.Update selinux policy with selinux set to permissive.
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}
      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 02:04:23 EDT
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 12:14:32 EDT
That got it, thanks.

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