• Stephen Smalley's avatar
    selinux: log error messages on required process class / permissions · 7383c0f9
    Stephen Smalley authored
    In general SELinux no longer treats undefined object classes or permissions
    in the policy as a fatal error, instead handling them in accordance with
    handle_unknown. However, the process class and process transition and
    dyntransition permissions are still required to be defined due to
    dependencies on these definitions for default labeling behaviors,
    role and range transitions in older policy versions that lack an explicit
    class field, and role allow checking.  Log error messages in these cases
    since otherwise the policy load will fail silently with no indication
    to the user as to the underlying cause.  While here, fix the checking for
    process transition / dyntransition so that omitting either permission is
    handled as an error; both are needed in order to ensure that role allow
    checking is consistently applied.
    Reported-by: default avatarbauen1 <j2468h@googlemail.com>
    Signed-off-by: default avatarStephen Smalley <stephen.smalley.work@gmail.com>
    Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
    7383c0f9
policydb.c 74.8 KB