|
Download tasks/format-code-task-000051/instruction.md from FineEnvs/MiMo-V2.6-RL-harbor-code: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000051/instruction.md
- Command line
-
hf download hf://datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/tasks/format-code-task-000051/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000051/instruction.md
1.45 kB
Fix the following issue:
Problem Statement
When I write a file_owner rule, I'm stuck specifying the expected owner as a literal numeric UID via fileuid. That's brittle for accounts whose UID isn't guaranteed to be the same everywhere — I really just want to say the owner should be root (or some other username) and have the check figure out the actual UID at scan time. Could the template accept a username there too, not just a hard-coded number?
Expected outcomes
- The
file_ownertemplate supports auid_or_namevariable for the expected owner. - A
uid_or_namevalue that is a numeric UID continues to generate owner checks equivalent to the previous numeric-UID behavior. - A
uid_or_namevalue that is a username generates a check that compares against that account’s UID as resolved on the scanned system, so the same rule can work across systems where the account has different numeric UIDs. - Bundled OpenShift rules that use the
file_ownertemplate express their expected owner throughuid_or_nameinstead of the old numeric-onlyfileuidvariable, without changing which owner they require.
Implementation notes
The exact implementation strategy, data flow, and validation location are up to the implementer. Preserve the existing file_owner template behavior for path matching, recursive checks, and regular-expression-based file selection while extending only how the expected owner can be specified.