Skip to content

Docker image build fails test for perl<5.20 on CentOS 7.1 with SELinux=enforcing #17

Closed
@ghost

Description

Docker builds of Perl less than 5.20 on CentOS 7.1.1503 when SELinux is set to "enforcing" (SELINUX=enforcing) tests fail with these errors during test:

$ getenforce 
Enforcing
$ cd docker-perl/5.010.001-64bit/
$ docker build -t perl:5.10 .

...

#   Failed test 'queue a message'
#   at ../ext/IPC-SysV/t/ipcsysv.t line 165.
# The failure of the subtest #2 may indicate that the message queue
# resource limits either of the system or of the testing account
# have been reached.  Error message "Operating would block" is
# usually indicative of this situation.  The error message was now:
# "Permission denied"
#
# You can check the message queues with the 'ipcs' command and
# you can remove unneeded queues with the 'ipcrm -q id' command.
# You may also consider configuring your system or account
# to have more message queue resources.
#
# Because of the subtest #2 failing also the substests #5 and #6 will
# very probably also fail.

#   Failed test 'message get call'
#   at ../ext/IPC-SysV/t/ipcsysv.t line 196.
# This failure was to be expected because the subtest #2 failed.
#   Failed test 'message get data'
#   at ../ext/IPC-SysV/t/ipcsysv.t line 214.
# Looks like you failed 3 tests of 38.
../ext/IPC-SysV/t/ipcsysv.t ......................................

The issue appears to be with the version of the IPC::SysV module included in the Perl distribution, as the latest version of IPC::SysV (via CPAN) does compile and pass tests independently with SELINUX=enforcing.

Docker builds for 5.16 and 5.10 have been confirmed to run successfully on CentOS 7.1 when SELinux is disabled (SELINUX=disabled).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions