Skip to content

Policy fails to build due to unconfined role move #829

@cgzones

Description

@cgzones

Commit ca3698d changed the definition of the unconfined_r role from the base module kernel to the non-base module unconfined.
While directly linking the policy via make validate works, loading such policy on an actual systems fails with the following error message:

...
Creating refpolicy base module base.conf                                                                                                                      
Compiling refpolicy base module                                                                                                                               
Creating refpolicy base module package                                                                                                                        
Installing refpolicy base.pp policy package.                                                                                                                  
Loading configured modules.                                                                                                                                   
Failed to resolve roletype statement at /var/lib/selinux/refpolicy/tmp/modules/400/unconfined/cil:5                                                           
Failed to resolve AST                                                                                                                                         
/usr/sbin/semodule:  Failed!                                                                                                                                  
make: *** [Rules.modular:59: load] Error 1

I don't think role definitions are supported in non-base modular policies (only role statements associating them to types).

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