Repository navigation
Releases
v1.8.1
A build-only hardening pass; no change to behaviour, output or the CLI.
- Enable full RELRO (
-Wl,-z,relro -Wl,-z,now) so the GOT is remapped read-only after symbol resolution, closing the partial-RELRO gap - Add
_FORTIFY_SOURCE=3to the release build for compile- and run-time bounds checks on libc calls, plus-fstack-clash-protectionagainst stack allocations that jump the guard page - Make position-independence and the non-executable stack explicit (
-fPIE/-pie,-Wl,-z,noexecstack) so full ASLR and NX hold regardless of toolchain defaults - Emit Intel CET (IBT/SHSTK) instrumentation (
-fcf-protection=full); all target-specific flags are probed throughcc-option, so non-x86 builds drop what they cannot accept and keep building
v1.8.0
Don't take y-not's word for it: where it safely can, y-not asks the kernel too, and tells you when they disagree.
- Probe the kernel for a ground-truth check: fork, drop to the target identity and call
access(2)on the resolved path, then report whether it agrees with the modeled verdict - Add one text line —
verified:when the kernel confirms,MISMATCH:when it disagrees (most often a security module such as SELinux or AppArmor denying a DAC/ACL-granted access),unverified:with an honest reason when it could not run — and an additive top-levelverificationobject in JSON, keeping the schema version unchanged - Skip the probe where it would mislead rather than confirm: when
access(2)is blind to the real blocker (inode attributes, the sticky rule), when the path could not be fully resolved or traversed, and fordelete; probing an account other than your own requires root - Keep the cross-check strictly advisory — it never overrides the modeled verdict — and document it in the README and man page
- Internals (no behaviour change): cache per-user
capability.conflookups instead of re-reading the file on every permission check, and cut static-analysis maintainability debt
v1.7.0
See which of the accounts you name can perform the same operation on the same path.
- Add
--compare USER,USER,...to report which explicitly listed accounts are allowed, without changing the primary user's verdict or exit status - Add the
allowed for:text line and an optional additiveallowed_forarray in JSON; keep the existing JSON schema version unchanged - Document that comparisons are limited to the named accounts and share y-not's DAC/ACL and process-context limitations
- Harden account comparison bounds and use reentrant group-name lookup in explanations and remediation
v1.6.0
Answer a question ls -l cannot: why a user who can write and traverse a directory still cannot delete a file inside it.
- Add a
delete(d) operation that evaluates removal of a directory entry: traverse and write on the parent directory, plus the sticky-bit rule - Report
sticky_bitwhen the parent directory is sticky and the user owns neither the entry nor the directory, with a proof naming both owners and ato allow:suggestion to take ownership of the entry — the classic/tmp-style case where write permission is not enough - Reject deleting the filesystem root and the
./..entries with their own reasons, stating the refusal is a kernel rule rather than a permission - Expose the deletion verdict in JSON (
sticky_bit,delete_root,delete_specialreasons; additiveentry_owneron the target component) and document the operation and its scope in the README and man page
v1.5.1
Show sudo on a fix that needs it, so the suggestion actually works.
- Prefix a remediation with
sudowhen it changes a file the requesting user does not own (group, other and ACL denials): only the owner or root can run thechmod/setfacl, so the previous command would have failed with a permission error - Leave owner denials as a plain
chmod u+…, since the owner can apply it directly
v1.5.0
Every denial now comes with the least-privilege fix, and y-not is honest about what it cannot decide.
- Add a
to allow:line suggesting the smallest change that would grant access for the blocking component — achmodbit, a group membership, an ACL grant, or an ACL mask widening — or a note that a read-only/noexecmount, not a permission, is the real blocker; exposed asremediationin JSON - Warn when the DAC/ACL verdict is
allowedbut SELinux is enforcing or AppArmor has loaded profiles: the kernel may still deny a confined process, which y-not does not model. Reported asmay_override_verdictand a human-readablewarningin the JSONmacobject - Report honestly that a path could not be inspected when a parent directory denies y-not itself the traversal needed to resolve it, instead of guessing a verdict; suggest re-running as root
- Relabel the text denial summary with
cause:,proof:andto allow:, and lift the permission proof into the summary block; the JSON field names (reason,decision,remediation) are unchanged
v1.4.0
Turn a missing-group denial into actionable advice.
- Report every non-member group whose effective permissions (after any ACL mask) would grant the requested operation, instead of naming a single one
- Add a
candidate_groupsarray (GID and name) to the JSONdecision; keepmissing_group_gidfor compatibility - Document the multi-group diagnosis in the README and man page
v1.3.1
Clarify that execute checks permissions, not executable format.
- State explicitly when a regular file lacks execute permission for the user
- Document that y-not does not validate executable formats or interpreter/loader availability
v1.3.0
Make permission denials easier to understand and act on.
- Show the permission source and raw/effective
rwxdetails in access traces, including ACL mask effects - Identify one missing Unix or ACL group whose effective permissions would grant the requested operation; expose its GID as
missing_group_gidin JSON - Refresh the README diagnosis examples and isolate coverage builds from the normal build artifacts
v1.2.0
More accurate Linux access checks across symlink paths, directory writes, and mount restrictions.
- Preserve lexical
.and..path components so the kernel resolves them after following preceding symlinks; reject empty pathnames and honor trailing-slash directory requirements - Require both write and traversal permission to create entries in a directory; report traversal denials distinctly and correctly model root's directory-search bypass
- Include read-only and
noexecmount restrictions in access decisions; reportnosuidas context, using flags visible in y-not's mount namespace - Add a CI integration job that builds the Debian package, removes build dependencies, installs and exercises the package, then verifies removal
- Document the scope and limitations of directory operations, mount namespaces, and mount flags