bos-settings/src
Breadway 3dfc9d56f3 Reconcile the redesign with the f7b114f privileged-command hardening
The redesign branch was cut before "Harden privileged command operands
against injection" landed on main; the rebase conflicts in users.rs,
power.rs, firewall.rs and capabilities/default.json were resolved to
keep the stricter side of each:

- users.rs: keep `chpasswd_input` / `valid_chpasswd_password` (validates
  the *password* for `:` / newline, which the redesign's inline checks
  missed) and `may_delete_user` (refuses root / the current user);
  fold in the redesign's `--` argv separators and GECOS control-char
  stripping on top.
- power.rs: keep `charge_threshold_write` (validates `which` ∈
  {start,end} and clamps) + `util::run_with_stdin` for the tee pipe,
  plus its test; take the redesign's brightness clamp.
- firewall.rs: keep the port-only `valid_firewall_rule` /
  `valid_rule_number` allowlist from f7b114f. NOTE: the redesign's
  Firewall UI hint advertises service names ("OpenSSH") which this
  validator rejects — either loosen it to `util::valid_cli_value` or
  drop the service-name hint. Left strict pending that call.
- capabilities/default.json: keep `opener:default` removed (nothing in
  the frontend or backend uses the opener plugin); add the four
  `core🪟*` perms the redesign's custom Titlebar needs.

Drops `util::valid_username` / `util::valid_cli_value` (added by the
redesign, now unused — every call site uses the stricter f7b114f local
validator) and the unused `use super::util` in firewall.rs.
2026-08-31 18:01:57 +08:00
..
capabilities Settings redesign: hub-based navigation, plus hardening and bug fixes 2026-08-31 16:04:02 +08:00
icons Will change this commit message to mean something later 2026-07-22 19:53:25 +08:00
src Reconcile the redesign with the f7b114f privileged-command hardening 2026-08-31 18:01:57 +08:00
.gitignore Will change this commit message to mean something later 2026-07-22 19:53:25 +08:00
build.rs Will change this commit message to mean something later 2026-07-22 19:53:25 +08:00
Cargo.lock Bump version to v0.8.2 2026-08-16 14:09:46 +08:00
Cargo.toml Bump version to v0.8.2 2026-08-16 14:09:46 +08:00
tauri.conf.json Settings redesign: hub-based navigation, plus hardening and bug fixes 2026-08-31 16:04:02 +08:00