Building a custom SELinux module shows error messages "Error: duplicate definition of XXX(). Original definition on YYY."

Solution In Progress - Updated -


  • When building a custom SELinux module, the following error messages are printed

    # make -f /usr/share/selinux/devel/Makefile my-module.pp
    /usr/share/selinux/devel/include/services/container.if:13: Error: duplicate definition of container_runtime_domtrans(). Original definition on 13.
    /usr/share/selinux/devel/include/services/container.if:40: Error: duplicate definition of container_runtime_run(). Original definition on 40.
    /usr/share/selinux/devel/include/services/container.if:60: Error: duplicate definition of container_runtime_exec(). Original definition on 60.
    /usr/share/selinux/devel/include/services/container.if:79: Error: duplicate definition of container_read_state(). Original definition on 79.
  • The custom SELinux module builds fine anyway


  • Red Hat Enterprise Linux 8
    • container-selinux
    • policycoreutils-devel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In