uutils / uutils/coreutils

unexpected `selinux` features enabled when using `--workspace`

Open
#9,553 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

I have a linux environment that doesnt have any selinux incl. libselinux. When building by cargo build --workspace --feature unix, I have got a error said failed to build selinux-sys because I don't have any libselinux installed. I think this is a unexpected problem when not choosing to enable selinux features.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing cargo build --workspace --feature unix in a Linux environment without libselinux, then inspect the workspace feature definitions and dependency configuration. Done means the Unix workspace build does not enable SELinux support unless its feature is explicitly selected, and the reported build succeeds without libselinux installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
build-system, cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.