Issued:
2011-12-06
Updated:
2011-12-06

RHBA-2011:1770 - libsemanage bug fix update


Synopsis

libsemanage bug fix update

Type/Severity

Bug Fix Advisory (none)

Topic

Updated libsemanage packages that fix file creation when umask is changed.

Description

The libsemanage library provides an API for the manipulation of SELinux binary policies. It is used by checkpolicy (the policy compiler) and similar tools, as well as by programs such as load_policy, which must perform specific transformations on binary policies (for example, customizing policy boolean settings).

This update fixes the following bug:

  • When running semanage commands while umask is set to 027 (or to a similar value that restricts a non-priviledged user from reading files created with such a file-creating mask), semanage changed the permissions of certain files such as the /etc/selinux/mls/contexts/files/file_contexts file. As a consequence, non-priviledged processes were not able to read such files and certain commands such as the restorecon command failed to run on these files. To solve this problem, libsemanage has been modified to save and clear umask before libsemanage creates context files and then restore it after the files are created so the file permissions are readable by non-priviledged processes. Operations on these context files now work as expected. (BZ#747345)

All users of libsemange are advised to upgrade to these updated packages, which fix this bug.

Solution

Before applying this update, make sure all previously-released errata relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to use the Red Hat Network to apply this update are available at This content is not included.https://access.redhat.com/kb/docs/DOC-11259

Affected Products

ProductVersionArch
Red Hat Enterprise Linux for Scientific Computing6x86_64
Red Hat Enterprise Linux for Power, big endian6ppc64
Red Hat Enterprise Linux for IBM z Systems6s390x
Red Hat Enterprise Linux Workstation6x86_64
Red Hat Enterprise Linux Workstation6i386
Red Hat Enterprise Linux Server6x86_64
Red Hat Enterprise Linux Server6i386
Red Hat Enterprise Linux Server from RHUI6x86_64
Red Hat Enterprise Linux Server from RHUI6i386
Red Hat Enterprise Linux Server - Retired Extended Life Cycle Support6x86_64
Red Hat Enterprise Linux Server - Extended Life Cycle Support6x86_64
Red Hat Enterprise Linux Server - Extended Life Cycle Support6i386
Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension6x86_64
Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension6i386
Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension (for IBM z Systems)6s390x
Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems)6s390x
Red Hat Enterprise Linux Desktop6x86_64
Red Hat Enterprise Linux Desktop6i386

Updated Packages

  • libsemanage-devel-2.0.43-4.1.el6.ppc64.rpm
  • libsemanage-debuginfo-2.0.43-4.1.el6.x86_64.rpm
  • libsemanage-static-2.0.43-4.1.el6.x86_64.rpm
  • libsemanage-devel-2.0.43-4.1.el6.x86_64.rpm
  • libsemanage-debuginfo-2.0.43-4.1.el6.ppc.rpm
  • libsemanage-devel-2.0.43-4.1.el6.i686.rpm
  • libsemanage-2.0.43-4.1.el6.ppc.rpm
  • libsemanage-static-2.0.43-4.1.el6.i686.rpm
  • libsemanage-debuginfo-2.0.43-4.1.el6.s390x.rpm
  • libsemanage-devel-2.0.43-4.1.el6.s390x.rpm
  • libsemanage-2.0.43-4.1.el6.s390.rpm
  • libsemanage-2.0.43-4.1.el6.i686.rpm
  • libsemanage-python-2.0.43-4.1.el6.s390x.rpm
  • libsemanage-python-2.0.43-4.1.el6.ppc64.rpm
  • libsemanage-devel-2.0.43-4.1.el6.ppc.rpm
  • libsemanage-python-2.0.43-4.1.el6.i686.rpm
  • libsemanage-2.0.43-4.1.el6.ppc64.rpm
  • libsemanage-debuginfo-2.0.43-4.1.el6.ppc64.rpm
  • libsemanage-static-2.0.43-4.1.el6.ppc64.rpm
  • libsemanage-devel-2.0.43-4.1.el6.s390.rpm
  • libsemanage-2.0.43-4.1.el6.src.rpm
  • libsemanage-2.0.43-4.1.el6.x86_64.rpm
  • libsemanage-debuginfo-2.0.43-4.1.el6.i686.rpm
  • libsemanage-static-2.0.43-4.1.el6.s390x.rpm
  • libsemanage-2.0.43-4.1.el6.s390x.rpm
  • libsemanage-python-2.0.43-4.1.el6.x86_64.rpm
  • libsemanage-debuginfo-2.0.43-4.1.el6.s390.rpm

Fixes

CVEs

(none)

References

(none)


Additional information