fedora-selinux / selinux-policy

selinux-policy for Fedora is a large patch off the mainline
GNU General Public License v2.0
161 stars 162 forks source link

bootupd denied #2010

Open karuboniru opened 7 months ago

karuboniru commented 7 months ago

System selinux policy version selinux-policy-39.3-1.fc39.noarch

After using bootc to switch to ostree based system and enabled bootupd, seeing following denials in audit.log(grouped by target type)

auto generated policy:

module my-bootupd 1.0;

require {
    type efivarfs_t;
    type cert_t;
    type var_run_t;
    type boot_t;
    type dosfs_t;
    type bin_t;
    type bootupd_t;
    class dir { add_name getattr read remove_name search write };
    class file { create execute execute_no_trans getattr link lock open read rename write };
    class capability dac_override;
}

#============= bootupd_t ==============
allow bootupd_t bin_t:file { execute execute_no_trans };
allow bootupd_t boot_t:dir { add_name remove_name write };
allow bootupd_t boot_t:file { link rename write };
allow bootupd_t cert_t:dir search;
allow bootupd_t cert_t:file { getattr open read };
allow bootupd_t dosfs_t:dir read;
allow bootupd_t dosfs_t:file { getattr open read };
allow bootupd_t efivarfs_t:dir { getattr search };
allow bootupd_t self:capability dac_override;
allow bootupd_t var_run_t:dir { add_name write };
allow bootupd_t var_run_t:file { create lock open write };
cgwalters commented 3 months ago

Yeah we should have never created a bootupd_t, I tried to stop it but failed.