(type dmesg_t)
(roletype object_r dmesg_t)
(type dmesg_exec_t)
(roletype object_r dmesg_exec_t)
(roleattributeset cil_gen_require system_r)
(roletype system_r dmesg_t)
(typeattributeset cil_gen_require initrc_t)
(typeattributeset cil_gen_require systemprocess)
(typeattributeset systemprocess (dmesg_t ))
(typeattributeset cil_gen_require application_domain_type)
(typeattributeset application_domain_type (dmesg_t ))
(typeattributeset cil_gen_require domain)
(typeattributeset domain (dmesg_t ))
(typeattributeset cil_gen_require init_t)
(typeattributeset cil_gen_require sysfs_t)
(typeattributeset cil_gen_require application_exec_type)
(typeattributeset application_exec_type (dmesg_exec_t ))
(typeattributeset cil_gen_require exec_type)
(typeattributeset exec_type (dmesg_exec_t ))
(typeattributeset cil_gen_require file_type)
(typeattributeset file_type (dmesg_exec_t ))
(typeattributeset cil_gen_require non_security_file_type)
(typeattributeset non_security_file_type (dmesg_exec_t ))
(typeattributeset cil_gen_require non_auth_file_type)
(typeattributeset non_auth_file_type (dmesg_exec_t ))
(typeattributeset cil_gen_require entry_type)
(typeattributeset entry_type (dmesg_exec_t ))
(typeattributeset cil_gen_require proc_t)
(typeattributeset cil_gen_require sysctl_t)
(typeattributeset cil_gen_require sysctl_kernel_t)
(typeattributeset cil_gen_require kernel_t)
(typeattributeset cil_gen_require unlabeled_t)
(typeattributeset cil_gen_require device_t)
(typeattributeset cil_gen_require kmsg_device_t)
(typeattributeset cil_gen_require autofs_t)
(typeattributeset cil_gen_require console_device_t)
(typeattributeset cil_gen_require privfd)
(typeattributeset cil_gen_require etc_t)
(typeattributeset cil_gen_require usr_t)
(typeattributeset cil_gen_require initrc_devpts_t)
(typeattributeset cil_gen_require devpts_t)
(typeattributeset cil_gen_require syslogd_t)
(typeattributeset cil_gen_require syslogd_runtime_t)
(typeattributeset cil_gen_require devlog_t)
(typeattributeset cil_gen_require init_runtime_t)
(typeattributeset cil_gen_require var_t)
(typeattributeset cil_gen_require var_run_t)
(typeattributeset cil_gen_require var_log_t)
(typeattributeset cil_gen_require locale_t)
(typeattributeset cil_gen_require unpriv_userdomain)
(typeattributeset cil_gen_require user_devpts_t)
(typeattributeset cil_gen_require user_tty_device_t)
(allow dmesg_t dmesg_exec_t (file (entrypoint)))
(allow dmesg_t dmesg_exec_t (file (ioctl read getattr lock map execute open)))
(allow initrc_t dmesg_exec_t (file (ioctl read getattr map execute open)))
(allow initrc_t dmesg_t (process (transition)))
(dontaudit initrc_t dmesg_t (process (noatsecure siginh rlimitinh)))
(typetransition initrc_t dmesg_exec_t process dmesg_t)
(allow dmesg_t initrc_t (fd (use)))
(allow dmesg_t initrc_t (fifo_file (ioctl read write getattr lock append)))
(allow dmesg_t initrc_t (process (sigchld)))
(allow dmesg_t self (capability (sys_admin)))
(dontaudit dmesg_t self (capability (sys_tty_config)))
(allow dmesg_t self (process (sigchld sigkill sigstop signull signal)))
(allow dmesg_t proc_t (dir (getattr open search)))
(allow dmesg_t sysctl_t (dir (getattr open search)))
(allow dmesg_t sysctl_kernel_t (dir (getattr open search)))
(allow dmesg_t sysctl_kernel_t (file (ioctl read getattr lock open)))
(allow dmesg_t proc_t (dir (getattr open search)))
(allow dmesg_t sysctl_t (dir (getattr open search)))
(allow dmesg_t sysctl_kernel_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t self (capability2 (syslog)))
(allow dmesg_t kernel_t (system (syslog_read)))
(allow dmesg_t self (capability2 (syslog)))
(allow dmesg_t kernel_t (system (syslog_mod)))
(allow dmesg_t self (capability2 (syslog)))
(allow dmesg_t kernel_t (system (syslog_console)))
(allow dmesg_t proc_t (dir (getattr open search)))
(allow dmesg_t proc_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t proc_t (dir (getattr open search)))
(allow dmesg_t proc_t (lnk_file (read getattr)))
(dontaudit dmesg_t unlabeled_t (dir (getattr open search)))
(allow dmesg_t sysfs_t (dir (getattr open search)))
(allow dmesg_t sysfs_t (file (ioctl read getattr lock open)))
(allow dmesg_t sysfs_t (dir (getattr open search)))
(allow dmesg_t sysfs_t (lnk_file (read getattr)))
(allow dmesg_t sysfs_t (dir (getattr open search)))
(allow dmesg_t sysfs_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t kmsg_device_t (chr_file (ioctl read getattr lock open)))
(allow dmesg_t autofs_t (dir (getattr open search)))
(dontaudit dmesg_t console_device_t (chr_file (ioctl read write getattr lock append open)))
(allow dmesg_t privfd (fd (use)))
(allow dmesg_t etc_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t etc_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t etc_t (dir (getattr open search)))
(allow dmesg_t etc_t (file (ioctl read getattr lock open)))
(allow dmesg_t etc_t (dir (getattr open search)))
(allow dmesg_t etc_t (lnk_file (read getattr)))
(allow dmesg_t usr_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t usr_t (dir (getattr open search)))
(allow dmesg_t usr_t (file (ioctl read getattr lock open)))
(allow dmesg_t usr_t (dir (getattr open search)))
(allow dmesg_t usr_t (lnk_file (read getattr)))
(allow dmesg_t init_t (fd (use)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t device_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t device_t (lnk_file (read getattr)))
(allow dmesg_t devpts_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t initrc_devpts_t (chr_file (ioctl read write getattr lock append open)))
(allow dmesg_t devlog_t (sock_file (write getattr append open)))
(allow dmesg_t var_run_t (lnk_file (read getattr)))
(allow dmesg_t var_t (dir (getattr open search)))
(allow dmesg_t var_run_t (dir (getattr open search)))
(allow dmesg_t init_runtime_t (dir (getattr open search)))
(allow dmesg_t syslogd_runtime_t (dir (getattr open search)))
(allow dmesg_t syslogd_t (unix_dgram_socket (sendto)))
(allow dmesg_t syslogd_t (unix_stream_socket (connectto)))
(allow dmesg_t self (unix_dgram_socket (ioctl read write create getattr setattr append bind connect getopt setopt shutdown)))
(allow dmesg_t self (unix_stream_socket (ioctl read write create getattr setattr append bind connect getopt setopt shutdown)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t device_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t device_t (lnk_file (read getattr)))
(allow dmesg_t console_device_t (chr_file (ioctl write getattr lock append open)))
(dontaudit dmesg_t console_device_t (chr_file (ioctl read getattr lock open)))
(allow dmesg_t var_t (dir (getattr open search)))
(allow dmesg_t var_log_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t var_log_t (dir (getattr open search)))
(allow dmesg_t var_log_t (file (ioctl write getattr lock append open)))
(allow dmesg_t var_log_t (lnk_file (read getattr)))
(allow dmesg_t etc_t (dir (getattr open search)))
(allow dmesg_t etc_t (lnk_file (read getattr)))
(allow dmesg_t usr_t (dir (getattr open search)))
(allow dmesg_t locale_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t locale_t (dir (getattr open search)))
(allow dmesg_t locale_t (file (ioctl read getattr lock open)))
(allow dmesg_t locale_t (dir (getattr open search)))
(allow dmesg_t locale_t (lnk_file (read getattr)))
(allow dmesg_t locale_t (file (map)))
(dontaudit dmesg_t unpriv_userdomain (fd (use)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t device_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t device_t (lnk_file (read getattr)))
(allow dmesg_t devpts_t (dir (ioctl read getattr lock open search)))
(allow dmesg_t user_devpts_t (chr_file (ioctl read write getattr append open)))
(allow dmesg_t user_tty_device_t (chr_file (ioctl read write getattr append open)))
(dontaudit dmesg_t device_t (chr_file (ioctl read write getattr lock append open)))
(allow dmesg_t device_t (dir (getattr open search)))
(allow dmesg_t kmsg_device_t (chr_file (ioctl read getattr lock open)))
(optional dmesg_optional_2
    (typeattributeset cil_gen_require init_t)
    (allow dmesg_t init_t (process (sigchld)))
    (allow dmesg_t init_t (process (signull)))
    (optional dmesg_optional_3
        (typeattributeset cil_gen_require rpm_t)
        (allow dmesg_t rpm_t (fd (use)))
        (allow dmesg_t rpm_t (fifo_file (ioctl read getattr lock open)))
    )
    (optional dmesg_optional_4
        (typeattributeset cil_gen_require security_t)
        (typeattributeset cil_gen_require sysfs_t)
        (dontaudit dmesg_t security_t (filesystem (getattr)))
        (dontaudit dmesg_t sysfs_t (filesystem (getattr)))
        (dontaudit dmesg_t sysfs_t (dir (getattr open search)))
        (dontaudit dmesg_t security_t (dir (getattr open search)))
        (dontaudit dmesg_t security_t (file (ioctl read getattr lock open)))
    )
    (optional dmesg_optional_5
        (typeattributeset cil_gen_require selinux_config_t)
        (dontaudit dmesg_t selinux_config_t (dir (getattr open search)))
        (dontaudit dmesg_t selinux_config_t (file (ioctl read getattr lock open)))
    )
    (optional dmesg_optional_6
        (typeattributeset cil_gen_require newrole_t)
        (allow dmesg_t newrole_t (process (sigchld)))
    )
)
(filecon "/usr/bin/dmesg" file (system_u object_r dmesg_exec_t (systemlow systemlow)))
