Skip to content

Drop/adjust SELinux install_t testing #1434

@cgwalters

Description

@cgwalters

SELinux: Context unconfined_u:object_r:invalid_bootcinstall_testlabel_t:s0 is not valid (left unmapped).

comes from

.args(["-t", "invalid_bootcinstall_testlabel_t"])

Basically this is us trying to verify that we have the install_t capability, and some people (reasonably!) think this is an error or a problem.

To fix this what we need is a reliable mechanism to know if we have mac_admin. I believe via /sys/fs/selinux there's an API to dynamically query if a particular access would be allowed.

OK impressive I just clicked the copilot button in the web page on the selinux git repo) and it pointed me at security_compute_av) which looks right to me.

Though the next issue is Rust bindings; we'd need to do a review of [https://lib.rs/crates/selinux] as an option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clientRelated to the client/CLIarea/selinuxRelates to SELinuxtriagedThis looks like a valid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions